36 SingWave( std::string fileName,
bool raw =
false );
42 void reset(
void ) { wave_.
reset(); lastFrame_[0] = 0.0; };
78 StkFloat
lastOut(
void )
const {
return lastFrame_[0]; };
81 StkFloat
tick(
void );
107 StkFloat newRate = pitchEnvelope_.
tick();
108 newRate += newRate * modulator_.
tick();
111 lastFrame_[0] = wave_.
tick();
112 lastFrame_[0] *= envelope_.
tick();
114 return lastFrame_[0];
119 #if defined(_STK_DEBUG_)
120 if ( channel >= frames.
channels() ) {
121 oStream_ <<
"SingWave::tick(): channel and StkFrames arguments are incompatible!";
126 StkFloat *samples = &frames[channel];
127 unsigned int hop = frames.
channels();
128 for (
unsigned int i=0; i<frames.
frames(); i++, samples += hop )