![]() |
#1 |
Human being with feelings
Join Date: Jun 2022
Posts: 11
|
![]()
Hi.
I'm testing OSC output from TouchOSC and hoping to convert OSC to Midi to send to my DAW. TouchOSC can send Midi directly but I'm just testing using it for now. I'm able to capture an OSC message and multiple parameters. In all my tests, OSCii-bot will only receive OSC parameters that are strings. I can send out an Integer or Float of course but OSCii-bot will not read it. I created a Fader for testing in TouchOSC called "/Note" with 2 string parameters. The 1st parameter outputs "60" to represent the Middle C note. The 2nd parameter outputs the fader level to represent Velocity from 0-127. I'm able to log the OSC message using the following code: Code:
oscmatch("/Note",$'s') ? ( oscparm(idx,type); type=='s' ? ( #note = null; #volume = null; //must use #variables oscparm(0,'s',#note); oscparm(1,'s',#volume); printf(oscstr); printf (" Note: "); printf (#note); printf (" Volume: "); printf(#volume); ); ); Thank you. Last edited by procedure; 07-07-2022 at 09:45 AM. |
![]() |
![]() |
Thread Tools | |
Display Modes | |
|
|