two max app communicating
I need two Max *applications* to communicate with each other.
Messages are bangs, or integers, so I don’t need any audio routing through Jack or Soundflower or the like…
So far the only solution i had is to use UDP, but it seems not to work.
Here’s the code.
Any tip highly welcomed!
----------begin_max5_patcher---------- 493.3ocyUtsbaBCDF9Z3oPit1kAINIxc84nimNxfZrx.RLH4V2jIu6Qq.RbN XBIwwI2fs1Uh8e+1kU2DFf2n2KLXzEnegBBtILHvaBLDLtN.2x2W0vM9sgqz ssBkEuZvmUr25sy65P8hJg7uR0kSd+iVYMxqEvNRHQrBBMMezWWuv3dQbqTq 9s6j1AUjjlDEuBkRiHYErxzUnXXs6AZ83IU6ZkpFg0KHxCF06rSVimBB2Vs0 InYC.M1GBv98wPV6yJ8lq9Ao7vzQwa8oC9m8RdCFbbaXH7X0IffNhTuP98wn Pd1Sf.gQmEBrSKDbBcin+kxSBniEmhzYJzzRHinTe8NyWiowGI8xlI8F8LDU 6+6DCuerDJhH7FtqfgV+8DBjbODHrrE.gjuDHH9mK3O6qgc0cCiSDnhz33WD RjnrxLBqX4jhLW6BySphb3mx74HEM9cPp2GdZEFC+Rwy3yVswhZzU7F3euY7 Peq3YXfAg56fXjglpizGke1nywadfIoN4VD4DbD4T1CMyT0hTeWSx.dRluGJ cYST8mE2HUO8dZe7A6OlOF8t9pIpN0rhdPB0BiUp7W6dvlfAfGrosx5Zg5vr sUV2ocerOJhiTsVplfQMupl.BcN0T9mflbcDYvcP9FCVx8KdjVcKtM7NxvzL LA -----------end_max5_patcher-----------
i forgot to say… the two applications are within the very same computer! ;-)
works fine here…
MacBook Pro 10.7.4 – max5 and max6
Which platform are you on? Mac or PC?
really? interesting… I’m on a Mac max5 Lion btw
i use the localhost settings. And as said, trying to communicate from one application to another, made with Max with no results…
Are you using port 7400?
Did you check the Max window?
You should find an error message (such as "bind to port 7400 unsuccessful"), if it did not work as expected.
You have to be careful not to use two [udpreceive] objects with same port number.
There was a promising project by Nao Tokui for OSX years ago (2006), but unfortunately it doesn’t seem to be maintained. I never tried those objects between 2 standalones.
very naive from me… i had the same port set on the sending app as well, so as a result on the receiving app that port was already taken!
and yes, Nao project seems very interesting, I’ll tinker with it a bit asap i think
Along those lines, sort of, [send] and [receive] between patches works as expected (the same names will communicate to any active patch), BUT, between two standalones, same-named [send] and [receive] objects will NOT communicate with each other, only within their own standalone. The each have their own namespace, if I remember the terminology right.
So, don’t know if it applies in your case, but something to keep in mind if you have multiple standalones with s/r objects in them and they’re not doing what you might expect. That’s where the UDP comes in :)