Skip to content

Commit

Permalink
simplify
Browse files Browse the repository at this point in the history
  • Loading branch information
JeffreyBenjaminBrown committed Nov 19, 2023
1 parent 332db3d commit 928128d
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 8 deletions.
4 changes: 2 additions & 2 deletions BootTidal.hs
Original file line number Diff line number Diff line change
Expand Up @@ -41,8 +41,8 @@ let only = (hush >>)
jumpIn' i t = transition tidal True (Sound.Tidal.Transition.jumpIn' t) i
jumpMod i t = transition tidal True (Sound.Tidal.Transition.jumpMod t) i
jumpMod' i t p = transition tidal True (Sound.Tidal.Transition.jumpMod' t p) i
sched = Sound.Tidal.Transition.sched tidal getnow
schod = Sound.Tidal.Transition.schod tidal getnow
sched = Sound.Tidal.Transition.sched tidal
schod = Sound.Tidal.Transition.schod tidal
mortal i lifespan release = transition tidal True (Sound.Tidal.Transition.mortal lifespan release) i
interpolate i = transition tidal True (Sound.Tidal.Transition.interpolate) i
interpolateIn i t = transition tidal True (Sound.Tidal.Transition.interpolateIn t) i
Expand Down
10 changes: 4 additions & 6 deletions src/Sound/Tidal/Transition.hs
Original file line number Diff line number Diff line change
Expand Up @@ -63,12 +63,11 @@ do setcps 1
@
-}
sched :: Stream -- ^ PITFALL: Not provided by user.
-> IO Double -- ^ PITFALL: Not provided by user.
-> ID -- ^ voice to affect
-> [(Time, ControlPattern)] -- ^ schedule
-> IO ()
sched tidal getnow i s = do
now <- getnow
sched tidal i s = do
now <- streamGetnow tidal
let t = fst $ head s
p = absScheduleToPat
$ sortOn fst -- earlier patterns closer to head
Expand All @@ -90,13 +89,12 @@ do setcps 1
@
-}
schod :: Stream -- ^ PITFALL: Not provided by user.
-> IO Double -- ^ PITFALL: Not provided by user.
-> ID -- ^ voice to affect
-> Time -- ^ divisor
-> [(Time, ControlPattern)] -- ^ schedule
-> IO ()
schod tidal getnow i divisor sRel = do
now <- getnow
schod tidal i divisor sRel = do
now <- streamGetnow tidal
let sAbs :: [ (Time, ControlPattern) ] =
sortOn fst -- earlier patterns closer to head
( delayModSchedule_toAbsoluteSchedule
Expand Down

0 comments on commit 928128d

Please sign in to comment.