move work on TinyAudio.

This commit is contained in:
Erwin Coumans
2017-04-28 11:35:00 -07:00
parent e6759cfa4f
commit 37a16f7e6b
8 changed files with 325 additions and 102 deletions

View File

@@ -18,9 +18,9 @@ b3ADSR::b3ADSR()
{
m_target = 0.0;
m_value = 0.0;
m_attackRate = 0.001;
m_attackRate = 0.0001;
m_decayRate = 0.00001;
m_releaseRate = 0.005;
m_releaseRate = 0.0005;
m_sustainLevel = 0.5;
m_state = ADSR_IDLE;
}
@@ -78,7 +78,7 @@ double b3ADSR::tick()
bool b3ADSR::isIdle() const
{
return true;
return m_state == ADSR_IDLE;
}
void b3ADSR::keyOn()