snding audio via UDP

serenwen's icon

Hello guys,
I'm trying to send audio signal from a max patch to another max patch (different laptop). I'm trying with jit.net.send but I'm probably mission something and it's not working. Any suggestions?

serenwen's icon

here's the patch

4988.udp.rtf
rtf
LSka's icon

jit.net.send only works with matrices. You need to convert your MSP signal to a matrix, as in the "audio-over-network" patch in the jitter-examples/audio folder.

Or you can try the netsend~ external: http://www.remu.fr/sound-delta/netsend~/?page_id=7

$Adam's icon

Another two possibilities would be to use JackTrip ( https://ccrma.stanford.edu/groups/soundwire/software/jacktrip/ ), or the AUNetSend/AUNetReceive pair of audio units (I think they are shipped with XCode, but not sure about this).

Hope that helps,
Ádám

serenwen's icon

I think netsend is not working with max 6 and unfortunately Ive tried the AUNetSend but it's crashing in about 2 seconds... I'll have a look to the jitter examples and jack trip, thanks guys

Roman Thilenius's icon

whats wrong with TCP?

dhjdhjdhj's icon

UDP is usually better for real-time stuff, better to drop the occasional packet than introduce delays.

oli larkin's icon

I've had good results using netjack2, which is installed with jack. Also reastream vst on windows

serenwen's icon

so I'm using jit.net.send. Here's another issue: if i send audio within the same patch everything is working ok, but then I tried with two different laptops (I created a network, connected both laptop to the same network, checked ip and port) but couldn't received anything....

dtr's icon

The sender and receiver objects report their connection state. Do they link?

serenwen's icon

they don't connect. Actually I have this error message on max window jit.net.send "data is being input faster than i can be sent" here are the parches..

4992.receive.rtf
rtf
Medd's icon
serenwen's icon

the sender patch connects but the receiving one no...one more step forward!

LSka's icon
Max Patch
Copy patch and select New From Clipboard in Max.

You forgot to write "ip" after the first @ in the receiving patch.

serenwen's icon

yes I've already changed it!