weave and weaveWith (#465)

Added weave and weaveWith from tidal
This commit is contained in:
Alex McLean 2023-02-18 00:00:18 +00:00 committed by GitHub
parent cbae355896
commit fdb76867a7
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
5 changed files with 84 additions and 8 deletions

View file

@ -981,4 +981,9 @@ describe('Pattern', () => {
// sameFirst(s('bd').apply(set.squeeze.n(3).fast(2)), s('bd').set.squeeze.n(3).fast(2));
});
});
describe('weave', () => {
it('Can distribute patterns along a pattern', () => {
sameFirst(n(0, 1).weave(2, s('bd', silence), s(silence, 'sd')), sequence(s('bd').n(0), s('sd').n(1)));
});
});
});