diff --git a/src/Sound/Tidal/Boot.hs b/src/Sound/Tidal/Boot.hs index 2e6d2d17..7461f2b7 100644 --- a/src/Sound/Tidal/Boot.hs +++ b/src/Sound/Tidal/Boot.hs @@ -29,6 +29,8 @@ module Sound.Tidal.Boot , setCycle , setcps , getcps + , setbpm + , getbpm , getnow , d1 , d2 @@ -216,10 +218,18 @@ setCycle = streamSetCycle tidal setcps :: Tidally => Pattern Double -> IO () setcps = once . cps --- | See 'Sound.Tidal.Stream.streamGetcps'. +-- | See 'Sound.Tidal.Stream.streamGetCPS'. getcps :: Tidally => IO Time getcps = streamGetCPS tidal +-- | See 'Sound.Tidal.Stream.streamGetBPM'. +setbpm :: Tidally => Time -> IO () +setbpm = streamSetBPM tidal + +-- | See 'Sound.Tidal.Stream.streamGetBPM'. +getbpm :: Tidally => IO Time +getbpm = streamGetBPM tidal + -- | See 'Sound.Tidal.Stream.streamGetnow'. getnow :: Tidally => IO Time getnow = streamGetNow tidal diff --git a/src/Sound/Tidal/Stream/UI.hs b/src/Sound/Tidal/Stream/UI.hs index 41098889..bf76f95d 100644 --- a/src/Sound/Tidal/Stream/UI.hs +++ b/src/Sound/Tidal/Stream/UI.hs @@ -28,12 +28,12 @@ streamResetCycles s = streamSetCycle s 0 streamSetCycle :: Stream -> Time -> IO () streamSetCycle s = Clock.setClock (sClockRef s) -streamSetBPM :: Stream -> Time -> IO () -streamSetBPM s = Clock.setBPM (sClockRef s) - streamSetCPS :: Stream -> Time -> IO () streamSetCPS s = Clock.setCPS (cClockConfig $ sConfig s) (sClockRef s) +streamSetBPM :: Stream -> Time -> IO () +streamSetBPM s = Clock.setBPM (sClockRef s) + streamGetCPS :: Stream -> IO Time streamGetCPS s = Clock.getCPS (cClockConfig $ sConfig s)(sClockRef s)