Forums > MaxMSP

Poly~ Urgent help

December 10, 2006 | 12:47 pm

Hi, i’m new to max/msp…
I am trying to make a poly synth using FM synthesis. I have got it to play in poly but it seems as though some of the voices are playing different sounds to the FM synth.

Heres the patcher

Master section

max v2;
#N vpatcher 0 0 1024 692;
#P user gain~ 348 330 24 100 158 0 1.071519 7.94321 10.;
#P window setfont "Sans Serif" 9.;
#P message 369 43 26 9109513 read;
#P newex 438 97 29 9109513 s dur;
#P newex 340 96 41 9109513 s pitch1;
#P message 342 26 28 9109513 clear;
#P message 298 25 27 9109513 start;
#P newex 289 143 39 9109513 del;
#N detonate ;
#X setparam 0 Time 1 0 999999 0 1000 200 0;
#X setparam 1 Pitch 2 0 127 60 12 4 0;
#X setparam 2 Vel 0 0 127 64 12 4 0;
#X setparam 3 Dur 4 1 99999 200 800 200 0;
#X setparam 4 Chan 0 1 16 1 8 1 0;
#X setparam 5 Track 0 1 32 1 8 1 0;
#X setparam 6 X1 0 0 999 0 80 20 0;
#X setparam 7 X2 0 0 999 0 80 20 0;
#X restore;
#X 25 60 64 200 1 1 0 0;
#X 0 32 44 400 1 4 0 0;
#X 400 44 42 400 1 4 0 0;
#X 400 51 43 400 1 4 0 0;
#X 400 56 41 400 1 4 0 0;
#X 400 60 39 400 1 4 0 0;
#X 415 51 37 7135 1 4 0 0;
#X 0 60 38 3690 1 4 0 0;
#X 30 49 25 4665 1 4 0 0;
#X 55 55 40 4140 1 4 0 0;
#X 3460 58 40 1360 1 4 0 0;
#X 1265 56 35 2340 1 4 0 0;
#X 25 48 35 2290 1 4 0 0;
#X stop;
#P newobj 289 69 355 9109513 detonate;
#B color 5;
#P newex 289 97 39 9109513 t b i;
#P message 248 46 29 9109513 next;
#P newex 337 202 62 9109513 prepend note;
#P user ezdac~ 344 475 388 508 0;
#P newex 351 271 114 9109513 poly~ synthpoly_sub3 16;
#P connect 6 0 3 0;
#P fasten 3 0 5 0 253 64 294 64;
#P connect 7 0 5 0;
#P connect 8 0 5 0;
#P connect 11 0 5 0;
#P connect 5 0 4 0;
#P connect 4 0 6 0;
#P connect 4 1 6 1;
#P connect 5 1 2 0;
#P connect 5 1 9 0;
#P connect 12 0 1 0;
#P connect 0 0 12 0;
#P connect 2 0 0 0;
#P connect 5 3 10 0;
#P pop;

Sub section

