@@ -9,7 +9,7 @@ import qualified Data.Map as Map
99import qualified Sound.Tidal.Clock as Clock
1010import Sound.Tidal.ID
1111import Sound.Tidal.Pattern
12- import Sound.Tidal.Stream. Config
12+ import Sound.Tidal.Config
1313import Sound.Tidal.Stream.Process
1414import Sound.Tidal.Stream.Types
1515import System.IO (hPutStrLn , stderr )
@@ -25,19 +25,19 @@ streamSetCycle :: Stream -> Time -> IO ()
2525streamSetCycle s = Clock. setClock (sClockRef s)
2626
2727streamSetCPS :: Stream -> Time -> IO ()
28- streamSetCPS s = Clock. setCPS (cClockConfig $ sConfig s) (sClockRef s)
28+ streamSetCPS s = Clock. setCPS (toClockConfig $ sConfig s) (sClockRef s)
2929
3030streamSetBPM :: Stream -> Time -> IO ()
3131streamSetBPM s = Clock. setBPM (sClockRef s)
3232
3333streamGetCPS :: Stream -> IO Time
34- streamGetCPS s = Clock. getCPS (cClockConfig $ sConfig s) (sClockRef s)
34+ streamGetCPS s = Clock. getCPS (toClockConfig $ sConfig s) (sClockRef s)
3535
3636streamGetBPM :: Stream -> IO Time
3737streamGetBPM s = Clock. getBPM (sClockRef s)
3838
3939streamGetNow :: Stream -> IO Time
40- streamGetNow s = Clock. getCycleTime (cClockConfig $ sConfig s) (sClockRef s)
40+ streamGetNow s = Clock. getCycleTime (toClockConfig $ sConfig s) (sClockRef s)
4141
4242streamEnableLink :: Stream -> IO ()
4343streamEnableLink s = Clock. enableLink (sClockRef s)
@@ -59,7 +59,7 @@ streamList s = do
5959
6060streamReplace :: Stream -> ID -> ControlPattern -> IO ()
6161streamReplace stream k ! pat = do
62- t <- Clock. getCycleTime (cClockConfig $ sConfig stream) (sClockRef stream)
62+ t <- Clock. getCycleTime (toClockConfig $ sConfig stream) (sClockRef stream)
6363 E. handle
6464 ( \ (e :: E. SomeException ) -> do
6565 hPutStrLn stderr $ " Failed to Stream.streamReplace: " ++ show e
@@ -75,7 +75,7 @@ streamOnce st p = do
7575 streamFirst st $ rotL (toRational (i :: Int )) p
7676
7777streamFirst :: Stream -> ControlPattern -> IO ()
78- streamFirst stream pat = onSingleTick (cClockConfig $ sConfig stream) (sClockRef stream) (sStateMV stream) (sPMapMV stream) (sGlobalFMV stream) (sCxs stream) pat
78+ streamFirst stream pat = onSingleTick (toClockConfig $ sConfig stream) (sClockRef stream) (sStateMV stream) (sPMapMV stream) (sGlobalFMV stream) (sCxs stream) pat
7979
8080streamMute :: Stream -> ID -> IO ()
8181streamMute s k = withPatIds s [k] (\ x -> x {psMute = True })
0 commit comments