From TidalCycles userbase
(Redirected from someCyclesBy)
Jump to: navigation, search

See also: sometimes

Type: someCycles :: (Pattern a -> Pattern a) -> Pattern a -> Pattern a

someCycles is similar to sometimes, but instead of applying the given function to random events, it applies it to random cycles. For example the following will either distort all of the events in a cycle, or none of them:

d1 $ someCycles (# crush 2) $ n "0 1 [~ 2] 3" # sound "arpy"


As with sometimesBy, if you want to be specific, you can use someCyclesBy and a number. For example

someCyclesBy 0.93 (# speed 2)

will apply the speed control on average 93 cycles out of a hundred.