segment

From TidalCycles userbase
Revision as of 06:19, 26 November 2018 by Echophon (talk | contribs) (Created page with "{{DISPLAYTITLE:discretise}} Type: <source inline>discretise :: Time -> Pattern a -> Pattern a</source> '''discretise''' 'samples' the pattern at a rate of...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to: navigation, search

Type: discretise :: Time -> Pattern a -> Pattern a

discretise 'samples' the pattern at a rate of n events per cycle. Useful for turning a continuous pattern into a discrete one.

In this example, the pattern originates from the shape of a sine wave, a continuous pattern. Without discretise the samples will get triggered at a very high frequency.

d1 $ n (slow 2 $ discretise 16 $ range 0 32 $ sine) # sound "amencutup"