Add ply()

This commit is contained in:
alex 2022-04-12 11:31:20 +01:00
parent c2cc6b6dc8
commit b10e0c3a15
2 changed files with 17 additions and 13 deletions

View file

@ -34,6 +34,7 @@ import {
tri,
tri2,
id,
ply,
} from '../strudel.mjs';
//import { Time } from 'tone';
import pkg from 'tone';
@ -498,4 +499,12 @@ describe('Pattern', function() {
)
})
})
describe("ply", () => {
it("Can ply(3)", () => {
assert.deepStrictEqual(
sequence("a", ["b","c"]).ply(3).firstCycle(),
sequence(pure("a").fast(3), [pure("b").fast(3), pure("c").fast(3)]).firstCycle()
)
})
})
})