~ubuntu-branches/ubuntu/karmic/muse/karmic-proposed

« back to all changes in this revision

Viewing changes to synti/stklib/Mandolin.h

  • Committer: Bazaar Package Importer
  • Author(s): Daniel Kobras
  • Date: 2002-04-23 17:28:23 UTC
  • Revision ID: james.westby@ubuntu.com-20020423172823-w8yplzr81a759xa3
Tags: upstream-0.5.2
ImportĀ upstreamĀ versionĀ 0.5.2

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
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       */
 
9
/*                                          */
 
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
/********************************************/  
 
18
 
 
19
#if !defined(__Mandolin_h)
 
20
#define __Mandolin_h
 
21
 
 
22
#include "Plucked2.h"
 
23
#include "RawWvIn.h"
 
24
 
 
25
class Mandolin : public Plucked2
 
26
{
 
27
  protected:  
 
28
    RawWvIn *soundfile[12];
 
29
    MY_FLOAT directBody;
 
30
    int mic;
 
31
    long dampTime;
 
32
    int waveDone;
 
33
  public:
 
34
    Mandolin(MY_FLOAT lowestFreq);
 
35
    virtual ~Mandolin();
 
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();
 
42
};
 
43
 
 
44
#endif