sig

From TidalCycles userbase
Revision as of 23:52, 24 December 2020 by Left adjoint (talk | contribs) (Created page with "{{DISPLAYTITLE:sig}} Type: <syntaxhighlight lang="haskell" inline>sig :: (Time -> a) -> Pattern a</syntaxhighlight> '''sig''' takes a function of time and...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to: navigation, search

Type: sig :: (Time -> a) -> Pattern a

sig takes a function of time and turns it into a pattern. It's very useful for creating continuous patterns such as sine or perlin. For example, saw is defined as

saw = sig $ \t -> mod' (fromRational t) 1