Difference between revisions of "interpolate"
From TidalCycles userbase
(add small example for interpolate) |
(add default number of cycles) |
||
Line 3: | Line 3: | ||
[[Type signature|Type]]: <syntaxhighlight lang="haskell" inline>interpolate :: Time -> [ControlPattern] -> ControlPattern</syntaxhighlight> | [[Type signature|Type]]: <syntaxhighlight lang="haskell" inline>interpolate :: Time -> [ControlPattern] -> ControlPattern</syntaxhighlight> | ||
− | Morph control values between patterns. The argument supplied to `interpolate` is the ID of the new pattern that is created. | + | Morph control values between patterns in four cycles. The argument supplied to `interpolate` is the ID of the new pattern that is created. |
<syntaxhighlight lang="haskell" inline> | <syntaxhighlight lang="haskell" inline> |
Latest revision as of 12:21, 17 November 2020
Type: interpolate :: Time -> [ControlPattern] -> ControlPattern
Morph control values between patterns in four cycles. The argument supplied to `interpolate` is the ID of the new pattern that is created.
d1 $ sound "arpy*16" # cutoff 100
interpolate 1 $ sound "arpy*16" # cutoff 16000
Stop the newly created pattern using its id:
d1 silence