Integrate relevant evaluators into Voice state

This commit is contained in:
Jack Andersen
2016-06-01 16:28:48 -10:00
parent e932539ec4
commit 8930e005df
5 changed files with 96 additions and 59 deletions

View File

@@ -12,6 +12,7 @@ void Envelope::reset(const ADSR* adsr)
m_sustainFactor = adsr->getSustain();
m_releaseTime = adsr->getRelease();
m_releaseStartFactor = 0.0;
m_adsrSet = true;
}
void Envelope::reset(const ADSRDLS* adsr, int8_t note, int8_t vel)
@@ -23,6 +24,7 @@ void Envelope::reset(const ADSRDLS* adsr, int8_t note, int8_t vel)
m_sustainFactor = adsr->getSustain();
m_releaseTime = adsr->getRelease();
m_releaseStartFactor = 0.0;
m_adsrSet = true;
}
void Envelope::keyOff()