morph
Takes two binary rhythms represented as lists of 1s and 0s, and a number between 0 and 1 that morphs between them. The two lists should contain the same number of true values.
sound("hh").struct(morph([1,0,1,0,1,0,1,0], // straight rhythm
[1,1,0,1,0,1,0], // wonky rhythm
0.25 // creates a slightly wonky rhythm
)
) sound("hh").struct(morph("1:0:1:0:1:0:1:0", // straight rhythm
"1:1:0:1:0:1:0", // wonky rhythm
sine.slow(8) // slowly morph between the rhythms
)
)