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
5 changed files with 84 additions and 8 deletions
+5
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)));
});
});
});