Introducing 'map'
Posted September 10, 2024 by ‐ 1 min read
Use map to transform a collection of sequences (requires v0.55+).
The function map
is used to create a composition by applying a transformation on each sequence in a collection.
|
|
line 1..4
Four sequences are created that play a nice combination of arpeggios.
line 6
To create a collection, all sequences are composed in a join
.
The transformation is done using a fraction
on top of a resequence
.
Note that the resequence
uses the temporary variable called _
.
This composition will the produce the following flat sequence:
sequence('8G_3 8A 8D_ 8A 8G_ 8G_5 8D_5 8A 8E3 8A_ 8B3 8A_ 8E 8E5 8B 8A_ 8B2 8E_ 8G_3 8E_ 8B3 8B 8G_ 8E_ 8D_3 8E 8A_3 8E 8D_ 8D_5 8A_ 8E')