7 #include "MemoryWvIn.h"
8 #include "MemoryLoop.h"
43 virtual void noteOff( StkFloat amplitude );
49 virtual StkFloat
tick(
unsigned int channel = 0 ) = 0;
64 std::vector<FileWvIn *> attacks_;
65 std::vector<FileLoop *> loops_;
67 StkFloat baseFrequency_;
68 std::vector<StkFloat> attackRatios_;
69 std::vector<StkFloat> loopRatios_;
STK ADSR envelope class.
Definition: ADSR.h:27
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:25
virtual StkFloat tick(unsigned int channel=0)=0
Compute and return one output sample.
virtual StkFrames & tick(StkFrames &frames, unsigned int channel=0)=0
Fill a channel of the StkFrames object with computed outputs.
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.
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:287
The STK namespace.
Definition: ADSR.h:8