Issue with poly~

Jul 4, 2007 at 5:46pm

Issue with poly~

Hi there, I’m working on a simple grain patch and using poly~ for the first
time. For some reason, I cannot seem to make poly~ initiate more than one
voice. When I try and create more than one “Grain” it just clips. I’ve
been monitoring the instance number using busymap into print and it never
goes higher than one. I’ve checked out the poly~ tutorials and my poly~
on/off construction is very similar to the tutorial one.

The first patch below is the main host patch and the second patch is the
actual poly~ and should be named “monograin” w/out the quotes.

any help appreciated, thank you.

Nic

max v2;
#N vpatcher 10 59 1103 648;
#P window setfont “Sans Serif” 9.;
#P window linecount 1;
#P comment 307 269 64 196617 for busymap;
#P number 344 219 35 9 0 0 0 3 0 0 0 221 221 221 222 222 222 0 0 0;
#P button 293 113 15 0;
#P newex 171 443 52 196617 thispoly~;
#P newex 309 247 32 196617 print;
#P message 633 156 58 196617 busymap 1;
#P button 189 78 13 0;
#P newex 165 127 23 196617 abs;
#P flonum 165 172 42 9 0 0 0 3 0 0 0 221 221 221 222 222 222 0 0 0;
#P newex 165 100 54 196617 – 1.;
#P flonum 210 55 42 9 0 0 0 3 0 0 0 221 221 221 222 222 222 0 0 0;
#P flonum 259 57 52 9 0 0 0 3 0 0 0 221 221 221 222 222 222 0 0 0;
#P flonum 165 54 42 9 0 0 0 3 0 0 0 221 221 221 222 222 222 0 0 0;
#P newex 478 322 105 196617 info~ peh;
#P message 426 204 43 196617 replace;
#P newex 220 151 52 196617 pak 0 0 0;
#P window linecount 3;
#P comment 95 32 64 196617 1= from 2= to 3= duration;
#P user ubumenu 331 84 100 196617 0 1 1 0;
#X add Sine;
#X add 2pulse;
#X add 4 pulse;
#X add pulser;
#X add exp1;
#X add exp2;
#X add exp3;
#X add exp4;
#X add tri1;
#X add tri2;
#X add tri3;
#X add tri4;
#X add tri8;
#X prefix_set 0 0 0;
#P user ezdac~ 176 295 220 328 0;
#P window linecount 1;
#P newex 225 188 140 196617 poly~ monograin 30 args peh;
#P newex 426 299 62 196617 buffer~ peh;
#P window linecount 4;
#P comment 543 88 100 196617 play options: frequenciy of grains , where in
buffer to play;
#P flonum 556 361 123 9 0 0 0 3 0 0 0 221 221 221 222 222 222 0 0 0;
#P window linecount 9;
#P comment 728 123 100 196617 issue: the poly doesnt seem to create new
voices ; staying mono. Busymap tells it to output the voices that it is
using and that list goes to print;
#P connect 11 0 14 0;
#P connect 17 0 14 0;
#P connect 14 0 16 0;
#P connect 16 0 15 0;
#P connect 4 0 5 0;
#P connect 13 0 17 0;
#P connect 13 0 14 1;
#P connect 4 0 5 1;
#P connect 11 0 8 0;
#P connect 18 0 4 0;
#P connect 8 0 4 0;
#P connect 13 0 8 1;
#P connect 15 0 12 0;
#P connect 12 0 8 2;
#P connect 12 0 21 0;
#P connect 4 1 19 0;
#P connect 4 2 22 0;
#P connect 6 0 4 1;
#P connect 9 0 3 0;
#P connect 3 1 10 0;
#P connect 10 6 1 0;
#P connect 21 0 18 0;
#P pop;

max v2;
#N vpatcher 260 118 1243 729;
#P window setfont “Sans Serif” 9.;
#P window linecount 1;
#N out 2;
#P newobj 723 501 33 196617 out 2;
#N in 2;
#P newobj 209 55 25 196617 in 2;
#P newex 349 418 91 196617 bensenvelopething;
#P newex 376 313 30 196617 line~;
#P message 376 240 50 196617 0. , 1. $3;
#P window setfont Arial 9.;
#P newex 407 131 75 131137545 prepend set;
#P window setfont “Sans Serif” 9.;
#P newex 719 180 45 196617 loadbang;
#P newex 314 211 73 196617 pack 0 0 0;
#P newex 314 482 27 196617 *~;
#N in 1;
#P newobj 323 57 25 196617 in 1;
#P message 719 387 62 196617 mute 1 , 0;
#P message 872 403 63 196617 mute 0 , 1;
#P newex 719 435 63 196617 thispoly~;
#P button 872 201 15 0;
#P message 493 110 88 196617 line 1 2 3 , buffer;
#P newex 314 100 105 196617 unpack 0 0 0 symbol;
#N out~ 1;
#P newobj 314 504 35 196617 out~ 1;
#P newex 872 126 23 196617 t b;
#P newex 314 267 30 196617 line~;
#P message 314 240 54 196617 $1 , $2 $3;
#P newex 314 353 50 196617 play~ $1;
#P window linecount 3;
#P comment 493 130 64 196617 1= from 2= to 3= duration;
#P window linecount 2;
#P comment 207 78 78 196617 b.e.t. hardwire presets;
#P button 544 245 106 0;
#P window linecount 1;
#N out 1;
#P newobj 484 516 33 196617 out 1;
#P newex 455 363 56 196617 wave~ $2;
#P connect 16 0 10 0;
#P connect 10 0 18 0;
#P connect 18 0 6 0;
#P connect 6 0 7 0;
#P connect 7 0 5 0;
#P fasten 20 0 5 0 412 291 319 291;
#P connect 5 0 17 0;
#P connect 17 0 9 0;
#P connect 23 0 17 1;
#P connect 10 1 18 1;
#P fasten 24 0 23 0 214 75 299 75 299 405 354 405;
#P connect 10 2 18 2;
#P connect 18 0 21 0;
#P connect 21 0 22 0;
#P connect 22 0 23 1;
#P connect 10 3 20 0;
#P connect 22 0 0 0;
#P connect 7 1 2 0;
#P connect 19 0 15 0;
#P fasten 7 1 15 0 339 344 724 344;
#P connect 15 0 13 0;
#P fasten 14 0 13 0 877 427 724 427;
#P connect 13 0 25 0;
#P fasten 16 0 8 0 328 82 877 82;
#P connect 8 0 12 0;
#P fasten 12 0 14 0 877 234 877 234;
#P pop;

#32750
Jul 5, 2007 at 7:30am

Nic Zwart schrieb:
> I’ve checked out the poly~ tutorials and my poly~ on/off construction
> is very similar to the tutorial one.

Maybe you have to concentrate on the difference, very similar isn’t
enough. How do you talk to a different than the first voice? you need a
message for that:
midinote, note or target…

Stefan


Stefan Tiedje————x——-
–_____———–|————–
–(_|_ —-|—–|—–()——-
– _|_)—-|—–()————–
———-()——–www.ccmix.com

#108261
Jul 6, 2007 at 7:54pm

it makes it harder for us to answer your question when you’re posting a patch that contains an abstraction/extern that isn’t native to the max_distro.

please post again, either using a subpatch or an abs. that you’ve included. you should check out using the note/midinote messaging system (info on this in docs/helpfile). otherwise, stefan’s suggestion seems appropriate.

thanks,
jl

#108262

You must be logged in to reply to this topic.