poly~ help_please

Feb 21, 2006 at 2:10am

poly~ help_please

If anyone has the time could you please check out the following poly~ patch see if there are any glaring problems. I modeled it after the clickless examples and I’m still getting click-like garbage all over the patch. Every 10 seconds or so it sounds like a click or the gets interupted by something. Any help would be much appreciated,
THanks
Casey

max v2;
#N vpatcher 96 44 1232 854;
#P origin 38 165;
#P outlet 584 789 15 0;
#P outlet 570 771 15 0;
#P outlet 556 753 15 0;
#P outlet 542 735 15 0;
#P outlet 528 717 15 0;
#P outlet 514 699 15 0;
#P outlet 500 681 15 0;
#P outlet 486 663 15 0;
#P inlet 23 -123 15 0;
#P user meter~ 464 422 800 512 100 0 168 0 103 103 103 255 153 0 255 0 0 217 217 0 153 186 0 12 3 3 3 3;
#P window setfont “Sans Serif” 9.;
#N out~ 8;
#P newobj 639 778 38 196617 out~ 8;
#N out~ 7;
#P newobj 625 760 38 196617 out~ 7;
#N out~ 6;
#P newobj 611 742 38 196617 out~ 6;
#N out~ 5;
#P newobj 597 724 38 196617 out~ 5;
#N out~ 4;
#P newobj 583 706 38 196617 out~ 4;
#N out~ 3;
#P newobj 569 688 38 196617 out~ 3;
#N out~ 2;
#P newobj 555 670 38 196617 out~ 2;
#P button 208 152 15 0;
#P button 654 206 15 0;
#P button 640 188 15 0;
#P window setfont “Century Gothic” 14.;
#P message 604 33 31 131334158 this;
#P button 638 56 15 0;
#P comment 1047 -10 109 131334158 buffer size;
#P flonum 1041 11 95 14 0 0 0 2004 0 0 0 221 221 221 222 222 222 0 0 0;
#P message 599 284 232 131334158 1 4000.480225;
#P newex 583 254 93 131334158 prepend set;
#P flonum 498 152 73 14 0 0 0 2004 0 0 0 221 221 221 222 222 222 0 0 0;
#P newex 184 250 32 131334158 * -1;
#P flonum 184 294 125 14 0 0 0 2004 0 0 0 221 221 221 222 222 222 0 0 0;
#P flonum 965 -49 95 14 0 0 0 2004 0 0 0 221 221 221 222 222 222 0 0 0;
#P flonum 865 -49 95 14 0 0 0 2004 0 0 0 221 221 221 222 222 222 0 0 0;
#P message 764 225 232 131334158 thisbuffer 0. 1000.;
#P newex 732 191 93 131334158 prepend set;
#P newex 699 158 93 131334158 prepend set;
#P newex 699 118 102 131334158 pack s 0. 0.;
#P newex 612 176 25 131334158 t 2;
#P newex 578 176 26 131334158 t 1;
#P newex 578 149 79 131334158 sel 1. -1.;
#P newex 498 123 39 131334158 * 1.;
#P newex 449 263 103 131334158 switch 2;
#P newex 498 96 40 131334158 float;
#P flonum 868 32 95 14 0 0 0 2004 0 0 0 221 221 221 222 222 222 0 0 0;
#P newex 868 6 58 131334158 abs 0.;
#P newex 868 -21 83 131334158 – 1.;
#P message 546 212 57 131334158 1 , 0 $1;
#P message 491 212 53 131334158 0 , 1 $1;
#P newex 449 302 92 131334158 line~ 1.;
#P newex 449 357 165 131334158 wave~;
#P button 114 206 31 0;
#P number 44 208 35 14 0 0 0 2004 0 0 0 221 221 221 222 222 222 0 0 0;
#P comment 777 -64 67 131334158 stream;
#P number 947 409 35 14 0 0 0 2004 0 0 0 221 221 221 222 222 222 0 0 0;
#P newex 984 369 27 131334158 2;
#P newex 947 366 27 131334158 1;
#P newex 947 333 102 131334158 select 1. -1.;
#P message 916 524 16 131334158 0;
#P button 962 491 15 0;
#P button 916 491 15 0;
#P window setfont “Sans Serif” 9.;
#P newex 916 468 56 196617 edge~;
#P window setfont “Century Gothic” 14.;
#P newex 916 436 49 131334158 < ~ 0.1;
#P newex 840 397 86 131334158 gate~ 2;
#P message 840 524 16 131334158 0;
#P button 886 490 15 0;
#P button 840 490 15 0;
#P window setfont “Sans Serif” 9.;
#P newex 840 467 56 196617 edge~;
#P window setfont “Century Gothic” 14.;
#P newex 840 435 49 131334158 >~ 0.9;
#P newex 539 623 173 131334158 gate~ 8;
#P newex 68 541 47 131334158 pass~;
#N out 1;
#X comment instance # and mute;
#P newobj 155 466 44 131334158 out 1;
#P newex 155 440 69 131334158 pack 0 0;
#P message 726 58 232 131334158 thisbuffer;
#P newex 694 24 93 131334158 prepend set;
#P message 200 -143 359 131334158 36 111 15.2 14.3 0.5 44.4 1. thisbuffer 8 0. 1000. 1000;
#P flonum 586 -26 77 14 0 0 0 2004 0 0 0 221 221 221 222 222 222 0 0 0;
#P flonum 505 -26 77 14 0 0 0 2004 0 0 0 221 221 221 222 222 222 0 0 0;
#P flonum 413 -26 77 14 0 0 0 2004 0 0 0 221 221 221 222 222 222 0 0 0;
#P flonum 322 -26 77 14 0 0 0 2004 0 0 0 221 221 221 222 222 222 0 0 0;
#P flonum 231 -26 77 14 0 0 0 2004 0 0 0 221 221 221 222 222 222 0 0 0;
#P number 140 -25 77 14 0 0 0 2004 0 0 0 221 221 221 222 222 222 0 0 0;
#P number 48 -25 77 14 0 0 0 2004 0 0 0 221 221 221 222 222 222 0 0 0;
#P comment 686 -62 67 131334158 buffer;
#P comment 596 -63 67 131334158 direction;
#P comment 503 -62 67 131334158 release;
#P comment 414 -63 67 131334158 sustain;
#P comment 321 -63 67 131334158 decay;
#P comment 227 -62 67 131334158 attack;
#P comment 140 -63 67 131334158 midi velocity;
#P window setfont “Sans Serif” 9.;
#P newex 184 275 63 196617 transRatio;
#P newex 183 231 29 196617 – 60;
#P newex 166 207 27 196617 t b i;
#P window setfont “Century Gothic” 14.;
#P message 126 -120 847 131334158 midinote note velocity attack decay sustain release direction buffer stream startpoint stoppoint buffersize;
#P newex 40 -88 1018 131334158 unpack 0 0 0. 0. 0. 0. 0. s 0 0. 0. 0;
#P window setfont “Sans Serif” 9.;
#P message 186 386 50 196617 mute 1;
#P newex 186 363 50 196617 loadbang;
#P newex 131 61 39 196617 / 127.;
#P comment 143 139 31 196617 play;
#N vpatcher 10 59 138 187;
#P outlet 41 65 15 0;
#P inlet 41 43 15 0;
#P connect 0 0 1 0;
#P pop;
#P newobj 1 383 35 196617 p thru;
#N out~ 1;
#X comment audio out;
#P newobj 541 652 39 196617 out~ 1;
#N in 1;
#X comment midinote pitch velocity attack decay sustain release speed starttime stoptime buffername;
#P newobj 40 -125 31 196617 in 1;
#P newex 155 413 69 196617 thispoly~;
#P newex 68 519 30 196617 *~;
#P comment 9 -141 81 196617

