Difference between revisions of "superimpose"

From TidalCycles userbase
Jump to: navigation, search
Line 15: Line 15:
 
           ]
 
           ]
 
</source>
 
</source>
 +
 +
== See also ==
  
 
Compare this function with [[jux]] which works similarly but pans the two versions of the pattern left and right, [[off]] which offsets the modified pattern in time, and [[layer]] which works like superimpose but allows you to layer up the results of more than one function.
 
Compare this function with [[jux]] which works similarly but pans the two versions of the pattern left and right, [[off]] which offsets the modified pattern in time, and [[layer]] which works like superimpose but allows you to layer up the results of more than one function.
  
 
[[Category:Functions]]
 
[[Category:Functions]]

Revision as of 07:57, 11 March 2019

Type: superimpose :: (Pattern a -> Pattern a) -> Pattern a -> Pattern a

superimpose plays a modified version of a pattern 'on top of' the original pattern, resulting in the modified and original version of the patterns being played at the same time. For example this:

d1 $ superimpose (fast 2) $ sound "bd sn [cp ht] hh"

...is the same as this:

d1 $ stack [sound "bd sn [cp ht] hh",
            fast 2 $ sound "bd sn [cp ht] hh"
           ]

See also

Compare this function with jux which works similarly but pans the two versions of the pattern left and right, off which offsets the modified pattern in time, and layer which works like superimpose but allows you to layer up the results of more than one function.