Safe Haskell | None |
---|---|
Language | Haskell2010 |
Sound.Tidal.Transition
transition ::Stream ->Bool -> (Time -> [ControlPattern] ->ControlPattern) ->ID ->ControlPattern ->IO ()Source#
wash :: (Pattern a ->Pattern a) -> (Pattern a ->Pattern a) ->Time ->Time ->Time ->Time -> [Pattern a] ->Pattern aSource#
Washes away the current pattern after a certain delay by applying a function to it over time, then switching over to the next pattern to which another function is applied.
xfadeIn ::Time ->Time -> [ControlPattern] ->ControlPatternSource#
histpan ::Int ->Time -> [ControlPattern] ->ControlPatternSource#
Pans the last n versions of the pattern across the field
wait ::Time ->Time -> [ControlPattern] ->ControlPatternSource#
Just stop for a bit before playing new pattern
waitT :: (Time -> [ControlPattern] ->ControlPattern) ->Time ->Time -> [ControlPattern] ->ControlPatternSource#
jump ::Time -> [ControlPattern] ->ControlPatternSource#
Jumps directly into the given pattern, this is essentially the _no transition_-transition.
Variants ofjump
provide more useful capabilities, seejumpIn
andjumpMod
jumpIn ::Int ->Time -> [ControlPattern] ->ControlPatternSource#
Sharpjump
transition after the specified number of cycles have passed.
t1 (jumpIn 2) $ sound "kick(3,8)"
jumpIn' ::Int ->Time -> [ControlPattern] ->ControlPatternSource#
jumpMod ::Int ->Time -> [ControlPattern] ->ControlPatternSource#
Sharpjump
transition at next cycle boundary where cycle mod n == 0
jumpMod' ::Int ->Int ->Time -> [ControlPattern] ->ControlPatternSource#
Sharpjump
transition at next cycle boundary where cycle mod n == p
mortal ::Time ->Time ->Time -> [ControlPattern] ->ControlPatternSource#
Degrade the new pattern over time until it ends in silence
interpolateIn ::Time ->Time -> [ControlPattern] ->ControlPatternSource#
clutch ::Time -> [Pattern a] ->Pattern aSource#
Degrades the current pattern while undegrading the next.
This is likexfade
but not by gain of samples but by randomly removing events from the current pattern and slowly adding back in missing events from the next one.
d1 $ sound "bd(3,8)"t1 clutch $ sound "[hh*4, odx(3,8)]"
clutch
takes two cycles for the transition, essentially this isclutchIn 2
.
clutchIn ::Time ->Time -> [Pattern a] ->Pattern aSource#
Also degrades the current pattern and undegrades the next.To change the number of cycles the transition takes, you can useclutchIn
like so:
d1 $ sound "bd(5,8)"t1 (clutchIn 8) $ sound "[hh*4, odx(3,8)]"
will take 8 cycles for the transition.
anticipateIn ::Time ->Time -> [ControlPattern] ->ControlPatternSource#
same asanticipate
though it allows you to specify the number of cycles until dropping to the new pattern, e.g.:
d1 $ sound "jvbass(3,8)"t1 (anticipateIn 4) $ sound "jvbass(5,8)"
anticipate ::Time -> [ControlPattern] ->ControlPatternSource#
anticipate
is an increasing comb filter.
Build up some tension, culminating in a _drop_ to the new pattern after 8 cycles.
Produced byHaddock version 2.30.0