Examples / Techniques / Motion

sine-pan-sweep

Continuous stereo motion: a sine LFO sweeps the pan across 0.2..0.8 (never negative — negative pan is silent). The lead drifts side to side.

Demos/Techniques/Motion/sine-pan-sweep.strudel · 120 BPM

Play in Cycletron Opens it in the app in your browser, with the visualizers. Desktop browsers only.

// Continuous stereo motion: a sine LFO sweeps the pan across 0.2..0.8
// (never negative — negative pan is silent). The lead drifts side to side.
setbpm(120);

stack(
  s("bd*4"),
  note("0 3 7 10 7 3").scale("c4:minor").s("wt_lead")
    .pan(sine.range(0.2, 0.8))
    .room(0.3).gain(0.5)
)