bang through OSC

Oct 12, 2009 at 1:51pm

bang through OSC

Hey all,

I need to send a bang through the OSC protocol. Is there a way to tell max not to evaluate a “bang” message?

let me explain what my small problem is,

sending “/x/y bang” evidently works fine, but what i need is “/x/y $1″ and feed it a bang message.

tried converting to string, symbol, etc.. but max always seems to evaluate it as a standard bang.

i have no way to change the receiving patch to convert another kind of input to a bang (which would be more convenient, i agree).

thanks for any help and/or suggestions!

jm

#45832
Oct 14, 2009 at 8:55am

posts like these used to get a reply very quickly on the old max list, i guess no one comes to the forum..

well i’ve found my answer somewhere else and i’m posting it in case someone wants to know: there is apparently no way to tell max not to evaluate a bang message..

this is done very easily in PD sending a “foo bang” message, so i guess i’m just gonna translate my patch to PD.

jm

#165236
Oct 14, 2009 at 7:36pm

this is actually pretty clever but it isn’t what i need. for many reasons i will not list here, i need $1 to be changed to “bang” inside a preformatted message box (/x/y $1).

thanks for replying though, i feel less alone! ;)

jm

#165239
Oct 14, 2009 at 8:37pm

yeah, this is good in most situations but i really need that $1 in that preformatted message! ;)

i could probably use a workaround in the line of what you proposed, but i’m the stubborn kind and like my patches with less boxes.

since PD can do it so effortlessly, why can’t max? i don’t get it.. maybe i’m missing a bigger issue linked to the inward working of PD vs Max?

#165241
Oct 15, 2009 at 4:55pm

Use OSC-unroute. It’s a javascript, downloadable from http://cnmat.berkeley.edu/downloads

It does what you want.

mz

#165242
Oct 15, 2009 at 5:16pm

brilliant! works like a charm.

thanks
jm

#165243

You must be logged in to reply to this topic.