Test and fix chop / squeezebind
This commit is contained in:
parent
83c9200e7d
commit
51db0eaf40
2 changed files with 22 additions and 1 deletions
|
|
@ -507,4 +507,16 @@ describe('Pattern', function() {
|
|||
)
|
||||
})
|
||||
})
|
||||
describe("chop", () => {
|
||||
it("Can chop(2)", () => {
|
||||
assert.deepStrictEqual(
|
||||
sequence({sound: "a"}, {sound: "b"})._chop(2).firstCycle(),
|
||||
sequence({sound: "a", begin: 0, end: 0.5},
|
||||
{sound: "a", begin: 0.5, end: 1},
|
||||
{sound: "b", begin: 0, end: 0.5},
|
||||
{sound: "b", begin: 0.5, end: 1}
|
||||
).firstCycle()
|
||||
);
|
||||
});
|
||||
})
|
||||
})
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue