Home Information Classes Download Usage Mail List Requirements Links Tutorial

# Moog.h

    00001 /***************************************************/
    00019 /***************************************************/
    00020
    00021 #if !defined(__MOOG_H)
    00022 #define __MOOG_H
    00023
    00024 #include "Sampler.h"
    00025 #include "FormSwep.h"
    00026
    00027 class Moog : public Sampler
    00028 {
    00029  public:
    00031   Moog();
    00032
    00034   ~Moog();
    00035
    00037   virtual void setFrequency(MY_FLOAT frequency);
    00038
    00040   virtual void noteOn(MY_FLOAT frequency, MY_FLOAT amplitude);
    00041
    00043   void setModulationSpeed(MY_FLOAT mSpeed);
    00044
    00046   void setModulationDepth(MY_FLOAT mDepth);
    00047
    00049   virtual MY_FLOAT tick();
    00050
    00052   virtual void controlChange(int number, MY_FLOAT value);
    00053
    00054  protected:
    00055   FormSwep *filters[2];
    00056   MY_FLOAT modDepth;
    00057   MY_FLOAT filterQ;
    00058   MY_FLOAT filterRate;
    00059
    00060 };
    00061
    00062 #endif

The Synthesis ToolKit in C++ (STK)
©1995-2004 Perry R. Cook and Gary P. Scavone. All Rights Reserved.