adjusting test thresholds

This commit is contained in:
Yotam Mann 2018-05-28 18:19:27 -04:00
parent aa83647aea
commit 9c009f164a
2 changed files with 3 additions and 3 deletions

View file

@ -11,7 +11,7 @@ function(Synth, Basic, InstrumentTest, APITest, Offline, Frequency, CompareToFil
return CompareToFile(function(){
const synth = new Synth().toMaster();
synth.triggerAttackRelease("C4", 0.1, 0.05);
}, "synth_basic.wav", 0.15);
}, "synth_basic.wav", 0.3);
});
it("matches a file melody", function(){
@ -21,7 +21,7 @@ function(Synth, Basic, InstrumentTest, APITest, Offline, Frequency, CompareToFil
synth.triggerAttack("E4", 0.1, 0.5);
synth.triggerAttackRelease("G4", 0.5, 0.3);
synth.triggerAttackRelease("B4", 0.5, 0.5, 0.2);
}, "synth_melody.wav", 0.055);
}, "synth_melody.wav", 0.3);
});
context("API", function(){

View file

@ -13,7 +13,7 @@ function(BasicTests, AMOscillator, Offline, SourceTests, OscillatorTests, Test,
return CompareToFile(function(){
var osc = new AMOscillator().toMaster();
osc.start(0.1).stop(0.4);
}, "amOscillator.wav");
}, "amOscillator.wav", 0.01);
});
context("Amplitude Modulation", function(){