Dear OSC developers,
I'm very new to this wonderful software, and as a complete newby in every subject concerning Open Stage Control (OSC protocol, scripting, formatting) I'm struggling with producing the correct data types to be routed by my Pd patch accordingly.
I currently have a slider and a dropdown menu, and my goal is that at any movement of the slider, the latter could first output the current value of the dropdown menu, and then its own id and value.
In this way, in PureData I would have a [route dropdown] object going into a [route 1 2 3] object, tracking the value of the slider according to the value from the dropdown menu - in this example, the dropdown menu would have four values, 0, 1, 2, 3.
I've tried may variations of the following script in the Address field of the slider
JS{
if (@{dropdown} == @{dropdown.value} && @{dropdown.value} > 0) {
return '/dropdown/'+@{dropdown.value}+'/slider'
}
but always unsuccessfully, as I would like the @{dropdown.value}
being returned by the if
statement to be interpreted by PureData as a float. However, actually it doesn't get processed as any proper atom type (neither float, symbol, nor pointer).
Do you have any suggestion about how to do this?