37 Blit( StkFloat frequency = 220.0 );
49 void setPhase( StkFloat phase ) { phase_ = PI * phase; };
55 StkFloat
getPhase()
const {
return phase_ / PI; };
76 StkFloat
lastOut(
void )
const {
return lastFrame_[0]; };
79 StkFloat
tick(
void );
93 void updateHarmonics(
void );
95 unsigned int nHarmonics_;
117 StkFloat tmp, denominator = sin( phase_ );
118 if ( denominator <= std::numeric_limits<StkFloat>::epsilon() )
121 tmp = sin( m_ * phase_ );
122 tmp /= m_ * denominator;
126 if ( phase_ >= PI ) phase_ -= PI;
129 return lastFrame_[0];
134 #if defined(_STK_DEBUG_)
135 if ( channel >= frames.
channels() ) {
136 oStream_ <<
"Blit::tick(): channel and StkFrames arguments are incompatible!";
141 StkFloat *samples = &frames[channel];
142 unsigned int hop = frames.
channels();
143 for (
unsigned int i=0; i<frames.
frames(); i++, samples += hop )