Difference between revisions of "interpolate"

From TidalCycles userbase
Jump to: navigation, search
(Created page with "Category:Transitions")
 
(add small example for interpolate)
Line 1: Line 1:
 
[[Category:Transitions]]
 
[[Category:Transitions]]
 +
 +
[[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.
 +
 +
<syntaxhighlight lang="haskell" inline>
 +
d1 $ sound "arpy*16" # cutoff 100
 +
</syntaxhighlight>
 +
 +
<syntaxhighlight lang="haskell" inline>
 +
interpolate 1 $ sound "arpy*16" # cutoff 16000
 +
</syntaxhighlight>
 +
 +
Stop the newly created pattern using its id:
 +
 +
<syntaxhighlight lang="haskell" inline>
 +
d1 silence
 +
</syntaxhighlight>

Revision as of 12:19, 17 November 2020


Type: interpolate :: Time -> [ControlPattern] -> ControlPattern

Morph control values between patterns. 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