mirror of
https://github.com/Tonejs/Tone.js
synced 2024-11-16 08:38:00 +00:00
26 lines
568 B
JavaScript
26 lines
568 B
JavaScript
|
define(["Tone/instrument/Monophonic", "helper/Basic"], function (Monophonic, Basic) {
|
||
|
|
||
|
describe("Monophonic", function(){
|
||
|
|
||
|
Basic(Monophonic);
|
||
|
|
||
|
context("API", function(){
|
||
|
|
||
|
it ("can be constructed with an options object", function(){
|
||
|
var instr = new Monophonic({
|
||
|
"portamento" : 0.2
|
||
|
});
|
||
|
expect(instr.portamento).to.equal(0.2);
|
||
|
instr.dispose();
|
||
|
});
|
||
|
|
||
|
it ("set the portamento", function(){
|
||
|
var instr = new Monophonic();
|
||
|
instr.portamento = 0.4;
|
||
|
expect(instr.portamento).to.equal(0.4);
|
||
|
instr.dispose();
|
||
|
});
|
||
|
|
||
|
});
|
||
|
});
|
||
|
});
|