press

From TidalCycles userbase
Jump to: navigation, search


Type: press :: Pattern a -> Pattern a

press syncopates a rhythm, by shifting every event in a pattern halfway into its arc.

d1 $ press $ sound "bd sn hh drum"

This is equivalent to:

d1 $ sound "[~ bd] [~ sn] [~ hh] [~ drum]"

pressBy

Type: pressBy :: Time -> Pattern a -> Pattern a

pressBy works like press, but it allows you so specify the amount by which events are shifted. press is just a shorthand for pressBy 0.5

d1 $ superimpose (pressBy $ slow 8 $ range 0 0.5 sine) $ sound "bd drum*2 hh hh"


press and pressBy were added in release 1.7.