1
/*******************************************/
2
/* "Singing" Looped Soundfile Class, */
3
/* by Perry R. Cook, 1995-96 */
4
/* This Object contains all that's needed */
5
/* to make a pitched musical sound, like */
6
/* a simple voice or violin. In general, */
7
/* it will not be used alone (because of */
8
/* of munchinification effects from pitch */
9
/* shifting. It will be used as an */
10
/* excitation source for other instruments*/
11
/*******************************************/
13
#if !defined(__SingWave_h)
21
class SingWave : public Object
26
Envelope *pitchEnvelope;
34
SingWave(char *fileName);
38
void normalize(MY_FLOAT newPeak);
39
void setFreq(MY_FLOAT aFreq);
40
void setVibFreq(MY_FLOAT vibFreq);
41
void setVibAmt(MY_FLOAT vibAmt);
42
void setRndAmt(MY_FLOAT rndVib);
43
void setSweepRate(MY_FLOAT swpRate);
44
void setGainRate(MY_FLOAT gainRate);
45
void setGainTarget(MY_FLOAT aTarget);