private void sendToOsc(ref OSCMsg msg) { string addr = new string(msg.address).Replace("\0", ""); string realAddress = $"/scene{msg.scene}{addr}"; OscMessage oscmsg = new OscMessage(realAddress, msg.value); #if DEBUG System.Diagnostics.Debug.WriteLine($"from cli {oscmsg.Address}"); foreach (object par in oscmsg.Arguments) { System.Diagnostics.Debug.WriteLine($" arg: {par.ToString()}"); } #endif oscSrv.Write(oscmsg); }