altering OSCroute arguments in patchers/bpatchers

Feb 8, 2012 at 2:56pm

altering OSCroute arguments in patchers/bpatchers

I was wondering if there is a different way to alter arguments in patchers/bpatchers?

I know you can use the #1 #2 but in this case I use a OSCroute which uses slashes:

[OSC-route /Multiball/y6 /Multiball/x6 /Multiball/z6]

Normally you would do it like this: #1_Multiball but OSC data doesn’t let you do this.

I would like to alter the 6 into a different number so I don’t have to type tons of numbers.

Any tips would be greatly appreciated!!!

Cheers, Danny

#61668
Feb 8, 2012 at 3:19pm

Hi Danny,

you can use the sprintf object to construct symbols.
for example like this:

– Pasted Max Patch, click to expand. –
#222631
Feb 8, 2012 at 3:37pm

Hi Mudang,

Thanx a lot. That will do the job nicely. I didn’t know you could change the arguments of the OSC-route object.

Saves me a lot of typing!!!!

Cheers, Danny

#222632
Feb 8, 2012 at 7:57pm

The “changing arguments” subpatch in the OSC-route help patch holds some good tricks. Also the alternate slash format. (eg [OSC-route slash #1_Multiball] )

#222633

You must be logged in to reply to this topic.