Difference between revisions of "deconstruct"

From TidalCycles userbase
Jump to: navigation, search
(Created page with "Type: <source inline>deconstruct :: Int -> Pattern String -> String</source> The '''deconstruct''' function displays the given number of steps within a pat...")
 
 
Line 1: Line 1:
 
[[Type signature|Type]]: <source inline>deconstruct :: Int -> Pattern String -> String</source>
 
[[Type signature|Type]]: <source inline>deconstruct :: Int -> Pattern String -> String</source>
  
The '''deconstruct''' function displays the given number of steps within a pattern of strings.  
+
The '''deconstruct''' function displays the given number of steps within a pattern of strings. It's useful for visualising simple patterns, for example for seeing what a euclidean pattern is doing.  
  
 
For example:
 
For example:

Latest revision as of 11:09, 16 March 2019

Type: deconstruct :: Int -> Pattern String -> String

The deconstruct function displays the given number of steps within a pattern of strings. It's useful for visualising simple patterns, for example for seeing what a euclidean pattern is doing.

For example:

deconstruct 8 "[bd(3,8), sn(5,8,2)]"

returns:

"[bd, sn] sn ~ [bd, sn] sn ~ [bd, sn] ~"