Browse Source

Fix near() function in ADSR

tags/v0.6.0
Andrew Belt 7 years ago
parent
commit
e2adf87b14
1 changed files with 2 additions and 2 deletions
  1. +2
    -2
      src/ADSR.cpp

+ 2
- 2
src/ADSR.cpp View File

@@ -91,8 +91,8 @@ void ADSR::step() {
decaying = false;
}

bool sustaining = near(env, sustain, 1e-3);
bool resting = near(env, 0.0f, 1e-3);
bool sustaining = isNear(env, sustain, 1e-3);
bool resting = isNear(env, 0.0f, 1e-3);

outputs[ENVELOPE_OUTPUT].value = 10.0f * env;



Loading…
Cancel
Save