Patternify range (#231)
* patternify range * patternify range * fix test
This commit is contained in:
parent
2ed290a214
commit
5f381cf153
2 changed files with 25 additions and 5 deletions
|
|
@ -853,6 +853,13 @@ describe('Pattern', () => {
|
|||
);
|
||||
});
|
||||
});
|
||||
describe('range', () => {
|
||||
it('Can be patterned', () => {
|
||||
expect(sequence(0, 0).range(sequence(0, 0.5), 1).firstCycle()).toStrictEqual(
|
||||
sequence(0, 0.5).firstCycle(),
|
||||
);
|
||||
});
|
||||
});
|
||||
describe('range2', () => {
|
||||
it('Can change the range of a bipolar pattern', () => {
|
||||
expect(sequence(-1, -0.5, 0, 0.5).range2(1000, 1100).firstCycle()).toStrictEqual(
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue