 
    
   
Home   Information   Classes   Download   Usage   Mail List   Requirements   Links   FAQ   Tutorial
   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 )
 
  
void setSweepRate(StkFloat rate)
Set the sweep rate.
Definition: SingWave.h:63
void setRate(StkFloat rate)
Set the data read rate in samples. The rate can be negative.
void setFrequency(StkFloat frequency)
Set looping parameters for a particular frequency.
unsigned int frames(void) const
Return the number of sample frames represented by the data.
Definition: Stk.h:407
~SingWave(void)
Class destructor.
void noteOn(void)
Start a note.
Definition: SingWave.h:72
STK abstract unit generator parent class.
Definition: Generator.h:21
void reset(void)
Reset file to beginning.
Definition: SingWave.h:42
StkFloat tick(unsigned int channel=0)
Compute a sample frame and return the specified channel value.
void setVibratoGain(StkFloat gain)
Set the vibrato gain.
Definition: SingWave.h:57
void noteOff(void)
Stop a note.
Definition: SingWave.h:75
void setRandomGain(StkFloat gain)
Set the random modulation gain.
An STK class to handle vectorized audio data.
Definition: Stk.h:276
void reset(void)
Clear outputs and reset time (file) pointer to zero.
Definition: FileLoop.h:57
void normalize(void)
Normalize the file to a maximum of +-1.0.
Definition: SingWave.h:45
StkFloat tick(void)
Compute and return one output sample.
Definition: SingWave.h:104
void setRandomGain(StkFloat gain)
Set the random-ness amount.
Definition: SingWave.h:60
void keyOn(void)
Set target = 1.
Definition: Envelope.h:35
STK linear line envelope class.
Definition: Envelope.h:22
StkFloat tick(void)
Compute and return one output sample.
Definition: Envelope.h:88
STK "singing" looped soundfile class.
Definition: SingWave.h:26
unsigned int channels(void) const
Return the number of channels represented by the data.
Definition: Stk.h:404
SingWave(std::string fileName, bool raw=false)
Class constructor taking filename argument.
static void handleError(const char *message, StkError::Type type)
Static function for error reporting and handling using c-strings.
void setVibratoRate(StkFloat rate)
Set the vibrato frequency in Hz.
Definition: SingWave.h:54
void setTarget(StkFloat target)
Set the target value.
STK file looping / oscillator class.
Definition: FileLoop.h:27
void setRate(StkFloat rate)
Set the rate.
void setGainRate(StkFloat rate)
Set the gain rate.
Definition: SingWave.h:66
void normalize(StkFloat peak)
Normalize the file to a maximum of +- peak.
Definition: SingWave.h:48
StkFloat tick(void)
Compute and return one output sample.
Definition: Modulate.h:80
StkFloat lastOut(void) const
Return the last computed output value.
Definition: SingWave.h:78
void normalize(void)
Normalize data to a maximum of +-1.0.
Definition: FileLoop.h:67
void keyOff(void)
Set target = 0.
Definition: Envelope.h:38
void setVibratoRate(StkFloat rate)
Set the periodic (vibrato) rate or frequency in Hz.
Definition: Modulate.h:39
void setVibratoGain(StkFloat gain)
Set the periodic (vibrato) gain.
Definition: Modulate.h:42
STK periodic/random modulator.
Definition: Modulate.h:24
The STK namespace.
Definition: ADSR.h:6
void setGainTarget(StkFloat target)
Set the gain target value.
Definition: SingWave.h:69