adding MembraneSynth test

This commit is contained in:
tambien 2018-06-18 15:49:38 -04:00
parent cbe1588662
commit feb010946c
2 changed files with 11 additions and 0 deletions

Binary file not shown.

View file

@ -14,6 +14,17 @@ function(MembraneSynth, Basic, InstrumentTest, CompareToFile){
}, "membraneSynth.wav", 0.5);
});
it("matches another file", function(){
return CompareToFile(function(){
var synth = new MembraneSynth({
envelope : {
sustain : 0
}
}).toMaster();
synth.triggerAttackRelease("C2", 0.1);
}, "membraneSynth2.wav", 0.5);
});
context("API", function(){
it("can get and set oscillator attributes", function(){