Difference between revisions of "randslice"

From TidalCycles userbase
Jump to: navigation, search
(Created page with "Type: <source inline>randslice :: Pattern Int -> ControlPattern -> ControlPattern</source> '''randslice''' chops the sample into the given number of pieces and then plays...")
 
 
Line 13: Line 13:
 
</source>
 
</source>
  
 +
See also [[slice]]
  
 
[[Category:Functions]]
 
[[Category:Functions]]
 
[[Category:Randomness and chance]]
 
[[Category:Randomness and chance]]

Latest revision as of 17:11, 9 February 2019

Type: randslice :: Pattern Int -> ControlPattern -> ControlPattern

randslice chops the sample into the given number of pieces and then plays back a random one each cycle:

d1 $ randslice 32 $ sound "bev"

Use fast to get more than one per cycle;

d1 $ fast 4 $ randslice 32 $ sound "bev"

See also slice