mirror of
https://github.com/Tonejs/Tone.js
synced 2024-11-15 08:17:07 +00:00
adding MembraneSynth test
This commit is contained in:
parent
cbe1588662
commit
feb010946c
2 changed files with 11 additions and 0 deletions
BIN
test/audio/compare/membraneSynth2.wav
Normal file
BIN
test/audio/compare/membraneSynth2.wav
Normal file
Binary file not shown.
|
@ -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(){
|
||||
|
|
Loading…
Reference in a new issue