How do I avoid unwanted sounds with the SimpleFM~ object.

Nov 8, 2007 at 8:07pm

How do I avoid unwanted sounds with the SimpleFM~ object.

Hello guys.

I’m trying to get some interesting sounds out of the SimpleFM~ object and as much fun it may be I can’t seem to work out why I have this horrible clicking sound plaguing what I’m trying to achieve.

Can anyone help?

max v2;
#N vpatcher 145 44 1145 772;
#P window setfont “Sans Serif” 18.;
#P comment 406 462 236 196626 Can anyone recommend any fun filters for use with FM synthesis?;
#P window setfont “Sans Serif” 14.;
#P window linecount 1;
#P comment 137 51 100 196622 3);
#P comment 70 486 100 196622 2);
#P user gain~ 96 456 35 51 158 0 1.071519 7.94321 10.;
#P window setfont “Sans Serif” 9.;
#P newex 165 136 53 196617 t b b b b;
#P user ezdac~ 96 551 140 584 0;
#P toggle 165 35 47 0;
#P newex 165 87 52 196617 metro 75;
#P newex 537 45 48 196617 loadbang;
#P newex 160 312 41 196617 * 0.01;
#P newex 160 288 37 196617 + 100;
#P newex 160 267 58 196617 random 80;
#P message 721 410 33 196617 clear;
#P flonum 669 635 35 9 0 0 0 3 0 0 0 221 221 221 222 222 222 0 0 0;
#P newex 598 646 34 196617 + 10.;
#P newex 96 229 27 196617 + 1;
#P window linecount 2;
#P message 537 79 361 196617 1 24 , 2 27 , 3 29 , 4 30 , 5 31 , 6 34 , 7 36 , 8 39 , 9 12 , 10 15 , 11 17 , 12 18 , 13 19 , 14 22 , 15 10 , 16 7;
#P window linecount 1;
#N coll ;
#P newobj 96 258 53 196617 coll;
#P newex 96 208 58 196617 random 15;
#P newex 937 100 32 196617 * 75;
#P message 937 81 14 196617 6;
#P user number~ 608 597 647 612 9 3 3 2 0. 0. 0 0. 20 0. 0 0 0 221 221 221 222 222 222 0 0 0;
#P flonum 614 625 35 9 0 0 0 3 0 0 0 221 221 221 222 222 222 0 0 0;
#P newex 96 291 29 196617 mtof;
#P button 165 113 15 0;
#P number 230 154 35 9 0 0 0 3 0 0 0 221 221 221 222 222 222 0 0 0;
#P message 650 419 68 196617 setdomain $1;
#P user function 650 466 771 555 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. 0;
#X add 450. 0. 0;
#X domain 450.;
#X range 0. 500.;
#X done;
#P newex 674 565 44 196617 line~ 0.;
#P newex 560 680 84 196617 lores~ 200 0.75;
#P newex 96 384 139 196617 simpleFM~;
#P flonum 96 338 60 9 0. 0 1 3 0 0 0 221 221 221 222 222 222 0 0 0;
#P flonum 160 336 60 9 0. 0 1 3 0 0 0 221 221 221 222 222 222 0 0 0;
#P newex 96 409 150 196617 *~;
#P newex 237 371 38 196617 line~;
#P newex 224 346 38 196617 line~;
#P user function 231 233 352 322 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. 0;
#X add 4.128431 0. 0;
#X add 8.25688 14.25 0;
#X add 37.15596 3. 0;
#X add 450. 0. 0;
#X domain 450.;
#X range 0. 24.;
#X done;
#P user function 405 234 526 323 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. 0;
#X add 8.256879 0.625 0;
#X add 189.908188 0. 0;
#X add 371.559509 0. 0;
#X add 425.229431 0. 0;
#X add 437.615784 0. 0;
#X add 437.74646 0. 0;
#X domain 450.;
#X range 0. 1.;
#X done;
#P message 231 172 68 196617 setdomain $1;
#P comment 256 222 77 196617 fmod;
#P comment 447 223 49 196617 amp;
#P newex 96 357 32 196617 sig~;
#P newex 160 358 32 196617 sig~;
#P comment 676 454 100 196617 cutoff env;
#P window setfont “Sans Serif” 14.;
#P comment 70 560 100 196622 1);
#P window setfont “Sans Serif” 18.;
#P window linecount 3;
#P comment 242 32 265 196626 How do I get rid of those annoying clicks yet still retain the same sound?;
#P fasten 41 2 27 0 198 195 101 195;
#P connect 27 0 30 0;
#P connect 30 0 28 0;
#P connect 29 0 28 0;
#P connect 28 0 22 0;
#P connect 22 0 14 0;
#P connect 14 0 4 0;
#P connect 4 0 15 0;
#P connect 15 0 12 0;
#P connect 12 0 42 0;
#P connect 42 0 40 0;
#P connect 42 0 40 1;
#P fasten 41 3 34 0 212 247 165 247;
#P connect 34 0 35 0;
#P connect 35 0 36 0;
#P connect 36 0 13 0;
#P connect 13 0 3 0;
#P connect 3 0 15 1;
#P connect 39 0 38 0;
#P connect 38 0 21 0;
#P connect 21 0 41 0;
#P fasten 9 1 10 0 273 333 229 333;
#P connect 10 0 15 2;
#P fasten 26 0 20 0 942 132 235 132;
#P connect 20 0 7 0;
#P connect 7 0 9 0;
#P fasten 41 0 9 0 170 222 236 222;
#P connect 11 0 12 1;
#P fasten 8 1 11 0 447 358 242 358;
#P fasten 7 0 8 0 236 202 410 202;
#P fasten 41 1 8 0 184 220 410 220;
#P connect 37 0 29 0;
#P connect 31 0 16 1;
#P connect 23 0 31 0;
#P connect 17 0 24 0;
#P connect 32 0 16 2;
#P connect 26 0 19 0;
#P connect 19 0 18 0;
#P connect 33 0 18 0;
#P connect 18 1 17 0;
#P fasten 37 0 25 0 542 69 942 69;
#P connect 25 0 26 0;
#P pop;

