Skip to content

Modifiers

Modifiers wrap a sub-sequence inside seq() DSL strings and change how elements are selected or ordered each cycle. They work in both melody and drum modes.

Modifier reference

ModifierSyntaxDescription
Reverse(rev:a,b,c)Even cycles = forward, odd cycles = reversed
Round Robin(robin:a,b,c)Advances to the next value each cycle
Random(rand:a,b,c)Picks one value at random each cycle
Shuffle(shuffle:a,b,c)Shuffles once; re-shuffles after all values played
Every N(everyN:a)Plays only on every N-th cycle; silent otherwise
Weighted(w:3*a,1*b)Weighted random — N*item sets relative probability

Examples

// Reverse: alternates direction each cycle
seq(4, '(rev:0,2,4,5,3)')
// Round-robin: cycles through 0, 2, 4, 2, 0, 2, ...
seq(4, '(robin:0,2,4,2),_,_,_')
// Random: picks one of 0, 4, 7 at random
seq(4, '(rand:0,4,7),_,_,_')
// Every 2nd cycle only
seq(4, '(every2:...x)')
// Every 4th cycle: grace note on beat 1
seq(4, '(every4:0),_,_,(every4:4)')
// Weighted: degree 0 three times as likely as degree 4 or 7
seq(4, '(w:3*0,1*4,1*7)')