Tidal's continuous oscillator patterns (sine, saw, tri, square) modulate control values smoothly over time
Beyond discrete step patterns, TidalCycles provides continuously varying patterns: sine, saw, tri, and square, each cycling between 0 and 1. These are used to modulate effect parameters smoothly: d1 $ sound "bd*16" # pan sine moves the kick left and right over each cycle. Speed and density (slow/fast) apply to continuous patterns: slow 8 $ saw stretches a sawtooth over 8 cycles. Multiple oscillators combine: (range 0.5 3 sine) * (slow 4 saw). The range function rescales an oscillator to any target range: range 300 1000 $ slow 4 $ sine sweeps a filter cutoff. Continuous + discrete patterns must always be combined — continuous patterns alone produce no sound.
Examples
d1 $ sound "bd*16" # pan sine
d1 $ sound "hh*32" # cutoff (range 300 1000 $ slow 4 $ sine) # resonance "0.4"
d1 $ sound "sn:2*16" # speed ((range 0.5 3 sine) * (slow 4 saw))
Assessment
Write a pattern where a hi-hat plays 16 times per cycle with its pan position making one complete left-to-right sweep every 4 cycles. Use sine or saw and slow.