Add ply()
This commit is contained in:
parent
c2cc6b6dc8
commit
b10e0c3a15
2 changed files with 17 additions and 13 deletions
|
|
@ -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()
|
||||
)
|
||||
})
|
||||
})
|
||||
})
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue