mirror of
https://github.com/Tonejs/Tone.js
synced 2024-11-15 08:17:07 +00:00
adjusting test thresholds
This commit is contained in:
parent
049bfd04de
commit
4bc4391d9a
2 changed files with 3 additions and 3 deletions
|
@ -100,8 +100,8 @@ function(Filter, Basic, Offline, Test, Signal, PassAudio, PassAudioStereo, Oscil
|
|||
var osc = new Oscillator(880).connect(filter);
|
||||
osc.start(0);
|
||||
}, 0.2).then(function(buffer){
|
||||
expect(buffer.getRmsAtTime(0.05)).to.be.closeTo(0.51, 0.01);
|
||||
expect(buffer.getRmsAtTime(0.1)).to.be.closeTo(0.51, 0.01);
|
||||
expect(buffer.getRmsAtTime(0.05)).to.be.within(0.37, 0.53);
|
||||
expect(buffer.getRmsAtTime(0.1)).to.be.within(0.37, 0.53);
|
||||
});
|
||||
});
|
||||
|
||||
|
|
|
@ -13,7 +13,7 @@ function(PluckSynth, Basic, InstrumentTest, CompareToFile, Supports){
|
|||
return CompareToFile(function(){
|
||||
var synth = new PluckSynth().toMaster();
|
||||
synth.triggerAttack("C4");
|
||||
}, "pluckSynth.wav", 0.21);
|
||||
}, "pluckSynth.wav", 0.25);
|
||||
});
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue