[PD] how to prevent midi endless loops?

wolfgang schwarzenbrunner schwarz at gen-control.com
Sun Feb 27 14:28:12 CET 2005


hi

maybe a quiet simple question.... i need to use a midiinterface (doepfer 
pocket dial) to control slidervalues in pd (windows -- xp 0.37). the 
problem is that i also want to change the values using the sliders in the 
patch and having this data being sent back to the controller so that there 
are no jumps in value when switching from screen to hardware controller and 
back...

finally i built up a very simple t b f b and spigot combination to prevent 
stackoverflows within pd. this works pretty fine as long as i don`t use 
mididata to control the sliders... attached is a little patch that should 
explain...

any help needed...
-------------- next part --------------
#N canvas 0 0 458 308 10;
#X obj 98 63 hsl 128 15 0 127 0 0 empty empty empty -2 -6 0 8 -262144
-1 -1 10500 1;
#X obj 98 212 hsl 128 15 0 127 0 0 empty empty empty -2 -6 0 8 -262144
-1 -1 10500 1;
#X obj 105 148 spigot;
#X obj 167 149 tgl 15 0 empty empty empty 0 -6 0 8 -262144 -1 -1 0
1;
#X obj 95 26 ctlin 7 1;
#X obj 95 245 ctlout 7 1;
#X text 236 62 <<-- this is working fine;
#X text 236 212 <<-- this is working fine;
#X text 160 26 <<-- this fucks up midi to endless looping;
#X text 168 246 <<-- this fucks up midi to endless looping;
#X obj 104 123 t b f b;
#X connect 0 0 10 0;
#X connect 1 0 0 0;
#X connect 1 0 5 0;
#X connect 2 0 1 0;
#X connect 3 0 2 1;
#X connect 4 0 0 0;
#X connect 10 0 3 0;
#X connect 10 1 2 0;
#X connect 10 2 3 0;


More information about the Pd-list mailing list