35 BlitSaw( StkFloat frequency = 220.0 );
62 StkFloat
lastOut(
void )
const {
return lastFrame_[0]; };
65 StkFloat
tick(
void );
79 void updateHarmonics(
void );
81 unsigned int nHarmonics_;
110 StkFloat tmp, denominator = sin( phase_ );
111 if ( fabs(denominator) <= std::numeric_limits<StkFloat>::epsilon() )
114 tmp = sin( m_ * phase_ );
115 tmp /= p_ * denominator;
119 state_ = tmp * 0.995;
122 if ( phase_ >= PI ) phase_ -= PI;
125 return lastFrame_[0];
130 #if defined(_STK_DEBUG_)
131 if ( channel >= frames.
channels() ) {
132 oStream_ <<
"BlitSaw::tick(): channel and StkFrames arguments are incompatible!";
138 StkFloat *samples = &frames[channel];
139 unsigned int hop = frames.
channels();
140 for (
unsigned int i=0; i<frames.
frames(); i++, samples += hop )