add range

This commit is contained in:
alex 2022-04-12 17:48:09 +01:00
parent e75d8048fe
commit 0e5dc4f368
2 changed files with 15 additions and 0 deletions

View file

@ -538,4 +538,12 @@ describe('Pattern', function() {
)
})
})
describe("range", () => {
it("Can change the range of a unipolar pattern", () => {
assert.deepStrictEqual(
sequence(0,0.25,0.5,0.75).range(1000,1100).firstCycle(),
sequence(1000,1025,1050,1075).firstCycle()
)
})
})
})