45 void noteOn( StkFloat frequency, StkFloat amplitude );
57 StkFloat
tick(
unsigned int channel = 0 );
82 if ( modDepth_ != 0.0 ) {
83 temp = loops_[1]->tick() * modDepth_;
84 loops_[0]->setFrequency( baseFrequency_ * (1.0 + temp) );
87 temp = attackGain_ * attacks_[0]->tick();
88 temp += loopGain_ * loops_[0]->tick();
89 temp = filter_.
tick( temp );
91 temp = filters_[0].
tick( temp );
92 lastFrame_[0] = filters_[1].
tick( temp );
93 return lastFrame_[0] * 6.0;
98 unsigned int nChannels = lastFrame_.
channels();
99 #if defined(_STK_DEBUG_)
100 if ( channel > frames.
channels() - nChannels ) {
101 oStream_ <<
"Moog::tick(): channel and StkFrames arguments are incompatible!";
106 StkFloat *samples = &frames[channel];
107 unsigned int j, hop = frames.
channels() - nChannels;
108 if ( nChannels == 1 ) {
109 for (
unsigned int i=0; i<frames.
frames(); i++, samples += hop )
113 for (
unsigned int i=0; i<frames.
frames(); i++, samples += hop ) {
115 for ( j=1; j<nChannels; j++ )
116 *samples++ = lastFrame_[j];