;
#P newex 44 164 34 196617 i;
#P comment 106 139 35 196617 0 -> 1;
#P newex 44 138 56 196617 edge~;
#P newex 131 92 211 196617 adsr~;
#B color 14;
#P comment 80 161 112 196617 pitch chills in int until it’s time to play.;
#P window setfont “Century Gothic” 14.;
#P comment 48 -63 48 131334158 midi note;
#P fasten 2 0 11 0 136 116 6 116;
#P fasten 99 0 16 0 28 -101 45 -101;
#P connect 35 0 16 0;
#P connect 9 0 16 0;
#P fasten 2 1 3 0 203 125 49 125;
#P connect 3 0 5 0;
#P lcolor 15;
#P connect 5 0 58 0;
#P fasten 16 0 28 0 45 -23;
#P fasten 16 0 5 1 45 64 73 64;
#P lcolor 15;
#P fasten 11 0 7 0 6 405 73 405;
#P connect 7 0 40 0;
#P fasten 60 0 7 1 454 516 93 516;
#P fasten 5 0 59 0 49 188 119 188;
#P connect 16 1 13 0;
#P lcolor 7;
#P fasten 46 0 13 0 845 574 344 574 344 36 136 36;
#P fasten 52 0 13 0 921 574 342 574 342 38 136 38;
#P connect 13 0 2 0;
#P lcolor 7;
#P fasten 16 1 29 0 136 -26 145 -26;
#P connect 15 0 8 0;
#P fasten 2 2 8 0 270 318 160 318;
#P fasten 11 0 8 0 6 404 160 404;
#P connect 8 0 38 0;
#P connect 38 0 39 0;
#P connect 90 0 18 0;
#P fasten 5 0 18 0 49 192 171 192;
#P lcolor 15;
#P fasten 16 2 2 1 227 62 186 62;
#P lcolor 10;
#P connect 18 1 19 0;
#P connect 19 0 80 0;
#P connect 80 0 20 0;
#P connect 20 0 79 0;
#P connect 14 0 15 0;
#P connect 8 1 38 1;
#P fasten 16 2 30 0 227 -26;
#P fasten 16 3 2 2 318 62 236 62;
#P lcolor 10;
#P fasten 16 4 2 3 409 67 286 67;
#P lcolor 10;
#P fasten 16 3 31 0 318 -25;
#P fasten 16 5 2 4 500 76 336 76;
#P lcolor 10;
#P fasten 16 4 32 0 409 -27 418 -27;
#P fasten 71 0 68 0 583 203 454 203;
#P fasten 72 0 68 0 617 203 454 203;
#P connect 68 0 61 0;
#P connect 61 0 60 0;
#P fasten 74 0 60 0 704 348 454 348;
#P connect 60 0 98 0;
#P connect 41 0 100 0;
#P fasten 81 0 62 0 503 193 496 193;
#P fasten 62 0 68 1 496 238 500 238;
#P fasten 18 0 67 0 171 226 436 226 436 73 503 73;
#P connect 67 0 69 0;
#P connect 69 0 81 0;
#P connect 41 1 101 0;
#P fasten 16 5 33 0 500 -27 510 -27;
#P connect 41 2 102 0;
#P fasten 79 0 69 1 189 333 422 333 422 73 532 73;
#P fasten 66 0 67 1 873 92 533 92;
#P connect 41 3 103 0;
#P fasten 16 8 41 0 773 584 544 584;
#P fasten 63 0 68 2 551 238 546 238;
#P connect 41 0 10 0;
#P connect 41 4 104 0;
#P fasten 81 0 63 0 503 189 551 189;
#P connect 41 1 91 0;
#P connect 41 5 105 0;
#P connect 41 2 92 0;
#P connect 41 6 106 0;
#P fasten 34 0 70 0 591 139 583 139;
#P connect 70 0 71 0;
#P fasten 68 0 82 0 454 291 574 291 574 246 588 246;
#P connect 41 3 93 0;
#P connect 41 7 107 0;
#P connect 16 6 34 0;
#P lcolor 3;
#P connect 41 4 94 0;
#P connect 82 0 83 0;
#P connect 41 5 95 0;
#P connect 70 1 72 0;
#P connect 41 6 96 0;
#P connect 41 7 97 0;
#P connect 70 0 88 0;
#P connect 70 1 89 0;
#P fasten 16 7 36 0 682 -2 699 -2;
#P connect 86 0 73 0;
#P fasten 16 7 73 0 682 76 704 76;
#P connect 87 0 73 0;
#P connect 73 0 74 0;
#P fasten 40 0 41 1 73 597 707 597;
#P fasten 36 0 37 0 699 53 731 53;
#P connect 73 0 75 0;
#P fasten 16 9 73 1 864 107 750 107;
#P fasten 75 0 76 0 737 220 769 220;
#P fasten 16 10 73 2 955 107 796 107;
#P fasten 56 0 47 0 936 429 936 384 845 384;
#P connect 47 0 42 0;
#P connect 42 0 43 0;
#P connect 43 0 44 0;
#P connect 44 0 46 0;
#P fasten 16 9 77 0 864 -58 870 -58;
#P fasten 16 9 64 0 864 -29 873 -29;
#P connect 64 0 65 0;
#P connect 65 0 66 0;
#P connect 43 1 45 0;
#P fasten 61 0 47 1 454 341 921 341;
#P connect 47 1 48 0;
#P connect 48 0 49 0;
#P connect 49 0 50 0;
#P connect 50 0 52 0;
#P fasten 16 10 64 1 955 -27 946 -27;
#P fasten 34 0 53 0 591 318 952 318;
#P connect 53 0 54 0;
#P connect 54 0 56 0;
#P fasten 55 0 56 0 989 400 952 400;
#P connect 49 1 51 0;
#P fasten 16 10 78 0 955 -56 970 -56;
#P fasten 53 1 55 0 998 364 989 364;
#P connect 16 11 84 0;
#P pop;

