snding audio via UDP

Feb 3, 2013 at 8:05pm

snding audio via UDP

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?

#66337
Feb 3, 2013 at 8:05pm

here’s the patch

Attachments:
  1. udp.rtf
#238771
Feb 3, 2013 at 10:50pm

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

#238772
Feb 4, 2013 at 12:39am

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

#238773
Feb 4, 2013 at 1:41am

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

#238774
Feb 4, 2013 at 2:54am

whats wrong with TCP?

#238775
Feb 4, 2013 at 3:45am

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

#238776
Feb 4, 2013 at 8:22am

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

#238777
Feb 4, 2013 at 2:46pm

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….

#238778
Feb 4, 2013 at 3:26pm

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

#238779
Feb 4, 2013 at 4:51pm

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..

Attachments:
  1. receive.rtf
#238780
Feb 4, 2013 at 5:49pm

Perhaps take a peek at Zach Poff’s patch:

http://www.zachpoff.com/software/network-audio-transmitter/

#238781
Feb 5, 2013 at 5:48pm

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

#238782
Feb 5, 2013 at 6:15pm

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

– Pasted Max Patch, click to expand. –
#238783
Feb 6, 2013 at 9:05pm

yes I’ve already changed it!

#238784

You must be logged in to reply to this topic.