Problem with sending OSC messages to multiple target

Hmm it seems that this https://tidalcycles.org/Custom_OSC is not working anymore. I mentioned that something like Just $ VS "a" in the ArgList should be sDefault "a" now.

And I tried to send my Tidal OSC messages to Superdirt and to my local hydra instance. And I hoped that I could use something like this:

let hydraTarget = Target {
    oName = "hydra", 
    oAddress = "localhost", 
    oPort = 3336, 
    oLatency = 0.1, 
    oSchedule = Live, 
    oWindow = Nothing
}

tidal <- startStream (defaultConfig {cFrameTimespan = 1/20}) [
                     (superdirtTarget {oLatency = 0.1}, [superdirtShape]),
                     (hydraTarget, [superdirtShape])]

Unfortunately I get this error:
*** Exception: Network.Socket.connect: : invalid argument (Invalid argument)

I use Tidal version 1.6.2.

Note:
This works totally fine

tidal <- startTidal (superdirtTarget {oLatency = 0.1}) (defaultConfig {cFrameTimespan = 1/20})

Probably localhost is an ipv6 address on your system, and tidal doesn't support that yet. Try with "127.0.0.1" instead.

2 Likes

Interesting problem. It seems that my system provides both on localhost:

> dscacheutil -q host -a name localhost
name: localhost
ipv6_address: ::1

name: localhost
ip_address: 127.0.0.1

But you are right: 127.0.0.1 instead of localhost solves the problem, thanks!