home/ atoms/ sonic-pi-octs-fn

octs generates a ring of the same note across multiple consecutive octaves

octs :e1, 3 returns a ring (:e1, :e2, :e3) — the note E transposed across 3 consecutive octaves. Combined with tick, it provides a simple octave-cycling arpeggio or bass line. Useful for sequencing bass lines that cycle through registers or for additive synthesis stacking. Compact notation for a pattern that would otherwise require explicit list construction with rpitch: calculations.

Examples

live_loop :bass do midi (octs :e1, 3).tick, sustain: 0.1 sleep 0.125 end

Assessment

Use octs to cycle through 3 octaves of E1 in a live_loop, each 2 beats long. Combine with a chord ring to create octave-jumping chords.

“midi (octs :e1, 3).tick, sustain: 0.1”
corpus · sonic-pi-built-in-tutorial · chunk 23