Thanks

Rhys

#34530
Nov 8, 2007 at 11:30pm

you have clicks because the domain of your amplitude envelope is longer then your metronome speed.
just add another amplitude envelope for your output whith its domain linked to your metronome speed, or just link your already existing amplitude envelope’s domain to your metronome…

hope it helps

Quote: Dr. Spankenstein wrote on Thu, 08 November 2007 21:07
—————————————————-
> Hello guys.
>
> I’m trying to get some interesting sounds out of the SimpleFM~ object and as much fun it may be I can’t seem to work out why I have this horrible clicking sound plaguing what I’m trying to achieve.
>
> Can anyone help?
>
> max v2;
> #N vpatcher 145 44 1145 772;
> #P window setfont “Sans Serif” 18.;
> #P comment 406 462 236 196626 Can anyone recommend any fun filters for use with FM synthesis?;
> #P window setfont “Sans Serif” 14.;
> #P window linecount 1;
> #P comment 137 51 100 196622 3);
> #P comment 70 486 100 196622 2);
> #P user gain~ 96 456 35 51 158 0 1.071519 7.94321 10.;
> #P window setfont “Sans Serif” 9.;
> #P newex 165 136 53 196617 t b b b b;
> #P user ezdac~ 96 551 140 584 0;
> #P toggle 165 35 47 0;
> #P newex 165 87 52 196617 metro 75;
> #P newex 537 45 48 196617 loadbang;
> #P newex 160 312 41 196617 * 0.01;
> #P newex 160 288 37 196617 + 100;
> #P newex 160 267 58 196617 random 80;
> #P message 721 410 33 196617 clear;
> #P flonum 669 635 35 9 0 0 0 3 0 0 0 221 221 221 222 222 222 0 0 0;
> #P newex 598 646 34 196617 + 10.;
> #P newex 96 229 27 196617 + 1;
> #P window linecount 2;
> #P message 537 79 361 196617 1 24 , 2 27 , 3 29 , 4 30 , 5 31 , 6 34 , 7 36 , 8 39 , 9 12 , 10 15 , 11 17 , 12 18 , 13 19 , 14 22 , 15 10 , 16 7;
> #P window linecount 1;
> #N coll ;
> #P newobj 96 258 53 196617 coll;
> #P newex 96 208 58 196617 random 15;
> #P newex 937 100 32 196617 * 75;
> #P message 937 81 14 196617 6;
> #P user number~ 608 597 647 612 9 3 3 2 0. 0. 0 0. 20 0. 0 0 0 221 221 221 222 222 222 0 0 0;
> #P flonum 614 625 35 9 0 0 0 3 0 0 0 221 221 221 222 222 222 0 0 0;
> #P newex 96 291 29 196617 mtof;
> #P button 165 113 15 0;
> #P number 230 154 35 9 0 0 0 3 0 0 0 221 221 221 222 222 222 0 0 0;
> #P message 650 419 68 196617 setdomain $1;
> #P user function 650 466 771 555 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. 0;
> #X add 450. 0. 0;
> #X domain 450.;
> #X range 0. 500.;
> #X done;
> #P newex 674 565 44 196617 line~ 0.;
> #P newex 560 680 84 196617 lores~ 200 0.75;
> #P newex 96 384 139 196617 simpleFM~;
> #P flonum 96 338 60 9 0. 0 1 3 0 0 0 221 221 221 222 222 222 0 0 0;
> #P flonum 160 336 60 9 0. 0 1 3 0 0 0 221 221 221 222 222 222 0 0 0;
> #P newex 96 409 150 196617 *~;
> #P newex 237 371 38 196617 line~;
> #P newex 224 346 38 196617 line~;
> #P user function 231 233 352 322 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. 0;
> #X add 4.128431 0. 0;
> #X add 8.25688 14.25 0;
> #X add 37.15596 3. 0;
> #X add 450. 0. 0;
> #X domain 450.;
> #X range 0. 24.;
> #X done;
> #P user function 405 234 526 323 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. 0;
> #X add 8.256879 0.625 0;
> #X add 189.908188 0. 0;
> #X add 371.559509 0. 0;
> #X add 425.229431 0. 0;
> #X add 437.615784 0. 0;
> #X add 437.74646 0. 0;
> #X domain 450.;
> #X range 0. 1.;
> #X done;
> #P message 231 172 68 196617 setdomain $1;
> #P comment 256 222 77 196617 fmod;
> #P comment 447 223 49 196617 amp;
> #P newex 96 357 32 196617 sig~;
> #P newex 160 358 32 196617 sig~;
> #P comment 676 454 100 196617 cutoff env;
> #P window setfont “Sans Serif” 14.;
> #P comment 70 560 100 196622 1);
> #P window setfont “Sans Serif” 18.;
> #P window linecount 3;
> #P comment 242 32 265 196626 How do I get rid of those annoying clicks yet still retain the same sound?;
> #P fasten 41 2 27 0 198 195 101 195;
> #P connect 27 0 30 0;
> #P connect 30 0 28 0;
> #P connect 29 0 28 0;
> #P connect 28 0 22 0;
> #P connect 22 0 14 0;
> #P connect 14 0 4 0;
> #P connect 4 0 15 0;
> #P connect 15 0 12 0;
> #P connect 12 0 42 0;
> #P connect 42 0 40 0;
> #P connect 42 0 40 1;
> #P fasten 41 3 34 0 212 247 165 247;
> #P connect 34 0 35 0;
> #P connect 35 0 36 0;
> #P connect 36 0 13 0;
> #P connect 13 0 3 0;
> #P connect 3 0 15 1;
> #P connect 39 0 38 0;
> #P connect 38 0 21 0;
> #P connect 21 0 41 0;
> #P fasten 9 1 10 0 273 333 229 333;
> #P connect 10 0 15 2;
> #P fasten 26 0 20 0 942 132 235 132;
> #P connect 20 0 7 0;
> #P connect 7 0 9 0;
> #P fasten 41 0 9 0 170 222 236 222;
> #P connect 11 0 12 1;
> #P fasten 8 1 11 0 447 358 242 358;
> #P fasten 7 0 8 0 236 202 410 202;
> #P fasten 41 1 8 0 184 220 410 220;
> #P connect 37 0 29 0;
> #P connect 31 0 16 1;
> #P connect 23 0 31 0;
> #P connect 17 0 24 0;
> #P connect 32 0 16 2;
> #P connect 26 0 19 0;
> #P connect 19 0 18 0;
> #P connect 33 0 18 0;
> #P connect 18 1 17 0;
> #P fasten 37 0 25 0 542 69 942 69;
> #P connect 25 0 26 0;
> #P pop;
>
>
> Thanks
>
> Rhys
—————————————————-

#116748
Nov 8, 2007 at 11:58pm

That seems to do the trick, thank you very much. If anyone has any ideas for filtering FM then I’m all ears. So for I have the lores~ and degrade~ objects in combination which sound alright but not exciting enough for my liking.

Thanks again.

Rhys

#116749

You must be logged in to reply to this topic.