Difference between revisions of "jumpMod"
From TidalCycles userbase
(Typo in code.) |
(Change "pattern swimlane" to "ControlPattern track". And improve the description.) |
||
Line 1: | Line 1: | ||
[[Category:Transitions]] | [[Category:Transitions]] | ||
− | <code>jumpMod</code> takes the identifier of the | + | <code>jumpMod</code> takes the identifier of the ControlPattern track and an integer ''cycleMod''. It will jump '''at cycle boundary''' into the given pattern when <code>currentCycle `mod` cycleMod == 0</code>. |
'''Example:''' Say you have this: | '''Example:''' Say you have this: | ||
Line 8: | Line 8: | ||
d2 $ sound "bd" --have a beat on the 1 for orientation | d2 $ sound "bd" --have a beat on the 1 for orientation | ||
</source> | </source> | ||
− | Then the subdivision on the hi-hat will increase 2 cycles after evaluation of the next line: | + | Then the subdivision on the hi-hat will increase in one of the next 2 cycles after evaluation of the next line: |
<source> | <source> | ||
jumpMod 1 2 $ sound "hh*8" --`1` because `d1` | jumpMod 1 2 $ sound "hh*8" --`1` because `d1` | ||
</source> | </source> | ||
− | The transition will | + | The transition will align with one of the next 2 <code>bd</code> onsets. |
'''See also:''' [[jump]], [[jumpIn]], [[jumpIn']] | '''See also:''' [[jump]], [[jumpIn]], [[jumpIn']] |
Latest revision as of 19:06, 13 July 2019
jumpMod
takes the identifier of the ControlPattern track and an integer cycleMod. It will jump at cycle boundary into the given pattern when currentCycle `mod` cycleMod == 0
.
Example: Say you have this:
d1 $ sound "hh*4"
d2 $ sound "bd" --have a beat on the 1 for orientation
Then the subdivision on the hi-hat will increase in one of the next 2 cycles after evaluation of the next line:
jumpMod 1 2 $ sound "hh*8" --`1` because `d1`
The transition will align with one of the next 2 bd
onsets.