57 void noteOn( StkFloat frequency, StkFloat amplitude );
60 void noteOff( StkFloat amplitude );
66 StkFloat
tick(
unsigned int channel = 0 );
90 StkFloat baseFrequency_;
92 StkFloat fippleFreqMod_;
93 StkFloat fippleGainMod_;
94 StkFloat blowFreqMod_;
97 int subSample_, subSampCount_;
102 unsigned int nChannels = lastFrame_.
channels();
103 #if defined(_STK_DEBUG_)
104 if ( channel > frames.
channels() - nChannels ) {
105 oStream_ <<
"Whistle::tick(): channel and StkFrames arguments are incompatible!";
110 StkFloat *samples = &frames[channel];
111 unsigned int j, hop = frames.
channels() - nChannels;
112 if ( nChannels == 1 ) {
113 for (
unsigned int i=0; i<frames.
frames(); i++, samples += hop )
117 for (
unsigned int i=0; i<frames.
frames(); i++, samples += hop ) {
119 for ( j=1; j<nChannels; j++ )
120 *samples++ = lastFrame_[j];