View Single Post
Old 12-06-2018, 11:13 AM   #7
TonE
Human being with feelings
 
Join Date: Feb 2009
Location: Reaper HAS send control via midi !!!
Posts: 4,032
Default

Here how the output looks like:
PHP Code:
string: /joyosc/devices/gc0/button
param 1
97.000000
(param 20.000000)

string: /joyosc/devices/gc0/button
param 1
120.000000
(param 21.000000)

string: /joyosc/devices/gc0/button
param 1
120.000000
(param 20.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.

Last edited by TonE; 12-06-2018 at 11:20 AM.
TonE is offline   Reply With Quote