58 void noteOn( StkFloat frequency, StkFloat amplitude );
67 StkFloat
tick(
unsigned int channel = 0 );
79 void setBlowPressure( StkFloat val );
80 void setVibratoGain( StkFloat val );
81 void setVibratoFrequency( StkFloat val );
82 void setNoiseGain( StkFloat val );
83 void setBreathCutoff( StkFloat val );
84 void setSoftness( StkFloat val );
90 Iir radiation_filter_;
92 Iir visco_out_filter_;
103 StkFloat vibratoGain_;
105 StkFloat breathCutoff_;
106 StkFloat outputGain_;
140 unsigned int nChannels = lastFrame_.
channels();
141 #if defined(_STK_DEBUG_)
142 if ( channel > frames.
channels() - nChannels ) {
143 oStream_ <<
"Recorder::tick(): channel and StkFrames arguments are incompatible!";
148 StkFloat *samples = &frames[channel];
149 unsigned int j, hop = frames.
channels() - nChannels;
150 if ( nChannels == 1 ) {
151 for (
unsigned int i=0; i<frames.
frames(); i++, samples += hop )
155 for (
unsigned int i=0; i<frames.
frames(); i++, samples += hop ) {
157 for ( j=1; j<nChannels; j++ )
158 *samples++ = lastFrame_[j];
STK ADSR envelope class.
Definition: ADSR.h:27
STK linear interpolating delay line class.
Definition: DelayL.h:28
STK general infinite impulse response filter class.
Definition: Iir.h:35
STK instrument abstract base class.
Definition: Instrmnt.h:20
STK noise generator.
Definition: Noise.h:22
A recorder / flute physical model.
Definition: Recorder.h:37
StkFloat tick(unsigned int channel=0)
Compute and return one output sample.
void startBlowing(StkFloat amplitude, StkFloat rate)
Apply breath velocity to instrument with given amplitude and rate of increase.
void controlChange(int number, StkFloat value)
Perform the control change specified by number and value (0.0 - 128.0).
void stopBlowing(StkFloat rate)
Decrease breath velocity with given rate of decrease.
Recorder(void)
Class constructor.
void setFrequency(StkFloat val)
Set instrument parameters for a particular frequency.
void noteOff(StkFloat amplitude)
Stop a note with the given amplitude (speed of decay).
void noteOn(StkFloat frequency, StkFloat amplitude)
Start a note with the given frequency and amplitude.
~Recorder(void)
Class destructor.
void clear(void)
Reset and clear all internal state.
STK sinusoid oscillator class.
Definition: SineWave.h:26
An STK class to handle vectorized audio data.
Definition: Stk.h:287
unsigned int channels(void) const
Return the number of channels represented by the data.
Definition: Stk.h:415
unsigned int frames(void) const
Return the number of sample frames represented by the data.
Definition: Stk.h:418
static void handleError(const char *message, StkError::Type type)
Static function for error reporting and handling using c-strings.
The STK namespace.
Definition: ADSR.h:8