Skip to content

Commit

Permalink
print status on start
Browse files Browse the repository at this point in the history
  • Loading branch information
yaxu committed Feb 11, 2021
1 parent 230efb8 commit db9f25f
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/Sound/Tidal/Stream.hs
Original file line number Diff line number Diff line change
Expand Up @@ -45,6 +45,8 @@ import System.Random (getStdRandom, randomR)
import Sound.Tidal.Show ()
import Data.Word (Word8)

import Sound.Tidal.Version

data Stream = Stream {sConfig :: Config,
sBusses :: MVar [Int],
sInput :: MVar StateMap,
Expand Down Expand Up @@ -192,6 +194,7 @@ startStream config oscmap
globalFMV <- newMVar id
tempoMV <- newEmptyMVar

tidal_status_string >>= verbose config
verbose config $ "Listening for external controls on " ++ cCtrlAddr config ++ ":" ++ show (cCtrlPort config)
listen <- openListener config

Expand Down
1 change: 1 addition & 0 deletions src/Sound/Tidal/Version.hs
Original file line number Diff line number Diff line change
Expand Up @@ -29,3 +29,4 @@ tidal_status = tidal_status_string >>= putStrLn
tidal_status_string :: IO String
tidal_status_string = do datadir <- getDataDir
return $ "[TidalCycles version " ++ tidal_version ++ "]\nInstalled in " ++ datadir

0 comments on commit db9f25f

Please sign in to comment.