Tone.js/test/instrument/Monophonic.js

27 lines
567 B
JavaScript
Raw Normal View History

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