41 virtual void noteOff( StkFloat amplitude );
47 virtual StkFloat
tick(
unsigned int channel = 0 ) = 0;
62 std::vector<FileWvIn *> attacks_;
63 std::vector<FileLoop *> loops_;
65 StkFloat baseFrequency_;
66 std::vector<StkFloat> attackRatios_;
67 std::vector<StkFloat> loopRatios_;
STK ADSR envelope class.
Definition ADSR.h:25
STK instrument abstract base class.
Definition Instrmnt.h:20
STK one-pole filter class.
Definition OnePole.h:21
STK sampling synthesis abstract base class.
Definition Sampler.h:23
virtual StkFloat tick(unsigned int channel=0)=0
Compute and return one output sample.
virtual void noteOff(StkFloat amplitude)
Stop a note with the given amplitude (speed of decay).
virtual void setFrequency(StkFloat frequency)=0
Set instrument parameters for a particular frequency.
void keyOff(void)
Signal a key-off event to the envelopes.
virtual ~Sampler(void)
Class destructor.
Sampler(void)
Default constructor.
virtual StkFrames & tick(StkFrames &frames, unsigned int channel=0)=0
Fill a channel of the StkFrames object with computed outputs.
void keyOn(void)
Initiate the envelopes with a key-on event and reset the attack waves.
virtual void controlChange(int number, StkFloat value)=0
Perform the control change specified by number and value (0.0 - 128.0).
An STK class to handle vectorized audio data.
Definition Stk.h:279
The STK namespace.
Definition ADSR.h:6