max v2;
#N vpatcher 0 0 1024 692;
#P window setfont "Sans Serif" 9.;
#P window linecount 1;
#P newex 165 283 28 9109513 mtof;
#P newex 151 203 27 9109513 t i b;
#P newex 276 534 46 9109513 thispoly~;
#N out~ 1;
#P newobj 205 537 34 9109513 out~ 1;
#N in 1;
#P newobj 138 136 23 9109513 in 1;
#P newex 344 217 27 9109513 r dur;
#P window setfont "Fixedwidth Serif" 10.;
#P newex 260 389 32 9240586 sig~;
#P newex 197 389 32 9240586 sig~;
#N vpreset 8;
#X append 1 2 0 252 323 flonum float 5000. ; 3 367 197 flonum float 130.81 ; 4 367 260 flonum float 2.8 ; 9 293 323 function clear ; 9 293 323 function add 0. 6. ; 9 293 323 function add;
#X append 1 2 5000. 0. ; 10 293 447 function clear ; 10 293 447 function add 0. 0.90625 ; 10 293 447 function add 1000. 0.125 ; 10 293 447 function add 3000. 0.015062 ; 10 293 447 function add 5000. 0.;
#X append 1 2 ;;
#X append 2 2 0 252 323 flonum float 5000. ; 3 367 197 flonum float 130.81 ; 4 367 260 flonum float 1.005 ; 9 293 323 function clear ; 9 293 323 function add 0. 7.5 ; 9 293 323 function add;
#X append 2 2 2706.421875 1.875 ; 9 293 323 function add 5000. 0. ; 10 293 447 function clear ; 10 293 447 function add 0. 0.90625 ; 10 293 447 function add 1000. 0.125 ; 10 293 447 function add 3000. 0.015062;
#X append 2 2 ; 10 293 447 function add 5000. 0. ;;
#X append 3 2 0 252 323 flonum float 400. ; 3 367 197 flonum float 130.81 ; 4 367 260 flonum float 0.707 ; 9 293 323 function clear ; 9 293 323 function add 0. 1.5 ; 9 293 323 function add;
#X append 3 2 400. 0. ; 10 293 447 function clear ; 10 293 447 function add 0. 0.6875 ; 10 293 447 function add 40.36697 0.84375 ; 10 293 447 function add 99.082565 0.765625 ; 10 293 447 function add 161.46788 0.09375;
#X append 3 2 ; 10 293 447 function add 400. 0. ;;
#X append 4 2 0 252 323 flonum float 400. ; 3 367 197 flonum float 392. ; 4 367 260 flonum float 1. ; 9 293 323 function clear ; 9 293 323 function add 0. 0. ; 9 293 323 function add;
#X append 4 2 51.376144 5.25 ; 9 293 323 function add 80.73394 4.5 ; 9 293 323 function add 297.247681 0.375 ; 9 293 323 function add 400. 0. ; 10 293 447 function clear ; 10 293 447 function add 0. 0.;
#X append 4 2 ; 10 293 447 function add 51.376144 1. ; 10 293 447 function add 91.743118 0.734375 ; 10 293 447 function add 326.605499 0.6875 ; 10 293 447 function add 400. 0. ;;
#X append 5 2 0 252 323 flonum float 200. ; 3 367 197 flonum float 1046.6 ; 4 367 260 flonum float 1. ; 9 293 323 function clear ; 9 293 323 function add 0. 0. ; 9 293 323 function add;
#X append 5 2 25.688072 5.25 ; 9 293 323 function add 40.36697 4.5 ; 9 293 323 function add 148.62384 0.375 ; 9 293 323 function add 200. 0. ; 10 293 447 function clear ; 10 293 447 function add 0. 0.;
#X append 5 2 ; 10 293 447 function add 25.688072 1. ; 10 293 447 function add 45.871559 0.734375 ; 10 293 447 function add 163.30275 0.6875 ; 10 293 447 function add 200. 0. ;;
#X append 6 2 0 252 323 flonum float 200. ; 3 367 197 flonum float 1046.6 ; 4 367 260 flonum float 1. ; 9 293 323 function clear ; 9 293 323 function add 0. 1.875 ; 9 293 323 function add;
#X append 6 2 51.376144 0.375 ; 9 293 323 function add 200. 0. ; 10 293 447 function clear ; 10 293 447 function add 0. 1. ; 10 293 447 function add 49.541283 0.125 ; 10 293 447 function add 135.779816 0.015625;
#X append 6 2 ; 10 293 447 function add 200. 0. ;;
#X append 7 2 0 252 323 flonum float 2000. ; 3 367 197 flonum float 392. ; 4 367 260 flonum float 4. ; 9 293 323 function clear ; 9 293 323 function add 18.348623 0. ; 9 293 323 function add;
#X append 7 2 477.064209 0.75 ; 9 293 323 function add 1633.027466 0.75 ; 9 293 323 function add 2000. 0. ; 10 293 447 function clear ; 10 293 447 function add 18.348623 0. ; 10 293 447 function add 495.412811 1.;
#X append 7 2 ; 10 293 447 function add 1284.403564 0.78125 ; 10 293 447 function add 1688.073364 0.21875 ; 10 293 447 function add 2000. 0. ;;
#X append 8 2 0 252 323 flonum float 2000. ; 3 367 197 flonum float 61.4 ; 4 367 260 flonum float 2.5 ; 9 293 323 function clear ; 9 293 323 function add 0. 8.25 ; 9 293 323 function add;
#X append 8 2 660.550415 23.25 ; 9 293 323 function add 1045.87146 7.875 ; 9 293 323 function add 1357.798096 10.875 ; 9 293 323 function add 1541.284302 1.875 ; 9 293 323 function add 1743.119141 3. ; 9 293 323 function add;
#X append 8 2 2000. 0. ; 10 293 447 function clear ; 10 293 447 function add 0. 0. ; 10 293 447 function add 36.697247 1. ; 10 293 447 function add 348.62384 0.703125 ; 10 293 447 function add 1357.798096 0.671875;
#X append 8 2 ; 10 293 447 function add 1761.467773 0.078125 ; 10 293 447 function add 2000. 0. ;;
#P preset 230 316 46 28;
#P window setfont "Proportional Serif" 10.;
#P comment 215 302 75 1310730 FM tone settings;
#P button 245 252 15 0;
#P comment 490 382 49 1310730 Amplitude;
#P comment 366 382 77 1310730 Modulation Index;
#P window setfont "Fixedwidth Serif" 10.;
#P message 323 270 80 9240586 setdomain $1;
#P user function 447 293 568 382 1 1 0 0;
#X frgb 82 82 82;
#X brgb 204 204 204;
#X rgb2 85 85 85;
#X rgb3 255 255 255;
#X rgb4 0 0 0;
#X rgb5 0 0 0;
#X add 0. 0.6875 0;
#X add 40.36697 0.84375 0;
#X add 99.082565 0.765625 0;
#X add 161.46788 0.09375 0;
#X add 400. 0. 0;
#X domain 400.;
#X range 0. 1.;
#X done;
#P user function 323 293 444 382 1 1 0 0;
#X frgb 82 82 82;
#X brgb 204 204 204;
#X rgb2 85 85 85;
#X rgb3 255 255 255;
#X rgb4 0 0 0;
#X rgb5 0 0 0;
#X add 0. 1.5 0;
#X add 400. 0. 0;
#X domain 400.;
#X range 0. 24.;
#X done;
#P window setfont "Proportional Serif" 10.;
#P comment 263 353 57 1310730 Harmonicity;
#P window setfont "Fixedwidth Serif" 10.;
#P newex 323 389 38 9240586 line~;
#P newex 336 414 38 9240586 line~;
#P newex 197 439 149 9240586 *~;
#P flonum 260 367 60 10 0. 0 1 141 0 0 0 221 221 221 222 222 222 0 0 0;
#P flonum 197 367 60 10 0. 0 1 141 0 0 0 221 221 221 222 222 222 0 0 0;
#P newex 197 414 136 9240586 simpleFM~;
#P window setfont "Proportional Serif" 10.;
#P comment 199 353 57 1310730 Carrier Freq.;
#P window setfont "Fixedwidth Serif" 10.;
#P flonum 323 252 60 10 0. 0 1 141 0 0 0 221 221 221 222 222 222 0 0 0;
#P connect 20 0 23 0;
#P connect 23 0 24 0;
#P connect 24 0 3 0;
#P connect 3 0 17 0;
#P connect 17 0 2 0;
#P connect 2 0 5 0;
#P connect 5 0 21 0;
#P connect 24 0 14 0;
#P connect 4 0 18 0;
#P connect 18 0 2 1;
#P connect 5 0 22 0;
#P connect 19 0 0 0;
#P connect 0 0 11 0;
#P fasten 14 0 9 0 250 289 328 289;
#P connect 11 0 9 0;
#P fasten 9 1 7 0 365 385 328 385;
#P connect 7 0 2 2;
#P fasten 10 1 6 0 489 410 341 410;
#P connect 6 0 5 1;
#P fasten 14 0 10 0 250 289 452 289;
#P fasten 11 0 10 0 328 289 452 289;

Thanks for any help!


December 10, 2006 | 5:42 pm

Delete the ‘prepend note’ from pitch outlet and the sequence plays .
Grtz, Stan


December 10, 2006 | 6:56 pm

I’m an idiot!!! Thanks so much


December 10, 2006 | 7:52 pm

Just realised that actually stops it from playing in poly, got any other ideas?


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