someCycles

From TidalCycles userbase
Revision as of 19:18, 9 December 2018 by Yaxu (talk | contribs) (Yaxu moved page SomeCycles to someCycles)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
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"

someCyclesBy

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.