Difference between revisions of "delaytime"

From TidalCycles userbase
Jump to: navigation, search
m (Yaxu moved page Delaytime to delaytime)
Line 12: Line 12:
  
 
<source>
 
<source>
d1 $ s "drum*4 [drum:1 drum:2/2]" # delaytime (scale 0.01 0.3 $ slow 4 sine) # delay "0.5"
+
d1 $ s "drum*4 [drum:1 drum:2/2]" # delaytime (range 0.01 0.3 $ slow 4 sine) # delay "0.5"
 
</source>
 
</source>
  
 
[[Category:Control Functions]]
 
[[Category:Control Functions]]

Revision as of 12:27, 20 December 2018

Type: delaytime :: Pattern Double -> ControlPattern

delaytime turns a number pattern into a control pattern that changes the length of the delay effect. The delay function is required in order for delaytime to have any effect.

d1 $ s "drum*4 [drum:1 drum:2/2]" # delaytime "<0 0.01 0.1 0.2 0.5>" # delay "0.5"

Interesting results can be achieved when applying a continuous function to delaytime:

d1 $ s "drum*4 [drum:1 drum:2/2]" # delaytime (range 0.01 0.3 $ slow 4 sine) # delay "0.5"