adjusting test thresholds

This commit is contained in:
Yotam Mann 2018-06-07 12:28:31 -04:00
parent 049bfd04de
commit 4bc4391d9a
2 changed files with 3 additions and 3 deletions

View file

@ -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);
});
});

View file

@ -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);
});
}