I tried to implement this to send OSC to a remote RPi but I keep getting errors. I added this to my BootTidal.hs
:{
pivizTarget :: Target
pivizTarget = Target {oName = "piviz",
oAddress = "192.168.1.142",
oPort = 8007,
oBusPort = Nothing,
oLatency = 0.02,
oWindow = Nothing,
oSchedule = Live,
oHandshake = False
}
pivizShape :: OSC
pivizShape = OSC "/piviz" $ ArgList [("vizscene", required),
("vizcommand", sDefault "next"),
("vizsize", fDefault 32),
("vizspeed", fDefault 150)
]
:}
:{
let vizscene = pS "vizscene"
vizcommand = pS "vizcommand"
vizsize = pF "vizsize"
vizspeed = pF "vizspeed"
:}
:{
tidal <- startStream defaultConfig [
(espeakTarget, [espeakShape]),
(pivizTarget, [pivizShape]),
(superdirtTarget {oLatency = 0.05, oAddress = "127.0.0.1", oPort = 57120}, [superdirtShape])
]
:}
-- tidal <- startTidal (superdirtTarget {oLatency = 0.05, 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, cCtrlAddr = "0.0.0.0"})
This will boot the server but still not let me connect to the RPi I want to send OSC data to.
it outputs:
Listening for external controls on 127.0.0.1:6010
Connected to SuperDirt.
[TidalCycles version 1.9.2]
Installed in /home/kaos/.cabal/share/x86_64-linux-ghc-9.0.2/tidal-1.9.2
Listening for external controls on 0.0.0.0:6010
That port isn't available, perhaps another Tidal instance is already listening on that port?
Can't handshake with SuperCollider without control port.
I tried fitting the cCtrlAddr
in the tidal <- startStream defaultConfig
part but nomatter what I tried I would not boot... (syntax problems)
The espeak part works by the way, I started there and tried to adapt it to remote OSC, but no go...,