home/ atoms/ tidal-compose-transformations

Tidal transformations chain with the . operator to combine into one function

Tidal transformations are functions, so several can be composed into one using Haskell’s function-composition operator .. rev . (slow 1.5) builds a single transformation that first slows by 1.5 and then reverses, which can be passed anywhere a transformation is expected — for example inside jux. This lets performers stack behaviours (reverse, slow, fast, effects) without deeply nesting $ applications, and because almost everything in Tidal is a pattern, the same composition applies to effect patterns too.

Examples

d1 $ jux (rev . (slow 1.5)) $ sound "arpy arpy:1 arpy:2 arpy:3"
-- the composed transform is applied to the right channel of jux

Assessment

Compose rev and fast 2 into a single transformation with . and apply it inside jux. Explain the order in which the two transformations take effect.

“You can chain them together using `.`”
corpus · tidalcycles-workshop-hands-on-beginner-course · chunk 6