superimpose

From TidalCycles userbase
Revision as of 22:42, 17 December 2019 by Raphael (talk | contribs) (Marked this version for translation)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to: navigation, search
Other languages:
English • ‎français

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.