1
/*******************************************/
2
/* Envelope Class, Perry R. Cook, 1995-96 */
3
/* This is the base class for envelopes. */
4
/* This one is capable of ramping state */
5
/* from where it is to a target value by */
6
/* a rate. It also responds to simple */
7
/* KeyOn and KeyOff messages, ramping to */
8
/* 1.0 on keyon and to 0.0 on keyoff. */
9
/* There are two tick (update value) */
10
/* methods, one returns the value, and */
11
/* other returns 0 if the envelope is at */
12
/* the target value (the state bit). */
13
/*******************************************/
15
#if !defined(__Envelope_h)
20
class Envelope : public Object
32
void setRate(MY_FLOAT aRate);
33
void setTime(MY_FLOAT aTime);
34
void setTarget(MY_FLOAT aTarget);
35
void setValue(MY_FLOAT aValue);