rev() reverses the time direction of a pattern's events within each cycle
.rev() plays a pattern’s events in reverse chronological order within the cycle. For a four-step sequence, the last event becomes the first and the first becomes the last. This is a time-transformation unique to pattern-based languages — it operates on the event structure, not the audio waveform (contrast with speed(-1)). rev() is particularly interesting combined with jux() to create stereo contrast between forward and reversed versions.
Examples
n(“0 2 4 6 ~ 7 9 5”).scale(“C:minor”).rev() // events play backwards
Assessment
What does n(“0 1 [4 3] 2”).sound(“jazz”).rev() produce? Write out the reversed order of events.