Skip to content

Commit

Permalink
Adjust superdirtTarget latency
Browse files Browse the repository at this point in the history
As explained in #660, SuperDirt receives the OSC bundles from SuperCollider immediately and is handed a timestamp.
SuperDirt uses this timestamp to know when to start the sound synthesis.
This timestamp needs to be early on the Link timeline so that the synthesized sound reaches the speakers just in time.
50 milliseconds early appears appropriate, based on experimenting in a Link session with Ableton Live.
  • Loading branch information
Zalastax committed Jul 15, 2022
1 parent e3b1d61 commit c9df210
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion BootTidal.hs
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ import Sound.Tidal.Context
import System.IO (hSetEncoding, stdout, utf8)
hSetEncoding stdout utf8

tidal <- startTidal (superdirtTarget {oLatency = 0.1, oAddress = "127.0.0.1", oPort = 57120}) (defaultConfig {cVerbose = True, cFrameTimespan = 1/20})
tidal <- startTidal (superdirtTarget {oLatency = 0.05, oAddress = "127.0.0.1", oPort = 57120}) (defaultConfig {cVerbose = True, cFrameTimespan = 1/20})

:{
let only = (hush >>)
Expand Down

0 comments on commit c9df210

Please sign in to comment.