Difference between revisions of "interpolate"

From TidalCycles userbase
Jump to: navigation, search
(Created page with "Category:Transitions")
 
(add default number of cycles)
 
(One intermediate revision by the same user not shown)
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 in four cycles.  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>

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