#24530
Feb 21, 2006 at 4:16pm

i’ve just looked at your patch and it seems fine…i didn’t bother getting it inside poly~ and building a testpatch around it…. but i would like to see the ‘master patch’ in which this poly is used….. the error can be in this patch as well.

If you want me to test out the hole thing….u can send me the patches by mail : geek74@gmail.com

#71079
Feb 21, 2006 at 7:24pm

casey Farina wrote:
> If anyone has the time could you please check out the following poly~
> patch see if there are any glaring problems. I modeled it after the
> clickless examples and I’m still getting click-like garbage all over
> the patch. Every 10 seconds or so it sounds like a click or the gets
> interupted by something. Any help would be much appreciated, THanks

Points to look into: the gate~ 8 which might be switched at the wrong
time, you could replace it with matrix~.

In general it looks like there is potential to simplify the whole
structure. You send all parameters of a note in one single list, but
some parameters are redundant. For example the buffer size is not
necessary to send, as if you have a buffer~ you could always get the
size within the poly~.
What I do, usually with all this kind of information, I fill a coll and
refer to that coll within the poly~, then you don’t have to carry that
long list around every time.

Also attack decay sustain release would only be usefull to carry with
the note information if it changes with every note. But as you just
carry adsr, I suspect you think of it in a traditional way as sound
parameter which not necessarily would change with every note.

