Here how the output looks like:
PHP Code:
string: /joyosc/devices/gc0/button
param 1: 97.000000
(param 2: 0.000000)
string: /joyosc/devices/gc0/button
param 1: 120.000000
(param 2: 1.000000)
string: /joyosc/devices/gc0/button
param 1: 120.000000
(param 2: 0.000000)
string: /joyosc/devices/gc0/axis
param 1: 108.000000
(param 2: -3504.000000)
string: /joyosc/devices/gc0/axis
param 1: 108.000000
(param 2: -3394.000000)
And below code
PHP Code:
@oscmsg
oscparm(0, 's', #string);
printf("string: %s\nparam 1: %s\nparam 2: %f\n\n", oscstr, #string, oscparm(1));
gives
PHP Code:
string: /joyosc/devices/gc0/button
param 1: b
param 2: 0.000000
string: /joyosc/devices/gc0/axis
param 1: lefty
param 2: -3394.000000
string: /joyosc/devices/gc0/button
param 1: y
param 2: 1.000000
string: /joyosc/devices/gc0/button
param 1: y
param 2: 0.000000
string: /joyosc/devices/gc0/button
param 1: x
param 2: 1.000000
string: /joyosc/devices/gc0/button
param 1: x
param 2: 0.000000
Now how can I construct an osc message for reaper which can use param 1 and param 2 for its fx parameter mappings? Param 1 I can have in string form (my example above) or as float value (example of wwwmaze), is it better just keeping those values as float always? String would help for better understanding the code, e.g. which button on X360 controller is doing what.