Skip to content

Commit

Permalink
second session state is not needed since we can just use setCPS / set…
Browse files Browse the repository at this point in the history
…BPM which will create it for us
  • Loading branch information
polymorphicengine committed Jun 16, 2024
1 parent 52c5465 commit f237849
Showing 1 changed file with 0 additions and 2 deletions.
2 changes: 0 additions & 2 deletions tidal-link/src/hs/Sound/Tidal/Clock.hs
Original file line number Diff line number Diff line change
Expand Up @@ -231,8 +231,6 @@ cyclesToBeat config cyc = cyc * (coerce $ cBeatsPerCycle config)
-- onSingleTick assumes it runs at beat 0.
-- The best way to achieve that is to use forceBeatAtTime.
-- But using forceBeatAtTime means we can not commit its session state.
-- Another session state, which we will commit,
-- is introduced to keep track of tempo changes.
getZeroedSessionState :: ClockConfig -> ClockRef -> IO Link.SessionState
getZeroedSessionState config (ClockRef _ abletonLink) = do
ss <- Link.createAndCaptureAppSessionState abletonLink
Expand Down

0 comments on commit f237849

Please sign in to comment.