Home Information Classes Download Usage Mail List Requirements Links Tutorial

# Envelope.h

    00001 /***************************************************/
    00014 /***************************************************/
    00015
    00016 #if !defined(__ENVELOPE_H)
    00017 #define __ENVELOPE_H
    00018
    00019 #include "Stk.h"
    00020
    00021 class Envelope : public Stk
    00022 {
    00023  public:
    00024
    00026   Envelope(void);
    00027
    00029   virtual ~Envelope(void);
    00030
    00032   virtual void keyOn(void);
    00033
    00035   virtual void keyOff(void);
    00036
    00038   void setRate(MY_FLOAT aRate);
    00039
    00041   void setTime(MY_FLOAT aTime);
    00042
    00044   virtual void setTarget(MY_FLOAT aTarget);
    00045
    00047   virtual void setValue(MY_FLOAT aValue);
    00048
    00050   virtual int getState(void) const;
    00051
    00053   virtual MY_FLOAT tick(void);
    00054
    00056   virtual MY_FLOAT *tick(MY_FLOAT *vector, unsigned int vectorSize);
    00057
    00059   MY_FLOAT lastOut(void) const;
    00060
    00061  protected:
    00062   MY_FLOAT value;
    00063   MY_FLOAT target;
    00064   MY_FLOAT rate;
    00065   int state;
    00066 };
    00067
    00068 #endif

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