1
/********************************************/
2
/* Commuted Mandolin Subclass of enhanced */
3
/* dual plucked-string model */
4
/* by Perry Cook, 1995-96 */
5
/* Controls: CONTROL1 = bodySize */
6
/* CONTROL2 = pluckPosition */
7
/* CONTROL3 = loopGain */
8
/* MOD_WHEEL= deTuning */
10
/* Note: Commuted Synthesis, as with many */
11
/* other WaveGuide techniques, is covered */
12
/* by patents, granted, pending, and/or */
13
/* applied-for. All are assigned to the */
14
/* Board of Trustees, Stanford University. */
15
/* For information, contact the Office of */
16
/* Technology Licensing, Stanford U. */
17
/********************************************/
19
#if !defined(__Mandolin_h)
25
class Mandolin : public Plucked2
28
RawWvIn *soundfile[12];
34
Mandolin(MY_FLOAT lowestFreq);
36
void pluck(MY_FLOAT amplitude);
37
void pluck(MY_FLOAT amplitude,MY_FLOAT position);
38
virtual void noteOn(MY_FLOAT freq, MY_FLOAT amp);
39
void setBodySize(MY_FLOAT size);
40
virtual void controlChange(int number, MY_FLOAT value);
41
virtual MY_FLOAT tick();