Difference between revisions of "off"

From TidalCycles userbase
Jump to: navigation, search
(Marked this version for translation)
 
Line 1: Line 1:
 
<languages/>
 
<languages/>
 
<translate>
 
<translate>
 +
<!--T:1-->
 
[[Type]]: <source inline>Pattern Time -> (Pattern a -> Pattern a) -> Pattern a -> Pattern a</source>
 
[[Type]]: <source inline>Pattern Time -> (Pattern a -> Pattern a) -> Pattern a -> Pattern a</source>
  
 +
<!--T:2-->
 
'''off''' is similar to [[superimpose]], in that it applies a function to a pattern, and layers up the results on top of the original pattern. The difference is that <source inline>off</source> takes an extra pattern being a time (in cycles) to shift the transformed version of the pattern by.
 
'''off''' is similar to [[superimpose]], in that it applies a function to a pattern, and layers up the results on top of the original pattern. The difference is that <source inline>off</source> takes an extra pattern being a time (in cycles) to shift the transformed version of the pattern by.
  
 +
<!--T:3-->
 
The following plays a pattern on top of itself, but offset by an eighth of a cycle, with a distorting bitcrush effect applied.
 
The following plays a pattern on top of itself, but offset by an eighth of a cycle, with a distorting bitcrush effect applied.
  
 +
<!--T:4-->
 
<source>
 
<source>
 
d1 $ off 0.125 (# crush 2) $ sound "bd [~ sn:2] mt lt*2"
 
d1 $ off 0.125 (# crush 2) $ sound "bd [~ sn:2] mt lt*2"
 
</source>
 
</source>
  
 +
<!--T:5-->
 
The following makes arpeggios by adding offset patterns that are shifted up the scale:
 
The following makes arpeggios by adding offset patterns that are shifted up the scale:
  
 +
<!--T:6-->
 
<source>
 
<source>
 
d1 $ slow 2 $  
 
d1 $ slow 2 $  
Line 19: Line 25:
 
</source>
 
</source>
  
 +
<!--T:7-->
 
[[Category:Functions]]
 
[[Category:Functions]]
 
</translate>
 
</translate>

Latest revision as of 23:37, 17 December 2019

Other languages:
English • ‎français

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

off is similar to superimpose, in that it applies a function to a pattern, and layers up the results on top of the original pattern. The difference is that off takes an extra pattern being a time (in cycles) to shift the transformed version of the pattern by.

The following plays a pattern on top of itself, but offset by an eighth of a cycle, with a distorting bitcrush effect applied.

d1 $ off 0.125 (# crush 2) $ sound "bd [~ sn:2] mt lt*2"

The following makes arpeggios by adding offset patterns that are shifted up the scale:

d1 $ slow 2 $ 
  n (off 0.25 (+12) $ off 0.125 (+7) $ slow 2 "c(3,8) a(3,8,2) f(3,8) e(3,8,4)") 
  # sound "superpiano"