Home Information Classes Download Usage Mail List Requirements Links Tutorial

# FormSwep.h

    00001 /***************************************************/
    00013 /***************************************************/
    00014
    00015 #if !defined(__FORMSWEP_H)
    00016 #define __FORMSWEP_H
    00017
    00018 #include "BiQuad.h"
    00019
    00020 class FormSwep : public BiQuad
    00021 {
    00022  public:
    00023
    00025   FormSwep();
    00026
    00028   ~FormSwep();
    00029
    00031
    00042   void setResonance(MY_FLOAT aFrequency, MY_FLOAT aRadius);
    00043
    00045   void setStates(MY_FLOAT aFrequency, MY_FLOAT aRadius, MY_FLOAT aGain = 1.0);
    00046
    00048   void setTargets(MY_FLOAT aFrequency, MY_FLOAT aRadius, MY_FLOAT aGain = 1.0);
    00049
    00051
    00059   void setSweepRate(MY_FLOAT aRate);
    00060
    00062
    00067   void setSweepTime(MY_FLOAT aTime);
    00068
    00070   MY_FLOAT tick(MY_FLOAT sample);
    00071
    00073   MY_FLOAT *tick(MY_FLOAT *vector, unsigned int vectorSize);
    00074
    00075  protected:
    00076   bool dirty;
    00077   MY_FLOAT frequency;
    00078   MY_FLOAT radius;
    00079   MY_FLOAT startFrequency;
    00080   MY_FLOAT startRadius;
    00081   MY_FLOAT startGain;
    00082   MY_FLOAT targetFrequency;
    00083   MY_FLOAT targetRadius;
    00084   MY_FLOAT targetGain;
    00085   MY_FLOAT deltaFrequency;
    00086   MY_FLOAT deltaRadius;
    00087   MY_FLOAT deltaGain;
    00088   MY_FLOAT sweepState;
    00089   MY_FLOAT sweepRate;
    00090
    00091 };
    00092
    00093 #endif

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