Closed geoffroymontel closed 5 years ago
The description file does currently not have declared the elements as \inOut
but rather \in
. I am not sure, if bidirectional communication does work with OSC yet but you can try to change the slider descriptions in
MKtlDesc("touchosc-simple1").openFile
to be
// [...]
(
key: \sl,
shared: (elementType: \slider, spec: \unipolar, ioType: \inout),
// [..]
Hope this will help :)
since this is not a bug, I'll close this.
feel free to comment though, I'll continue reading :)
Thanks @LFSaw ! Sorry for the delay, but I've just tried to change ioType so that
(
key: \sl,
shared: (elementType: \slider, spec: \unipolar, ioType: \inout),
elements: (1..4).collect { |num|
(oscPath: "/1/fader%".format(num).asSymbol)
}
),
but it makes no difference.
It seems bi-directionnal communication was implemented in OSC but a quick debug seems to show that the OSC message is not sent to the right IP/port. I will try to debug that later.
Great find! I'll link @adcxyz to this so that he is aware of it.
Hi Modality Crew and Geoffroy. I had something very similar working some time ago. I don't have a device with Touch OSC to test it again a.t.m., but here is the corresponding part of code in the description I used. Maybe there's a clue of what is going on:
(
key: \sl,
shared: (ioType: \inout),
elements: (
6.collect {|i|
(
key: (i+1).asSymbol,
oscPath: "/fxr1/fader%".format(i+1).asSymbol,
elementType: 'slider', spec: \unipolar, style: (
width: 5, height: 0.85, row: (i * 0.85), column: 4 )
)
}
)
)
The main difference seems to be: shared ioType parameter only and the others are set individually.
Thanks ! I've just submitted a pull request that seems to fix it on my side.
I'm trying to use Touch OSC through Modality Toolkit. I'm running SC 3.9.3 and have installed Modality through
Quarks.gui
On my iPad running Touch OSC 1.9.10, I use the Simple Layout.The following code works :
I'm getting values printed on the console when I move a slider on the iPad, like
tOsc sl_1: 0.316
Great.
But how do I set a value on SC side and have the slider move on the iPad ?
I tried
But the slider does not move on the iPad. Same if I move a slider on the GUI displayed by t.gui
If I type
and move a slider on the iPad, I get the following on the console so IP and port seems to be OK.
Thanks in advance for your help.