Tone.js/test/instrument/Monophonic.js

28 lines
547 B
JavaScript
Raw Normal View History

import Monophonic from "Tone/instrument/Monophonic";
import Basic from "helper/Basic";
2015-08-31 15:37:10 +00:00
describe("Monophonic", function(){
2015-08-31 15:37:10 +00:00
Basic(Monophonic);
2015-08-31 15:37:10 +00:00
context("API", function(){
2015-08-31 15:37:10 +00:00
it("can be constructed with an options object", function(){
var instr = new Monophonic({
"portamento" : 0.2
2015-08-31 15:37:10 +00:00
});
expect(instr.portamento).to.equal(0.2);
instr.dispose();
});
2015-08-31 15:37:10 +00:00
it("set the portamento", function(){
var instr = new Monophonic();
instr.portamento = 0.4;
expect(instr.portamento).to.equal(0.4);
instr.dispose();
2015-08-31 15:37:10 +00:00
});
2015-08-31 15:37:10 +00:00
});
2017-12-30 16:26:29 +00:00
});