add soft-clipping of mixed sounds using tanh
expose ADSR to TinyAudio API enable envelope when playing wav files
This commit is contained in:
@@ -21,6 +21,15 @@ public:
|
||||
bool isIdle() const;
|
||||
void keyOn();
|
||||
void keyOff();
|
||||
|
||||
void setValues(double attack,double decay,double sustain,double release)
|
||||
{
|
||||
m_attackRate = attack;
|
||||
m_decayRate = decay;
|
||||
m_sustainLevel = sustain;
|
||||
m_releaseRate = release;
|
||||
}
|
||||
|
||||
};
|
||||
|
||||
#endif //B3_ADSR_H
|
||||
Reference in New Issue
Block a user