Difference between revisions of "stutter"

From TidalCycles userbase
Jump to: navigation, search
(adding stutter, linking to ply and stut)
 
 
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 00:39, 25 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