Navigation Menu

Skip to content

Instantly share code, notes, and snippets.

@tado
Created July 17, 2020 22:59
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save tado/623f445352158bbb830b6f7e411a41c3 to your computer and use it in GitHub Desktop.
Save tado/623f445352158bbb830b6f7e411a41c3 to your computer and use it in GitHub Desktop.
// foward OSC from TidalCycles
var addr = NetAddr.new("127.0.0.1", 3333);
OSCFunc({ |msg, time, tidalAddr|
var latency = time - Main.elapsedTime;
msg = msg ++ ["time", time, "latency", latency];
// msg.postln;
addr.sendBundle(latency, msg)
}, '/play2').fix;
Server.local.options.sampleRate = 48000;
Server.local.volume = -6.0;
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment