2019-01-27 18:05:20 +00:00
|
|
|
import JCReverb from "Tone/effect/JCReverb";
|
|
|
|
import Basic from "helper/Basic";
|
|
|
|
import EffectTests from "helper/EffectTests";
|
2015-08-26 14:29:35 +00:00
|
|
|
|
2019-01-27 18:05:20 +00:00
|
|
|
describe("JCReverb", function(){
|
2015-08-26 14:29:35 +00:00
|
|
|
|
2019-01-27 18:05:20 +00:00
|
|
|
Basic(JCReverb);
|
|
|
|
EffectTests(JCReverb);
|
2015-08-26 14:29:35 +00:00
|
|
|
|
2019-01-27 18:05:20 +00:00
|
|
|
context("API", function(){
|
|
|
|
|
|
|
|
it("can pass in options in the constructor", function(){
|
|
|
|
var reverb = new JCReverb({
|
|
|
|
"roomSize" : 0.2,
|
2015-08-26 14:29:35 +00:00
|
|
|
});
|
2019-01-27 18:05:20 +00:00
|
|
|
expect(reverb.roomSize.value).to.be.closeTo(0.2, 0.01);
|
|
|
|
reverb.dispose();
|
|
|
|
});
|
2015-08-26 14:29:35 +00:00
|
|
|
|
2019-01-27 18:05:20 +00:00
|
|
|
it("can get/set the options", function(){
|
|
|
|
var reverb = new JCReverb();
|
|
|
|
reverb.set({
|
|
|
|
"roomSize" : 0.23,
|
2015-08-26 14:29:35 +00:00
|
|
|
});
|
2019-01-27 18:05:20 +00:00
|
|
|
expect(reverb.get().roomSize).to.be.closeTo(0.23, 0.01);
|
|
|
|
reverb.dispose();
|
2015-08-26 14:29:35 +00:00
|
|
|
});
|
|
|
|
});
|
2017-12-30 16:26:29 +00:00
|
|
|
});
|
2019-01-27 18:05:20 +00:00
|
|
|
|