Difference between revisions of "nudge"

From TidalCycles userbase
Jump to: navigation, search
m (Yaxu moved page Nudge to nudge)
 
Line 16: Line 16:
  
 
<source>
 
<source>
d1 $ s "drum*8" # nudge (scale 0 1 $ slow 8 sine)
+
d1 $ s "drum*8" # nudge (range 0 1 $ slow 8 sine)
 
</source>
 
</source>
  

Latest revision as of 13:27, 20 December 2018

Type: nudge :: Pattern Double -> ControlPattern

nudge turns a number pattern into a control pattern that changes the timing of a sample. Allows for nice things like swing feeling:

d1 $ stack [
  sound "bd bd/4",
  sound "hh(5,8)"
  ] # nudge "[0 0.04]*4"

Low values will give a more human feeling, high values might result in quite the contrary.

You can also use nudge to create continuous time stretches (although this might be better to do with cps):

d1 $ s "drum*8" # nudge (range 0 1 $ slow 8 sine)

You can also use nudge to fine-tune timing with other processes.