Difference between revisions of "stutter"
From TidalCycles userbase
Left adjoint (talk | contribs) (adding stutter, linking to ply and stut) |
Left adjoint (talk | contribs) |
||
Line 11: | Line 11: | ||
<source> | <source> | ||
d1 $ stut 4 1 (1/16) $ s "bd cp" | d1 $ stut 4 1 (1/16) $ s "bd cp" | ||
+ | </source> | ||
+ | |||
+ | Specific conveniences functions that use <source inline>stutter</source> are: | ||
+ | |||
+ | <source> | ||
+ | echo = stutter (2 :: Int) | ||
+ | triple = stutter (3 :: Int) | ||
+ | quad = stutter (4 :: Int) | ||
+ | double = echo | ||
</source> | </source> |
Latest revision as of 23:39, 24 December 2020
Type: stutter :: Integral i => i -> Time -> Pattern a -> Pattern a
stutter is like stut that doesn't reduce the volume or ply if you controlled the timing. stutter n t
repeats each event in the pattern n
times, separated by t
time (in fractions of a cycle).
The code
d1 $ stutter 4 (1/16) $ s "bd cp"
should be functionally equivalent to
d1 $ stut 4 1 (1/16) $ s "bd cp"
Specific conveniences functions that use stutter
are:
echo = stutter (2 :: Int)
triple = stutter (3 :: Int)
quad = stutter (4 :: Int)
double = echo