OSCroute query - I think? one message, two osc values (X/Y), split for midi??
Hi all,
First post here so hello :-) pretty new to max, just starting out routing OSC data and MIDI around audio sequencers.
So, my problem is:
I have an android OSC interface app (control by Charlie Roberts - http://charlie-roberts.com/Control ), which spits out osc commands from sliders, panpots etc etc.
It has an XY pad (kaoss pad stylee) which i am trying to use for surround panning in my DAW.
the XY pad spits out an osc message in two parts - "arbitrylabel/1 xxxxxxxx yyyyyyyy" - where xxxxxxxxx is the osc value for one axis, and yyyyyyyyy the osc data for the other axis.
Can anyone suggest how i get max to split that up into two midi messages?
currently i "oscroute /arbitrylabel/1", and i can then "scale" and "ctrlout", but it only converts the first (xxxxxxxx) set of values into MIDI. I'd like the X to send one MIDI cc, and the Y a second.
hope i have explained myself well!
here is a link to a screen of the patch: http://www.ioutheatre.org/screens/maxpat1.jpg
Could really appreciate some direction on this one!
Dan
scale works with single messages, not lists, so when you put a list (x y), it only outputs the first element of the list.
You first need to split the x and y into individual messages, then scale each of them and send them to ctlout.
Use the [unpack 0 0] object.