listToPat

From TidalCycles userbase
Revision as of 17:20, 24 December 2020 by Left adjoint (talk | contribs) (adding listToPat)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to: navigation, search


Type: listToPat :: [a] -> Pattern a

listToPat takes a list of things and turns them into a pattern where each item in the list becomes an event all happening in the same cycle, looping upon subsequent cycles.

d1 $ n (listToPat [0, 1, 2]) # s "superpiano"

is equivalent to

d1 $ n "[0 1 2]" # s "superpiano"

See also: fromList