MCPcopy Create free account
hub / github.com/andrewreeman/SpectralSuite / init_shape

Method init_shape

shared/wavetable.cpp:63–92  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

61
62template <typename T>
63void Table<T>::init_shape(int type){
64 switch(type){
65 case 0:
66 this->fill_zero();
67 break;
68 case 1:
69 this->fill_sine();
70 break;
71 case 2:
72 this->fill_cosine();
73 break;
74 case 3:
75 this->fill_halfsine();
76 break;
77 case 4:
78 this->fill_halfcos();
79 break;
80 case 5:
81 this->fill_saw();
82 break;
83 case 6:
84 this->fill_triangle();
85 break;
86 case 7:
87 this->fill_line();
88 default:
89 this->fill_zero();
90 break;
91 };
92}
93
94template<typename T>
95void Table<T>::fill_zero(){

Callers

nothing calls this directly

Calls 8

fill_zeroMethod · 0.95
fill_sineMethod · 0.95
fill_cosineMethod · 0.95
fill_halfsineMethod · 0.95
fill_halfcosMethod · 0.95
fill_sawMethod · 0.95
fill_triangleMethod · 0.95
fill_lineMethod · 0.95

Tested by

no test coverage detected