Iterating over patterns

Posted March 5, 2021 by  ‐ 1 min read

Using loop and resequence to listen to different note patterns.

1
2
3
4
5
6
7
8
9
bpm(90)
s = sequence('c e g b')
i = iterator(
    '(1 2) (3 4)',
    '(1 3) (2 4)', 
    '1 (2 3) 4', 
    '(1 4) (2 3)')
m = resequence(i,s)
l = loop(m,next(i))
🎶 Play

Using resequence you can compose a new sequence with index-based entries. The first compostion played by the loop is (C E) (G B).