cps

From TidalCycles userbase
Revision as of 21:03, 18 February 2020 by Kindohm (talk | contribs)
Jump to: navigation, search

Type: cps :: Pattern Double -> ControlPattern

cps turns a number pattern into a control pattern that changes the tempo of all running patterns:

d1 $ s "bd*8" # cps "0.7 1 0.5 1.2"

d1 $ s "bd*8" # cps "<0.7 1 0.5 1.2>"

This allows for smooth, continuous time stretches with a continuous function:

d1 $ s "bd*8" # cps (range 1 2 $ slow 4 sine)

Note that the behavior of cps is _global_ and affects all running patterns, even though it only needs to be used on one pattern:

d1 $ s "bd*8" # cps "<1 1.5 0.75>"

-- this pattern is affected by the cps changes
d2 $ s "cp(3,8)"