mirror of
https://github.com/Tonejs/Tone.js
synced 2024-11-16 08:38:00 +00:00
increasing tolerance for test
This commit is contained in:
parent
cfc33cf39c
commit
5eb590da27
1 changed files with 1 additions and 1 deletions
|
@ -292,7 +292,7 @@ function (Envelope, Basic, Offline, Test) {
|
|||
if (time < env.attack){
|
||||
expect(sample).to.be.within(0, velocity + 0.01);
|
||||
} else if (time < env.attack + env.decay){
|
||||
expect(sample).to.be.within(env.sustain * velocity, velocity + 0.01);
|
||||
expect(sample).to.be.within(env.sustain * velocity - 0.01, velocity + 0.01);
|
||||
} else if (time < duration){
|
||||
expect(sample).to.be.closeTo(env.sustain * velocity, 0.1);
|
||||
} else if (time < duration + env.release){
|
||||
|
|
Loading…
Reference in a new issue