home/ atoms/ tidal-prefix-not-method

Tidal uses prefix functions rather than method-chaining, so Strudel-isms cause GHCi scope or parse errors

Tidal is a Haskell library and uses prefix function application, not method-chaining. A function like fast 2 must be applied as fast 2 $ … or composed with $, not .fast(2). Pasting Strudel-isms such as .every(4, …), setcpm, or chord(“Cm7”) into Tidal causes a GHCi ‘Variable not in scope’ or parse error. The equivalent Tidal forms are every 4, setcps (bpm/60/4), and n “c’min7”.

Examples

s("bd sd").every(4, fast 2) → GHCi parse error. Tidal form: every 4 (fast 2) $ s "bd sd".

Assessment

Rewrite the Strudel expression s("bd sd").every(4, fast 2).degradeBy(0.3) in valid Tidal syntax.

“Tidal uses **prefix** functions (`fast 2 $ …`), never `.method()`.”
context/ · L5-debug/tidal.md · chunk 1