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_;
virtual void setFrequency(StkFloat frequency)=0
Set instrument parameters for a particular frequency.
virtual void noteOff(StkFloat amplitude)
Stop a note with the given amplitude (speed of decay).
void keyOff(void)
Signal a key-off event to the envelopes.
virtual void controlChange(int number, StkFloat value)=0
Perform the control change specified by number and value (0.0 - 128.0).
virtual ~Sampler(void)
Class destructor.
The STK namespace.
Definition: ADSR.h:6
STK one-pole filter class.
Definition: OnePole.h:20
STK sampling synthesis abstract base class.
Definition: Sampler.h:22
virtual StkFloat tick(unsigned int channel=0)=0
Compute and return one output sample.
void keyOn(void)
Initiate the envelopes with a key-on event and reset the attack waves.
STK ADSR envelope class.
Definition: ADSR.h:24
An STK class to handle vectorized audio data.
Definition: Stk.h:272
STK instrument abstract base class.
Definition: Instrmnt.h:19
Sampler(void)
Default constructor.