I have been using PD for a while now to control my digital mixer remotely via midi. Currently I have a patch that simply mirrors my mixer setting with sliders and toggles etc. It simply reads and displays the incoming midi data. I want to create a two way street where I can control the mixer from the computer by sending midi data. The problem I'm having is that if I use ctlin for the input of a slider and ctlout for the same slider it creates an infinte loop and the fader starts jumping everywhere. I solved the problem by creating two sliders, one for in and one for out. Is there anyway to make this work by using only one slider?
-
Midi In and Out
-
unfortunately, due to the nature of PD's GUI, it's not possible to achieve this with one slider, but there might be a hack way to do it....
create two sliders, hook one from the ctlin, and hook the other into ctlout, go into the properties of the ctlout slider and set to 'jump to click'. place the ctlin slider on top of the ctlout slider. (the slider that is created last will be the one that sits on top). Now, you should see the slider move on incoming data, and clicking on the (hidden) slider should send out data. there is no loop here because we haven't physically connected ctlin to ctlout - i hope this works. i just thought it up.
Dual 1.8 IBM G5: Mac OSX 10.4.11 -- Asus eeePC 701: Pure:Dyne / eeeXubuntu GNU/Linux -- myspace.com/thearifd
-
You can't see the slider move on the patch when you move it with the mouse but it does work as advertised. Thanks much!
-
Or you could just use the [set( message for you sliders. That will update the gui without sending out its value, so the loop will stop:
[ctlin]
|
[set $1(
|
[vslider] -
oh great! nice one maelstrom.
Dual 1.8 IBM G5: Mac OSX 10.4.11 -- Asus eeePC 701: Pure:Dyne / eeeXubuntu GNU/Linux -- myspace.com/thearifd
-
Works Great!