40 void setResonance( StkFloat frequency, StkFloat radius );
43 void setNotch( StkFloat frequency, StkFloat radius );
55 void noteOn( StkFloat frequency, StkFloat amplitude );
58 void noteOff( StkFloat amplitude );
64 StkFloat
tick(
unsigned int channel = 0 );
81 StkFloat poleFrequency_;
83 StkFloat zeroFrequency_;
90 lastFrame_[0] = filter_.
tick( noise_.
tick() );
91 lastFrame_[0] *= adsr_.
tick();
97 unsigned int nChannels = lastFrame_.
channels();
98 #if defined(_STK_DEBUG_)
99 if ( channel > frames.
channels() - nChannels ) {
100 oStream_ <<
"Resonate::tick(): channel and StkFrames arguments are incompatible!";
105 StkFloat *samples = &frames[channel];
106 unsigned int j, hop = frames.
channels() - nChannels;
107 if ( nChannels == 1 ) {
108 for (
unsigned int i=0; i<frames.
frames(); i++, samples += hop )
112 for (
unsigned int i=0; i<frames.
frames(); i++, samples += hop ) {
114 for ( j=1; j<nChannels; j++ )
115 *samples++ = lastFrame_[j];