From b078328093f58d461b5b0a098080bec576c9281a Mon Sep 17 00:00:00 2001 From: Derek Kwan Date: Wed, 15 May 2019 13:44:46 -0700 Subject: [PATCH] update jumpIn and jumpIn` --- _functions/transitions/jumpIn'.md | 18 ++++++++++++++++-- _functions/transitions/jumpIn.md | 21 +++++++++++++++++++-- 2 files changed, 35 insertions(+), 4 deletions(-) diff --git a/_functions/transitions/jumpIn'.md b/_functions/transitions/jumpIn'.md index 8b94122..1a29ce5 100644 --- a/_functions/transitions/jumpIn'.md +++ b/_functions/transitions/jumpIn'.md @@ -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`). + + diff --git a/_functions/transitions/jumpIn.md b/_functions/transitions/jumpIn.md index 22f5552..d223d17 100644 --- a/_functions/transitions/jumpIn.md +++ b/_functions/transitions/jumpIn.md @@ -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`. + + + +