If you want to carry enevlope information, you could send multisegment
lists to an extra input, which would not restrict you to use adsr type
envelopes.

Stefan

[][] [][][] [][] [][][]
[][][][][][][][][][][][][][][]

Stefan Tiedje
Klanggestalter
Electronic Composition
&
Improvisation

/~~~~~
\ /|() ()|
))))) )| | |( \
/// _/)/ )))))
___/ ///

————————-x—-
–_____———–|———–
–(_|_ —-|—–|—–()—-
– _|_)—-|—–()———–
———-()————x—–

14, Av. Pr. Franklin Roosevelt,
94320 Thiais, France
Phone at CCMIX +33-1-49 77 51 72

#71080
Feb 22, 2006 at 11:29am

great idea having the coll object inside poly~, haven’t thought of it…

#71081
Feb 22, 2006 at 2:08pm

Thanks for the tips everyone, I really appreciate it. I’m a little confused to how one would impliment the coll in the poly technique. Any examples?

#71082
Feb 22, 2006 at 11:20pm

something like this…

#P window setfont “Sans Serif” 12.;
#P window linecount 1;
#P comment 414 44 100 196620 OUTSIDE POLY;
#P window setfont “Sans Serif” 9.;
#P message 241 50 20 196617 39;
#P message 220 50 20 196617 38;
#P message 199 50 20 196617 37;
#P message 178 50 20 196617 36;
#P newex 418 68 48 196617 loadbang;
#P window linecount 3;
#P message 418 102 102 196617 36 1 2 3 4 , 37 5 6 7 8 , 38 9 10 11 12 , 39 13 14 15 16;
#P window linecount 1;
#N coll polycoll;
#P newobj 418 153 64 196617 coll polycoll;
#N in 1;
#P newobj 24 74 25 196617 in 1;
#P number 137 170 35 9 0 0 0 3 0 0 0 221 221 221 222 222 222 0 0 0;
#P number 99 170 35 9 0 0 0 3 0 0 0 221 221 221 222 222 222 0 0 0;
#P number 62 170 35 9 0 0 0 3 0 0 0 221 221 221 222 222 222 0 0 0;
#P number 24 170 35 9 0 0 0 3 0 0 0 221 221 221 222 222 222 0 0 0;
#P newex 24 136 76 196617 unpack 0 0 0 0;
#N coll polycoll;
#P newobj 24 108 64 196617 coll polycoll;
#P window linecount 2;
#P comment 90 108 284 196617 < --- just name the COLL , and fill it outside poly...then use the note numbers for triggering the same coll within Poly~;
#P window setfont “Sans Serif” 12.;
#P window linecount 1;
#P comment 20 44 100 196620 INSIDE POLY;
#P window setfont “Sans Serif” 9.;
#P comment 179 33 100 196617 Midinotes;
#P connect 16 0 3 0;
#P connect 15 0 3 0;
#P connect 14 0 3 0;
#P connect 13 0 3 0;
#P connect 12 0 11 0;
#P connect 11 0 10 0;
#P connect 3 0 4 0;
#P connect 9 0 3 0;
#P connect 4 0 5 0;
#P connect 4 1 6 0;
#P connect 4 2 7 0;
#P connect 4 3 8 0;
#P window clipboard copycount 18;

#71083

You must be logged in to reply to this topic.