Skip to content
This repository was archived by the owner on Jul 10, 2019. It is now read-only.

update jumpIn and jumpIn` #97

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
18 changes: 16 additions & 2 deletions _functions/transitions/jumpIn'.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,21 @@ category: transitions
---

~~~haskell
jumpIn' :: Int -> Time -> [ParamPattern] -> ParamPattern
jumpIn' :: Show a => a -> Int -> ControlPattern -> IO ()
~~~

Does a sharp "jump" cut transition after at least the specified number of cycles have passed, but only transitions at a cycle boundary (e.g. when the cycle count is an integer)
`jumpIn'` is passed a **channel number**, an integer **number of cycles**, and a **control pattern**.

`jumpIn'`does a sharp "jump" cut transition after at least the specified number of cycles have passed, but only transitions at the upcoming cycle boundary (e.g. when the cycle count is an integer). For jump cut transitions not limited to cycle boundaries, look at `jumpIn`.

Given:
~~~haskell
d1 $ sound "bd sd*2"
~~~
and executing the following **anytime** within the cycle:
~~~haskell
jumpIn' 1 0 $ sound "rs cp*2"
~~~
causes the latter pattern to begin playing on channel 1 at the next upcoming cycle boundary after 0 cycles (the beginning of the next cycle starting with the `rs`).


21 changes: 19 additions & 2 deletions _functions/transitions/jumpIn.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,24 @@ category: transitions
---

~~~haskell
jumpIn :: Int -> Time -> [ParamPattern] -> ParamPattern
jumpIn :: Show a => a -> Int -> ControlPattern -> IO ()
~~~

Does a sharp "jump" cut transition after the specified number of cycles have passed.
`jumpIn` is passed a **channel number**, an integer **number of cycles**, and a **control pattern**.

`jumpIn` does a sharp "jump" cut transition after the specified number of cycles have passed (not limited to cycle boundaries unlike `jumpIn'`).


Given:
~~~haskell
d1 $ sound "bd sd*2"
~~~
and executing the following after the `bd` but before `sd*2`:
~~~haskell
jumpIn 1 1 $ sound "rs cp*2"
~~~
causes the latter pattern to begin playing on channel 1 during the next cycle (since 1 in specified) beginning with `cp*2`.