Hi list: I'm working on a big diffusion patch, so I made some volume and midi abstractions (I'll need a lot of midi controlled volumes). raf_volume.pd calls raf_BCF2000.pd (I have this midi controller, of course it can be used with every midi CC signals...). Arguments as following: start value, end value (scale), CC, channel. I'm using Pd-ext 0.42.5 on Ubuntu Studio.
My questions:
-I noticed a (kind of) bug: when I instantiate a [ctlin] object with one $ as argument (CC number), no problem, but when I add a second (channel: [ctlin $1 $2]), second outlet doesn't disappear, and if abstraction window is opened, pd becomes unstable. It crashes sometimes when I save the patch calling the abstraction, or saving abstraction itself (ctrl+s). No problem with numbers as arguments.
-When I instantiate raf_volume.pd, I enter arguments in the object box (CC, channel), but I didn't find a way to change them after. I could use externals [number2, but the patch will become really heavy, or display name and arguments in "graph on parent", but the object becomes to big... In the same idea, I wanted to keep the sliders position (init), but it doesn't seems to work in an abstraction...
-If you have any suggestions about these abstractions, their performance etc, you're welcome...
Thank's a lot best r
#N canvas 654 168 489 581 10; #X obj 166 20 loadbang; #X obj 166 92 -; #X obj 166 116 / 127; #X obj 28 164 *; #X obj 166 44 t b b; #X obj 166 67 f $2; #X obj 206 67 f $1; #X obj 28 187 + $1; #X obj 16 209 outlet; #X obj 120 283 outlet; #X obj 120 208 loadbang; #X obj 28 88 ctlin $3 $4; #X obj 120 258 $3; #X obj 147 308 $4; #X obj 147 333 outlet; #X obj 120 233 t b b; #X msg 80 207 bang; #X connect 0 0 4 0; #X connect 1 0 2 0; #X connect 2 0 3 1; #X connect 3 0 7 0; #X connect 4 0 5 0; #X connect 4 1 6 0; #X connect 5 0 1 0; #X connect 6 0 1 1; #X connect 7 0 8 0; #X connect 10 0 15 0; #X connect 11 0 3 0; #X connect 11 0 16 0; #X connect 12 0 9 0; #X connect 13 0 14 0; #X connect 15 0 12 0; #X connect 15 1 13 0; #X connect 16 0 15 0; #X coords 0 0 1 1 150 45 0;
#N canvas 70 231 575 539 10; #X obj 100 104 cnv 40 55 128 empty empty empty 20 12 0 14 -1 -257985 0; #X obj 101 107 vsl 13 119 0 1 0 0 empty empty empty 0 -9 0 10 -1 -257985 -257985 0 1; #X obj 41 163 *~; #X obj 42 139 inlet~; #X obj 40 187 outlet~; #X obj 101 277 pack f 10; #X obj 116 21 env~; #X obj 116 46 - 97; #X obj 117 107 vu 12 120 empty empty -1 -8 0 6 -1 -257985 1 0; #X obj 100 233 cnv 15 55 15 empty $0-preset1 CC:0 5 9 0 7 -1 -257985 0; #X obj 260 367 s $0-preset1; #X msg 260 341 label CC:$1; #X obj 101 -1 raf_BCF2000 0 1 $1 $2; #X obj 260 269 loadbang; #X obj 260 314 $1; #X obj 100 249 cnv 15 55 15 empty $0-preset2 CH:0 5 9 0 7 -1 -257985 0; #X obj 357 314 $2; #X obj 357 367 s $0-preset2; #X obj 57 -1 inlet; #X text 235 -4 entree commande midi cc; #X msg 357 341 label CH:$1; #X obj 101 300 line; #X text 3 20 Contole externe; #X connect 1 0 5 0; #X connect 2 0 4 0; #X connect 2 0 6 0; #X connect 3 0 2 0; #X connect 5 0 21 0; #X connect 6 0 7 0; #X connect 7 0 8 0; #X connect 11 0 10 0; #X connect 12 0 1 0; #X connect 13 0 14 0; #X connect 13 0 16 0; #X connect 14 0 11 0; #X connect 16 0 20 0; #X connect 18 0 1 0; #X connect 20 0 17 0; #X connect 21 0 2 1; #X coords 0 -1 1 1 55 168 2 100 100;