81 void noteOn( StkFloat frequency, StkFloat amplitude );
90 StkFloat
tick(
unsigned int channel = 0 );
116 temp = onepole_.
tick( onezero_.
tick( voiced_->
tick() ) );
117 temp += noiseEnv_.
tick() * noise_.
tick();
118 lastFrame_[0] = filters_[0].
tick(temp);
119 lastFrame_[0] += filters_[1].
tick(temp);
120 lastFrame_[0] += filters_[2].
tick(temp);
121 lastFrame_[0] += filters_[3].
tick(temp);
129 return lastFrame_[0];
134 unsigned int nChannels = lastFrame_.
channels();
135 #if defined(_STK_DEBUG_)
136 if ( channel > frames.
channels() - nChannels ) {
137 oStream_ <<
"VoicForm::tick(): channel and StkFrames arguments are incompatible!";
142 StkFloat *samples = &frames[channel];
143 unsigned int j, hop = frames.
channels() - nChannels;
144 if ( nChannels == 1 ) {
145 for (
unsigned int i=0; i<frames.
frames(); i++, samples += hop )
149 for (
unsigned int i=0; i<frames.
frames(); i++, samples += hop ) {
151 for ( j=1; j<nChannels; j++ )
152 *samples++ = lastFrame_[j];