Forums > MaxMSP

pluggo initialization

October 4, 2008 | 10:24 pm

running 4.5.7 and pluggo 3.5.4

The follow patch will build as a pluggo and sounds fine, but it doesn’t
initalize. I have loadbang triggering message objects that hit the ‘pp’
objects as well as their destinations, but they don’t initialize on loadding
them in to vst~.

#P window setfont "Sans Serif" 9.;
#P window linecount 1;
#P message 216 65 14 9109513 0;
#P message 234 65 28 9109513 3175;
#P message 152 70 14 9109513 0;
#P message 182 65 23 9109513 500;
#P newex 203 28 45 9109513 loadbang;
#P newex 70 225 53 9109513 svf~ 1;
#P toggle 27 305 15 0;
#P newex 27 337 45 9109513 dac~;
#P newex 85 290 51 9109513 plugout~ 1;
#P window linecount 2;
#P comment 13 277 67 9109513 turn audio on/off in Max;
#P window linecount 1;
#N vpatcher 15 55 615 565;
#P origin 255 0;
#P window setfont "Sans Serif" 9.;
#P window linecount 1;
#P newex 251 271 74 9109513 clip 0.005 0.996;
#P newex 157 270 74 9109513 clip 0.004 0.995;
#N vpatcher 25 70 625 470;
#P outlet 21 181 15 0;
#P window setfont "Sans Serif" 9.;
#P newex 21 151 27 9109513 +~;
#P newex 21 95 27 9109513 +~ 1;
#P newex 81 100 33 9109513 *~ 0.5;
#P newex 81 79 27 9109513 -~;
#P newex 21 129 27 9109513 *~;
#N comlet max output (sig);
#P inlet 140 39 15 0;
#N comlet min output (sig);
#P inlet 98 39 15 0;
#N comlet sig to be scaled;
#P inlet 21 39 15 0;
#P connect 0 0 6 0;
#P connect 6 0 3 0;
#P connect 3 0 7 0;
#P connect 7 0 8 0;
#P fasten 5 0 3 1 86 123 43 123;
#P fasten 1 0 7 1 103 62 64 62 64 149 43 149;
#P fasten 2 0 4 0 145 76 86 76;
#P connect 4 0 5 0;
#P connect 1 0 4 1;
#P pop;
#P newobj 113 355 78 9109513 p my.osc.scale~;
#N vpatcher 25 70 625 470;
#N comlet max;
#P outlet 107 347 15 0;
#N comlet min;
#P outlet 73 347 15 0;
#N comlet Center;
#P inlet 107 189 15 0;
#N comlet range (float , 0 , 1);
#P inlet 20 189 15 0;
#P window setfont "Sans Serif" 9.;
#P window linecount 1;
#P newex 20 238 27 9109513 t b f;
#P newex 20 259 27 9109513 * 1.;
#P newex 36 280 27 9109513 t b f;
#P newex 73 311 27 9109513 – 1.;
#P newex 107 311 27 9109513 + 1.;
#P window linecount 2;
#P newex 38 205 59 9109513 expr 0.5 – abs($f1-0.5);
#P connect 0 0 5 0;
#P connect 5 0 4 0;
#P connect 6 0 4 0;
#P connect 4 0 3 0;
#P connect 5 1 4 1;
#P connect 7 0 0 0;
#P fasten 3 0 2 0 41 305 78 305;
#P fasten 7 0 2 0 112 298 78 298;
#P connect 2 0 8 0;
#P fasten 3 1 2 1 58 302 95 302;
#P connect 7 0 1 0;
#P fasten 3 0 1 0 41 305 112 305;
#P connect 1 0 9 0;
#P fasten 3 1 1 1 58 302 129 302;
#P pop;
#P newobj 183 230 85 9109513 p my.range-center;
#N comlet ws out (sig);
#P outlet 112 386 15 0;
#P newex 143 303 25 9109513 sig~;
#P newex 243 311 25 9109513 sig~;
#P newex 299 93 37 9109513 / 6350.;
#P newex 92 145 37 9109513 / 6350.;
#N comlet duty cycle;
#P inlet 299 66 15 0;
#N comlet CV amount slider;
#P inlet 92 65 15 0;
#N comlet PWM CV in (sig);
#P inlet 75 65 15 0;
#P window linecount 0;
#P comment 350 272 100 9109513 some osc will need clipping. 0.005 to 0.995
for rect~ prevents silence;
#P connect 2 0 4 0;
#P connect 10 0 8 0;
#P fasten 1 0 10 0 80 289;
#P connect 11 0 7 0;
#P connect 7 0 10 1;
#P connect 9 0 11 0;
#P connect 6 0 10 2;
#P connect 4 0 9 0;
#P connect 12 0 6 0;
#P connect 9 1 12 0;
#P connect 5 0 9 1;
#P connect 3 0 5 0;
#P pop;
#P newobj 212 153 92 9109513 p createWaveshape;
#N pp 3 WSM_amount 0 6350;
#PP text "Sets the level of the delayed signal that is fed back to the
input";
#P newobj 253 109 118 9109513 pp 3 WSM_amount 0 6350;
#N vpatcher 705 211 1237 659;
#N comlet freq out (sig);
#P outlet 326 388 15 0;
#P window setfont "Sans Serif" 9.;
#P newex 94 146 27 9109513 line~;
#P newex 94 124 51 9109513 append 20;
#P newex 94 95 128 9109513 expr $f1*$f1*0.00000097142;
#P newex 326 358 32 9109513 mtof~;
#P newex 326 336 27 9109513 +~;
#P newex 343 311 27 9109513 line~;
#P newex 343 289 51 9109513 append 20;
#N comlet selected note (float hz);
#P outlet 419 311 15 0;
#P newex 370 157 29 9109513 + 25.;
#P newex 370 106 43 9109513 * 0.0164;
#P newex 432 265 28 9109513 mtof;
#N comlet speed slider;
#P inlet 370 41 15 0;
#P newex 69 186 27 9109513 *~ 1;
#N comlet CV amount slider;
#P inlet 94 39 15 0;
#N comlet FM in (sig);
#P inlet 69 39 15 0;
#P connect 0 0 2 0;
#P connect 14 0 2 1;
#P connect 1 0 12 0;
#P connect 12 0 13 0;
#P connect 13 0 14 0;
#P fasten 2 0 10 0 74 285 331 285;
#P connect 10 0 11 0;
#P connect 11 0 15 0;
#P connect 6 0 8 0;
#P connect 8 0 9 0;
#P connect 9 0 10 1;
#P connect 3 0 5 0;
#P connect 5 0 6 0;
#P fasten 4 0 7 0 437 292 424 292;
#P connect 6 0 4 0;
#P pop;
#P newobj 71 152 65 9109513 p create pitch;
#N pp 4 waveshape 0 6350;
#PP text "Sets the level of the delayed signal that is fed back to the
input";
#P newobj 294 131 107 9109513 pp 4 waveshape 0 6350;
#N pp 2 fm_amount 0 6350;
#PP text "Sets the delay time in milliseconds";
#P newobj 98 109 108 9109513 pp 2 fm_amount 0 6350;
#N pp 1 pitch 0 6350;
#PP text "Sets the overall gain of the delayed signal";
#P newobj 125 131 80 9109513 pp 1 pitch 0 6350;
#P newex 70 186 40 9109513 rect~;
#P newex 70 75 53 9109513 plugin~ 1 2;
#P message 427 282 49 9109513 recall $1;
#P number 427 224 35 9 0 0 0 139 0 0 0 221 221 221 222 222 222 0 0 0;
#P message 307 245 35 9109513 set $1;
#P number 307 224 35 9 0 0 0 139 0 0 0 221 221 221 222 222 222 0 0 0;
#P number 266 273 35 9 0 0 0 139 0 0 0 221 221 221 222 222 222 0 0 0;
#P message 266 298 55 9109513 capture $1;
#P button 266 234 27 0;
#N plugconfig;
#C useviews 1 1 1 1;
#C numprograms 8;
#C preempt 1;
#C sigvschange 1;
#C sigvsdefault 32;
#C autosize;
#C defaultview Interface 0 0 0;
#C dragscroll 1;
#C noinfo;
#C setprogram 1 "Program 1" 0 0.25 0.1 0.;
#C setprogram 2 "Program 2" 0 0.25 0.25 0.39;
#C setprogram 3 "Program 3" 0 0.25 0.5 0.18;
#C uniqueid 128 157 227;
#C initialpgm 1;
#P newobj 359 333 53 9109513 plugconfig;
#B color 15;
#P comment 354 185 51 9109513 Programs;
#P comment 227 235 35 9109513 Store!;
#P comment 265 209 115 9109513 Store Program Number:;
#P comment 396 209 114 9109513 Recall Program Number:;
#P connect 23 0 22 0;
#P connect 17 0 13 0;
#P connect 13 0 24 0;
#P connect 12 0 17 0;
#P fasten 19 0 13 1 217 175 90 175;
#P connect 24 1 21 0;
#P connect 27 0 15 0;
#P connect 27 0 17 1;
#P connect 15 0 17 1;
#P connect 26 0 14 0;
#P connect 26 0 17 2;
#P connect 14 0 17 2;
#P connect 25 0 27 0;
#P connect 25 0 26 0;
#P fasten 12 1 19 0 118 101 217 101;
#P connect 25 0 29 0;
#P connect 25 0 28 0;
#P connect 29 0 18 0;
#P connect 29 0 19 1;
#P connect 18 0 19 1;
#P connect 5 0 7 0;
#P connect 9 0 7 0;
#P connect 7 0 6 0;
#P connect 28 0 16 0;
#P connect 28 0 19 2;
#P connect 16 0 19 2;
#P connect 8 0 9 0;
#P connect 6 0 4 0;
#P connect 11 0 4 0;
#P connect 10 0 11 0;
#P window clipboard copycount 30;


October 9, 2008 | 3:28 pm

just gonna bump this the once. I’m sure the solution to this is very
simple. I can automate initialization from max instead of within pluggo,
but this ‘brute force’ method is far from ideal.

thanks.


October 9, 2008 | 4:03 pm

Why don’t you just make those values the first preset?

-A


October 12, 2008 | 6:01 pm

i knew it was something simple.

thanks v much.

On Thu, Oct 9, 2008 at 12:03 PM, Andrew Pask wrote:

>
>
>
> Why don’t you just those values the first preset?
>
> -A
>


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