1
/******************************************/
2
/* Karplus-Strong plucked string model */
3
/* by Perry Cook, 1995-96 */
5
/* There exist at least two patents, */
6
/* assigned to Stanford, bearing the */
7
/* names of Karplus and/or Strong. */
8
/******************************************/
10
#if !defined(__Plucked_h)
19
class Plucked : public Instrmnt
29
Plucked(MY_FLOAT lowestFreq);
32
virtual void setFreq(MY_FLOAT frequency);
33
void pluck(MY_FLOAT amplitude);
34
virtual void noteOn(MY_FLOAT freq, MY_FLOAT amp);
35
virtual void noteOff(MY_FLOAT amp);
36
virtual MY_FLOAT tick();