Help with matching OSC input
Hi there
I need some help as I'm stuck with trying to match an incoming OSC message to trigger an event. It's probably quite simple, but I'm a beginner.
The incoming OSC message sends the zone number, user number and 0 or 1 if the zone is activated/deactivated. e.g. zone_1 1 0
I need to change the zone number for each instance of the patcher.
I don't need the user info, but if it is needed in the sequence, then anything between 1 and 20 will create a match.
I need to toggle on /off using the last element in the message (0/1) if the zone number is matched.
I've put the rough outline of what I need in a patch, but I'm not sure I should be using zl slice and match, or how to get a combination of variables and non-variables to match.
I would appreciate some guidance very much!
Sorry too short of time for a full answer, but check out objects [sel], [route] and the help file for match as you haven't put an argument in it so I'm not sure you are getting it exactly. Also, you may want to check out the CNMAT external [OSCroute]. As regards changing the zone number per instance of patcher you may want to look at tutorial 15 about abstractions and using arguments within them and using #1 and #0 in objects.
Thanks for taking the time to reply Luke. I will look at those resources.
The odd thing is I'm following and example that successfully uses the match object without an argument, so I'm totally confused as to how this is working! (see below). If you have a moment perhaps you could explain?
In that example the [prepend set] is telling [match] what to match when it is selected from the menus. If you look at the help file and reference for match it will describe how the 'set' message works.
Ah, I see. Dumb of me to miss that. Thanks again for your help.
In case this is helpful to another beginner, here is a solution I was given (not using the match object at all)