 
    
   
Home   Information   Classes   Download   Usage   Mail List   Requirements   Links   FAQ   Tutorial
   43   void setNotch( StkFloat frequency, StkFloat radius );
 
   55   void noteOn( StkFloat frequency, StkFloat amplitude );
 
   64   StkFloat 
tick( 
unsigned int channel = 0 );
 
   81   StkFloat poleFrequency_;
 
   83   StkFloat zeroFrequency_;
 
   90   lastFrame_[0] = filter_.
tick( noise_.
tick() );
 
   91   lastFrame_[0] *= adsr_.
tick();
 
   97   unsigned int nChannels = lastFrame_.
channels();
 
   98 #if defined(_STK_DEBUG_) 
   99   if ( channel > frames.
channels() - nChannels ) {
 
  100     oStream_ << 
"Resonate::tick(): channel and StkFrames arguments are incompatible!";
 
  105   StkFloat *samples = &frames[channel];
 
  106   unsigned int j, hop = frames.
channels() - nChannels;
 
  107   if ( nChannels == 1 ) {
 
  108     for ( 
unsigned int i=0; i<frames.
frames(); i++, samples += hop )
 
  112     for ( 
unsigned int i=0; i<frames.
frames(); i++, samples += hop ) {
 
  114       for ( j=1; j<nChannels; j++ )
 
  115         *samples++ = lastFrame_[j];
 
  
StkFloat tick(unsigned int channel=0)
Compute and return one output sample.
Definition: Resonate.h:88
void setEqualGainZeroes(void)
Sets the filter zeroes for equal resonance gain.
STK ADSR envelope class.
Definition: ADSR.h:25
void keyOn(void)
Initiate the envelope with a key-on event.
Definition: Resonate.h:49
unsigned int frames(void) const
Return the number of sample frames represented by the data.
Definition: Stk.h:407
STK biquad (two-pole, two-zero) filter class.
Definition: BiQuad.h:21
void noteOn(StkFloat frequency, StkFloat amplitude)
Start a note with the given frequency and amplitude.
void controlChange(int number, StkFloat value)
Perform the control change specified by number and value (0.0 - 128.0).
StkFloat tick(void)
Compute and return one output sample.
Definition: Noise.h:59
void keyOn(void)
Set target = 1, state = ADSR::ATTACK.
~Resonate(void)
Class destructor.
void setEqualGainZeroes(void)
Set the filter zero coefficients for contant resonance gain.
Definition: Resonate.h:46
An STK class to handle vectorized audio data.
Definition: Stk.h:276
STK noise driven formant filter.
Definition: Resonate.h:31
unsigned int channels(void) const
Return the number of channels represented by the data.
Definition: Stk.h:404
static void handleError(const char *message, StkError::Type type)
Static function for error reporting and handling using c-strings.
void setNotch(StkFloat frequency, StkFloat radius)
Set the filter for a notch at the given frequency (Hz) and radius.
Resonate(void)
Class constructor.
void keyOff(void)
Signal a key-off event to the envelope.
Definition: Resonate.h:52
void keyOff(void)
Set target = 0, state = ADSR::RELEASE.
void setResonance(StkFloat frequency, StkFloat radius)
Set the filter for a resonance at the given frequency (Hz) and radius.
STK noise generator.
Definition: Noise.h:22
The STK namespace.
Definition: ADSR.h:6
StkFloat tick(void)
Compute and return one output sample.
Definition: ADSR.h:115
STK instrument abstract base class.
Definition: Instrmnt.h:20
StkFloat tick(StkFloat input)
Input one sample to the filter and return a reference to one output.
Definition: BiQuad.h:119
void noteOff(StkFloat amplitude)
Stop a note with the given amplitude (speed of decay).