Forums > MaxMSP

Newbie Question Regarding plugmultiparam


n z
March 21, 2006 | 3:39 am

Hey everyone, I’ve been making pluggo patches for a little while now but
below is the first one that i’ve tried to use a multi-slider in and I’m
having some problems. when recalling stored presets from plugconfig the
results of multi-slider are different (and incorrect) than the exact same
presets from the preset object. I think it has something to do with the
plugmultiparam object but I just dont know what. I’ve included the patch
below. Any help would be appreciated.

Thanks
Nic

max v2;
#N vpatcher 53 44 1008 742;
#P window setfont "Sans Serif" 9.;
#P window linecount 1;
#P message 437 351 49 196617 recall $1;
#P number 437 293 35 9 0 0 0 3 0 0 0 221 221 221 222 222 222 0 0 0;
#P message 317 314 35 196617 set $1;
#P number 317 293 35 9 0 0 0 3 0 0 0 221 221 221 222 222 222 0 0 0;
#P number 276 342 35 9 0 0 0 3 0 0 0 221 221 221 222 222 222 0 0 0;
#P message 276 367 55 196617 capture $1;
#P button 276 303 27 0;
#P comment 362 258 51 196617 Programs;
#P comment 237 311 35 196617 Store!;
#P comment 275 278 115 196617 Store Program Number:;
#P window linecount 2;
#P comment 406 278 114 196617 Recall Program Number:;
#P window setfont Arial 9.;
#P window linecount 1;
#N plugconfig;
#C useviews 0 1 1 1;
#C numprograms 6;
#C preempt 1;
#C sigvschange 1;
#C sigvsdefault 32;
#C setsize 1000 250;
#C defaultview Interface 0 0 0;
#C dragscroll 1;
#C noinfo;
#C setprogram 1 "Program 1" 0 0.795181 0.85 0.19 0.92 1. 0.175758
0.4666671. 1. 1.
0.145382;
#C setprogram 2 "Program 2" 0 0.759036 0.85 0.19 0.92 1. 0. 1. 1. 1. 1.
0.145382;
#C setprogram 3 "Program 3" 0 1. 0.85 0.97 0.92 0.57 0.018182 0.05 0.96 1.
1. 0.168876;
#C setprogram 4 "Program 4" 0 1. 0.85 0.97 0.92 0.57 0.018182 0.05 0.96 1.
1. 0.01988;
#C setprogram 5 "Program 5" 0 0.385542 0.85 0.86 0.92 0.08 0.058586 0.017 1.
1. 1. 0.145382;
#C setprogram 6 "Program 6" 0 0.795181 0.85 0.79 0.92 1. 0.026263
0.0153331. 0. 1.
0.145382;
#C uniqueid 128 159 138;
#C initialpgm 1;
#P newobj 362 430 52 131137545 plugconfig;
#P window setfont Arial 36.;
#P comment 13 21 156 131137572 Flange 1;
#P window setfont Arial 9.;
#N pp 11 MetronomeSpeed 20 5000 AOA;
#P newobj 246 532 165 131137545 pp 11 MetronomeSpeed 20 5000 AOA;
#N pp 10 MysteryMultisliderMetronome 0 1 On/Off;
#P newobj 209 553 202 131137545 pp 10 MysteryMultisliderMetronome 0 1
On/Off;
#N pp 9 MysteryFlangeGateThing 0 1 On/Off;
#P newobj 182 577 180 131137545 pp 9 MysteryFlangeGateThing 0 1 On/Off;
#N pp 8 FlangeDepth 0. 1. Depth;
#P newobj 216 401 131 131137545 pp 8 FlangeDepth 0. 1. Depth;
#N pp 7 FlangeRate 0. 30. Rateness;
#P newobj 182 424 146 131137545 pp 7 FlangeRate 0. 30. Rateness;
#N pp 6 DelayTime 5. 500. MS;
#P newobj 160 447 121 131137545 pp 6 DelayTime 5. 500. MS;
#N pp 5 MultisliderDelayTime 0. 100. MS;
#P newobj 121 473 162 131137545 pp 5 MultisliderDelayTime 0. 100. MS;
#N pp 4 FlangeLevel 0. 1. FLevel;
#P newobj 98 494 132 131137545 pp 4 FlangeLevel 0. 1. FLevel;
#N pp 3 Feedback 0 100 Feedbackness;
#P newobj 72 517 160 131137545 pp 3 Feedback 0 100 Feedbackness;
#N pp 2 DirectLevel 0. 1. DLevel;
#P newobj 52 543 130 131137545 pp 2 DirectLevel 0. 1. DLevel;
#P window setfont Copperplate 14.;
#P comment 216 160 125 145752078 Er Yeah.———->;
#P window setfont Arial 9.;
#P window linecount 3;
#P comment 158 147 51 131137545 Metronome Speed? Eh?;
#P window linecount 4;
#P comment 90 136 51 131137545 Mystery Multislider Metronome on/off;
#P comment 44 138 43 131137545 Mystery Flange Gate Thing;
#P window linecount 1;
#P newex 27 573 114 131137545 plugmultiparam 1 4 0. 30.;
#P toggle 44 180 15 0;
#P hidden newex 835 253 33 131137545 gate~;
#P newex 842 293 27 131137545 *~;
#P newex 582 564 29 131137545 line~;
#P number 158 179 35 9 20 5000 3 2001 0 0 0 221 221 221 222 222 222 0 0 0;
#P toggle 90 178 15 0;
#P newex 689 440 56 131137545 metro 1000;
#P newex 682 541 51 131137545 pipe 0. 22;
#P newex 651 522 51 131137545 pipe 0. 22;
#P flonum 459 86 36 9 0. 100. 3 2001 0 0 0 221 221 221 222 222 222 0 0 0;
#P window linecount 2;
#P comment 430 70 93 131137545 multislider delay time in ms;
#P flonum 845 456 35 9 0 0 0 2001 0 0 0 221 221 221 222 222 222 0 0 0;
#P flonum 809 456 35 9 0 0 0 2001 0 0 0 221 221 221 222 222 222 0 0 0;
#P flonum 774 456 33 9 0 0 0 2001 0 0 0 221 221 221 222 222 222 0 0 0;
#P window linecount 1;
#P newex 836 411 27 131137545 * 6.;
#P newex 800 411 27 131137545 * 4.;
#P newex 765 411 27 131137545 * 2.;
#P newex 619 504 51 131137545 pipe 0. 22;
#P window setfont Arial 10.;
#P comment 648 69 36 131137546 depth;
#P window setfont Arial 9.;
#P newex 595 477 84 131137545 unpack 1. 1. 1. 1.;
#P user multiSlider 346 129 127 85 0. 30. 4 2681 15 0 2 2 0 30 0;
#M frgb 0 19 166;
#M brgb 255 255 255;
#M rgb2 127 127 127;
#M rgb3 0 0 0;
#M rgb4 37 52 91;
#M rgb5 74 105 182;
#M rgb6 112 158 18;
#M rgb7 149 211 110;
#M rgb8 187 9 201;
#M rgb9 224 62 37;
#M rgb10 7 114 128;
#P window setfont Arial 10.;
#P comment 595 70 26 131137546 rate;
#P window setfont "Fixedwidth Serif" 10.;
#P flonum 644 84 39 10 0. 1. 3 22 0 0 0 221 221 221 222 222 222 0 0 0;
#P newex 764 335 73 1441802 *~;
#P newex 764 358 87 1441802 +~;
#P newex 764 315 59 1441802 *~;
#P flonum 595 86 36 10 0. 30. 3 22 0 0 0 221 221 221 222 222 222 0 0 0;
#P newex 765 269 46 1441802 cycle~;
#P flonum 536 84 37 10 5. 500. 3 22 0 0 0 221 221 221 222 222 222 0 0 0;
#P window setfont Arial 10.;
#P comment 525 70 62 131137546 delay time;
#N vpreset 6;
#X append 1 2 7 335 36 toggle int 1 ; 12 83 365 flonum float 0.92 ; 13 82
148 flonum float 0.85 ; 15 82 260 hslider int 19 ; 19 84 536 flonum float
92. ; 21 86 595 flonum float;
#X append 1 2 14. ; 25 84 644 flonum float 1. ; 27 129 346 multiSlider
list 23.855421 25.301205 26.385542 30. ; 34 456 774 flonum float 200. ; 35
456 809 flonum float 400. ; 36 456 845 flonum float 600. ;;
#X append 1 2 38 86 459 flonum float 100. ; 42 178 90 toggle int 1 ; 43
179 158 number int 744 ; 47 180 44 toggle int 1 ;;
#X append 2 2 7 335 36 toggle int 1 ; 12 83 365 flonum float 0.92 ; 13 82
148 flonum float 0.85 ; 15 82 260 hslider int 19 ; 19 84 536 flonum float
5. ; 21 86 595 flonum float;
#X append 2 2 30. ; 25 84 644 flonum float 1. ; 27 129 346 multiSlider
list 22.771084 20.963856 26.385542 30. ; 34 456 774 flonum float 200. ; 35
456 809 flonum float 400. ; 36 456 845 flonum float 600. ;;
#X append 2 2 38 86 459 flonum float 100. ; 42 178 90 toggle int 1 ; 43
179 158 number int 744 ; 47 180 44 toggle int 1 ;;
#X append 3 2 7 335 36 toggle int 1 ; 12 83 365 flonum float 0.92 ; 13 82
148 flonum float 0.85 ; 15 82 260 hslider int 97 ; 19 84 536 flonum float
14. ; 21 86 595 flonum float;
#X append 3 2 1.5 ; 25 84 644 flonum float 0.96 ; 27 129 346 multiSlider
list 30. 8.313253 4.698795 9.397591 ; 34 456 774 flonum float 114. ; 35
456 809 flonum float 228. ; 36 456 845 flonum float 342. ;;
#X append 3 2 38 86 459 flonum float 57. ; 42 178 90 toggle int 1 ; 43 179
158 number int 861 ; 47 180 44 toggle int 1 ;;
#X append 4 2 7 335 36 toggle int 1 ; 12 83 365 flonum float 0.92 ; 13 82
148 flonum float 0.85 ; 15 82 260 hslider int 97 ; 19 84 536 flonum float
14. ; 21 86 595 flonum float;
#X append 4 2 1.5 ; 25 84 644 flonum float 0.96 ; 27 129 346 multiSlider
list 30. 0. 30. 0. ; 34 456 774 flonum float 114. ; 35 456 809 flonum
float 228. ; 36 456 845 flonum float 342. ;;
#X append 4 2 38 86 459 flonum float 57. ; 42 178 90 toggle int 1 ; 43 179
158 number int 119 ; 47 180 44 toggle int 1 ;;
#X append 5 2 7 335 36 toggle int 1 ; 12 83 365 flonum float 0.92 ; 13 82
148 flonum float 0.85 ; 15 82 260 hslider int 86 ; 19 84 536 flonum float
34. ; 21 86 595 flonum float;
#X append 5 2 0.51 ; 25 84 644 flonum float 1. ; 27 129 346 multiSlider
list 11.566265 10.120481 7.590362 30. ; 34 456 774 flonum float 16. ; 35
456 809 flonum float 32. ; 36 456 845 flonum float 48. ;;
#X append 5 2 38 86 459 flonum float 8. ; 42 178 90 toggle int 1 ; 43 179
158 number int 744 ; 47 180 44 toggle int 1 ;;
#X append 6 2 7 335 36 toggle int 1 ; 12 83 365 flonum float 0.92 ; 13 82
148 flonum float 0.85 ; 15 82 260 hslider int 79 ; 19 84 536 flonum float
18. ; 21 86 595 flonum float;
#X append 6 2 0.46 ; 25 84 644 flonum float 1. ; 27 129 346 multiSlider
list 23.855421 25.301205 26.385542 30. ; 34 456 774 flonum float 200. ; 35
456 809 flonum float 400. ; 36 456 845 flonum float 600. ;;
#X append 6 2 38 86 459 flonum float 100. ; 42 178 90 toggle int 1 ; 43
179 158 number int 744 ; 47 180 44 toggle int 0 ;;
#P preset 364 452 47 27;
#P window setfont Arial 9.;
#P hidden newex 260 102 30 131137545 * 0.01;
#P user hslider 260 82 17 56 100 1 0 0;
#P newex 586 408 27 131137545 *~;
#P window setfont "Fixedwidth Serif" 10.;
#P flonum 148 82 35 10 0. 1. 3 22 0 0 0 221 221 221 222 222 222 0 0 0;
#P flonum 365 83 35 10 0. 1. 3 22 0 0 0 221 221 221 222 222 222 0 0 0;
#P newex 624 402 36 1441802 *~;
#P newex 540 402 32 1441802 *~ 1;
#P window setfont Arial 9.;
#P newex 624 373 59 131137545 tapout~ 100;
#P newex 624 346 53 131137545 tapin~ 500;
#P toggle 36 335 15 0;
#P newex 540 524 30 131137545 dac~;
#P newex 540 301 46 131137545 adc~ 2 3;
#P comment 53 335 100 131137545 audio on/off;
#P comment 261 68 53 131137545 Feedback;
#P comment 148 68 55 131137545 Direct Level;
#P comment 365 69 57 131137545 Flange Level;
#P user panel 19 52 674 175;
#X brgb 248 180 0;
#X frgb 0 0 0;
#X border 1;
#X rounded 0;
#X shadow 0;
#X done;
#P hidden connect 27 0 48 0;
#P hidden connect 60 0 47 0;
#P hidden connect 13 0 53 0;
#P hidden connect 15 0 54 0;
#P hidden connect 61 0 42 0;
#P hidden connect 12 0 55 0;
#P hidden connect 38 0 56 0;
#P hidden connect 53 0 13 0;
#P hidden connect 62 0 43 0;
#P hidden connect 19 0 57 0;
#P hidden connect 21 0 58 0;
#P hidden connect 47 0 60 0;
#P hidden connect 42 0 61 0;
#P hidden connect 25 0 59 0;
#P hidden connect 43 0 62 0;
#P hidden connect 54 0 15 0;
#P connect 15 0 16 0;
#P connect 73 0 71 0;
#P connect 69 0 71 0;
#P connect 71 0 70 0;
#P connect 72 0 73 0;
#P hidden connect 41 0 27 0;
#P hidden connect 48 0 27 0;
#P connect 75 0 64 0;
#P connect 70 0 64 0;
#P hidden connect 55 0 12 0;
#P connect 74 0 75 0;
#P hidden connect 56 0 38 0;
#P hidden connect 57 0 19 0;
#P hidden fasten 7 0 5 0 41 138 545 138;
#P fasten 5 1 10 0 581 330 545 330;
#P fasten 5 0 10 0 545 349 545 349;
#P fasten 11 0 6 0 629 441 545 441;
#P hidden fasten 7 0 6 0 41 301 545 301;
#P connect 10 0 6 0;
#P fasten 10 0 6 1 545 457 565 457;
#P fasten 11 0 6 1 629 450 565 450;
#P hidden fasten 13 0 10 1 153 210 567 210;
#P connect 40 0 44 0;
#P connect 39 0 44 0;
#P connect 30 0 44 0;
#P connect 28 0 44 0;
#P fasten 9 0 14 0 629 397 591 397;
#P hidden connect 58 0 21 0;
#P hidden connect 27 0 28 0;
#P hidden fasten 16 0 14 1 265 203 608 203;
#P connect 28 1 30 0;
#P fasten 14 0 8 0 591 433 423 433 423 333 629 333;
#P fasten 5 0 8 0 545 330 629 330;
#P fasten 5 1 8 0 581 330 629 330;
#P connect 8 0 9 0;
#P fasten 23 0 9 0 769 452 848 452 848 367 629 367;
#P connect 9 0 11 0;
#P hidden connect 59 0 25 0;
#P hidden fasten 12 0 11 1 370 172 374 172 374 228 655 228;
#P fasten 28 2 39 0 648 502 656 502;
#P fasten 34 0 30 1 779 479 665 479;
#P fasten 28 3 40 0 672 508 687 508;
#P hidden connect 42 0 41 0;
#P fasten 35 0 39 1 814 487 697 487;
#P fasten 36 0 40 1 850 491 728 491;
#P hidden connect 43 0 41 1;
#P connect 20 0 22 0;
#P connect 45 0 22 0;
#P connect 22 0 24 0;
#P connect 24 0 23 0;
#P hidden connect 21 0 20 0;
#P hidden fasten 38 0 31 0 464 268 770 268;
#P connect 31 0 34 0;
#P hidden fasten 38 0 32 0 464 268 805 268;
#P connect 32 0 35 0;
#P hidden connect 25 0 22 1;
#P hidden fasten 19 0 24 1 541 125 832 125;
#P hidden fasten 47 0 46 0 49 202 840 202;
#P hidden fasten 38 0 33 0 464 284 841 284;
#P hidden fasten 19 0 23 1 541 125 846 125;
#P fasten 46 0 45 0 840 268 847 268;
#P connect 33 0 36 0;
#P fasten 20 0 46 1 770 297 835 297 835 258 982 258 982 229 863 229;
#P fasten 44 0 45 1 587 661 888 661 888 353 864 353;
#P pop;


March 21, 2006 | 6:30 am

you are using the same parameter numbers twice…. plugmultiparam 1 4 — uses parameters 1, 2, 3 & 4, so the next free parameter is 5…..



n z
March 21, 2006 | 7:31 pm

ahhh yes. thank you


Viewing 3 posts - 1 through 3 (of 3 total)