Forums > MaxMSP

question about mute~

May 26, 2008 | 5:33 pm



Eli
May 26, 2008 | 7:01 pm

What synth?
Try again.


May 26, 2008 | 7:11 pm


May 26, 2008 | 7:27 pm

without seeing your code (i don’t find an attachment either)–
the way i do this is by appending a 1 (sound off) or 0 (sound on) to the control messages to a synth (or effect etc), which i route to a [mute~] connected to an inlet on its soundproducing guts. using [pass~] in the subpatch ensures there is no sound when [mute~] is on.
hope this helps.
cheers, robbert


May 26, 2008 | 8:00 pm


May 26, 2008 | 9:26 pm


May 27, 2008 | 9:04 am


May 27, 2008 | 9:25 am


May 27, 2008 | 11:19 am

Hi!! thank you Stefan and Chris, i really apreciated your help!i will take a
look at home and give you feedback!

cheers
g_morin


May 27, 2008 | 6:07 pm

Hi Chris, thanx for you patch it really helped me to solve this, however, i
think you should have added another outlet to the trigger and connect the
mute~ on it
here goes and works like a bird, when all the sounds fade out the cpu really
stops ;)

cheers

max v2;
#N vpatcher 0 44 1250 626;
#P origin 0 -61;
#P window setfont "Sans Serif" 9.;
#P newex 591 450 52 196617 thispoly~;
#P message 591 426 54 196617 mute 1 , 0;
#P message 1018 420 54 196617 mute 0 , 1;
#P newex 885 159 37 196617 r freq;
#P window linecount 0;
#P message 950 203 102 196617;
#P window linecount 1;
#P newex 957 181 62 196617 prepend set;
#P newex 933 235 32 196617 line~;
#P window setfont "Fixedwidth Serif" 10.;
#P newex 901 235 27 1441802 *~;
#P newex 901 209 46 1441802 cycle~;
#P newex 901 188 34 1441802 * 1.;
#P window setfont "Sans Serif" 9.;
#P newex 957 159 35 196617 r EG6;
#P newex 925 159 29 196617 r c6;
#P newex 710 159 37 196617 r freq;
#P window linecount 0;
#P message 775 203 122 196617;
#P window linecount 1;
#P newex 782 181 62 196617 prepend set;
#P newex 758 235 32 196617 line~;
#P window setfont "Fixedwidth Serif" 10.;
#P newex 726 235 27 1441802 *~;
#P newex 726 209 46 1441802 cycle~;
#P newex 726 188 34 1441802 * 1.;
#P window setfont "Sans Serif" 9.;
#P newex 782 159 35 196617 r EG5;
#P newex 750 159 29 196617 r c5;
#P newex 532 159 37 196617 r freq;
#P window linecount 0;
#P message 597 203 125 196617;
#P window linecount 1;
#P newex 604 181 62 196617 prepend set;
#P newex 580 235 32 196617 line~;
#P window setfont "Fixedwidth Serif" 10.;
#P newex 548 235 27 1441802 *~;
#P newex 548 209 46 1441802 cycle~;
#P newex 548 188 34 1441802 * 1.;
#P window setfont "Sans Serif" 9.;
#P newex 604 159 35 196617 r EG4;
#P newex 572 159 29 196617 r c4;
#P newex 354 159 37 196617 r freq;
#P window linecount 0;
#P message 419 203 120 196617;
#P window linecount 1;
#P newex 426 181 62 196617 prepend set;
#P newex 402 235 32 196617 line~;
#P window setfont "Fixedwidth Serif" 10.;
#P newex 370 235 27 1441802 *~;
#P newex 370 209 46 1441802 cycle~;
#P newex 370 188 34 1441802 * 1.;
#P window setfont "Sans Serif" 9.;
#P newex 426 159 35 196617 r EG3;
#P newex 394 159 29 196617 r c3;
#P newex 179 159 37 196617 r freq;
#P window linecount 0;
#P message 244 203 121 196617;
#P window linecount 1;
#P newex 251 181 62 196617 prepend set;
#P newex 227 235 32 196617 line~;
#P window setfont "Fixedwidth Serif" 10.;
#P newex 195 235 27 1441802 *~;
#P newex 195 209 46 1441802 cycle~;
#P newex 195 188 34 1441802 * 1.;
#P window setfont "Sans Serif" 9.;
#P newex 251 159 35 196617 r EG2;
#P newex 219 159 29 196617 r c2;
#P newex 1 159 37 196617 r freq;
#P window linecount 0;
#P message 66 203 125 196617;
#P window linecount 1;
#P newex 73 181 62 196617 prepend set;
#P newex 49 235 32 196617 line~;
#P window setfont "Fixedwidth Serif" 10.;
#P newex 17 235 27 1441802 *~;
#P newex 17 209 46 1441802 cycle~;
#P newex 17 188 34 1441802 * 1.;
#P window setfont "Sans Serif" 9.;
#P newex 73 159 35 196617 r EG1;
#P newex 41 159 29 196617 r c1;
#P newex 885 303 37 196617 r freq;
#P window linecount 0;
#P message 950 347 103 196617;
#P window linecount 1;
#P newex 963 325 62 196617 prepend set;
#P newex 933 379 32 196617 line~;
#P window setfont "Fixedwidth Serif" 10.;
#P newex 901 379 27 1441802 *~;
#P newex 901 353 46 1441802 cycle~;
#P newex 901 332 34 1441802 * 1.;
#P window setfont "Sans Serif" 9.;
#P newex 963 303 41 196617 r EG12;
#P newex 925 303 35 196617 r c12;
#P newex 710 303 37 196617 r freq;
#P window linecount 0;
#P message 775 347 103 196617;
#P window linecount 1;
#P newex 788 325 62 196617 prepend set;
#P newex 758 379 32 196617 line~;
#P window setfont "Fixedwidth Serif" 10.;
#P newex 726 379 27 1441802 *~;
#P newex 726 353 46 1441802 cycle~;
#P newex 726 332 34 1441802 * 1.;
#P window setfont "Sans Serif" 9.;
#P newex 788 303 41 196617 r EG11;
#P newex 750 303 35 196617 r c11;
#P newex 532 303 37 196617 r freq;
#P window linecount 0;
#P message 597 347 107 196617;
#P window linecount 1;
#P newex 609 325 62 196617 prepend set;
#P newex 580 379 32 196617 line~;
#P window setfont "Fixedwidth Serif" 10.;
#P newex 548 379 27 1441802 *~;
#P newex 548 353 46 1441802 cycle~;
#P newex 548 332 34 1441802 * 1.;
#P window setfont "Sans Serif" 9.;
#P newex 609 303 41 196617 r EG10;
#P newex 572 303 35 196617 r c10;
#P newex 354 303 37 196617 r freq;
#P window linecount 0;
#P message 419 347 104 196617;
#P window linecount 1;
#P newex 426 325 62 196617 prepend set;
#P newex 402 379 32 196617 line~;
#P window setfont "Fixedwidth Serif" 10.;
#P newex 370 379 27 1441802 *~;
#P newex 370 353 46 1441802 cycle~;
#P newex 370 332 34 1441802 * 1.;
#P window setfont "Sans Serif" 9.;
#P newex 426 303 35 196617 r EG9;
#P newex 394 303 29 196617 r c9;
#P newex 179 303 37 196617 r freq;
#P window linecount 0;
#P message 244 347 104 196617;
#P window linecount 1;
#P newex 251 325 62 196617 prepend set;
#P newex 227 379 32 196617 line~;
#P window setfont "Fixedwidth Serif" 10.;
#P newex 195 379 27 1441802 *~;
#P newex 195 353 46 1441802 cycle~;
#P newex 195 332 34 1441802 * 1.;
#P window setfont "Sans Serif" 9.;
#P newex 251 303 35 196617 r EG8;
#P newex 219 303 29 196617 r c8;
#P newex 1 303 37 196617 r freq;
#P window linecount 0;
#P message 66 347 106 196617;
#P window linecount 1;
#P newex 73 325 62 196617 prepend set;
#P newex 18 44 1011 196617 t i b b;
#P newex 49 379 32 196617 line~;
#P flonum 2 130 55 9 0 0 0 3 0 0 0 221 221 221 222 222 222 0 0 0;
#N in 1;
#P newobj 18 21 25 196617 in 1;
#P newex 17 279 52 196617 thispoly~;
#P window setfont "Fixedwidth Serif" 10.;
#P newex 17 379 27 1441802 *~;
#P newex 17 353 46 1441802 cycle~;
#P newex 17 332 34 1441802 * 1.;
#P window setfont "Sans Serif" 9.;
#P newex 195 448 53 196617 *~ 0.125;
#N out~ 1;
#P newobj 195 473 39 196617 out~ 1;
#P newex 73 303 35 196617 r EG7;
#P newex 41 303 29 196617 r c7;
#P newex 18 67 31 196617 mtof;
#P connect 0 0 10 0;
#P connect 0 0 63 0;
#P connect 63 0 64 0;
#P connect 64 0 65 0;
#P connect 65 0 8 0;
#P connect 0 0 5 0;
#P connect 5 0 6 0;
#P connect 6 0 7 0;
#P connect 9 0 12 0;
#P connect 12 0 0 0;
#P fasten 66 0 65 1 54 257 46 257 46 231 39 231;
#P fasten 11 0 7 1 54 401 46 401 46 375 39 375;
#P connect 61 0 63 1;
#P connect 1 0 5 1;
#P connect 68 0 66 0;
#P connect 14 0 11 0;
#P connect 12 1 68 0;
#P connect 67 0 68 0;
#P connect 12 1 14 0;
#P connect 13 0 14 0;
#P connect 62 0 67 0;
#P connect 2 0 13 0;
#P connect 0 0 72 0;
#P connect 72 0 73 0;
#P connect 73 0 74 0;
#P connect 0 0 18 0;
#P connect 18 0 19 0;
#P connect 19 0 20 0;
#P fasten 110 0 4 0 906 263 881 263 881 408 200 408;
#P fasten 101 0 4 0 731 263 706 263 706 408 200 408;
#P fasten 92 0 4 0 553 267 525 267 525 408 200 408;
#P fasten 83 0 4 0 375 265 350 265 350 409 200 409;
#P fasten 74 0 4 0 200 263 175 263 175 409 200 409;
#P fasten 56 0 4 0 906 409 200 409;
#P fasten 47 0 4 0 731 409 200 409;
#P fasten 38 0 4 0 553 408 200 408;
#P fasten 7 0 4 0 22 409 200 409;
#P fasten 29 0 4 0 375 409 200 409;
#P connect 20 0 4 0;
#P fasten 65 0 4 0 22 263 175 263 175 409 200 409;
#P connect 4 0 3 0;
#P fasten 75 0 74 1 232 257 224 257 224 231 217 231;
#P fasten 21 0 20 1 232 401 224 401 224 375 217 375;
#P connect 70 0 72 1;
#P connect 16 0 18 1;
#P connect 77 0 75 0;
#P connect 23 0 21 0;
#P connect 12 1 77 0;
#P connect 76 0 77 0;
#P connect 12 1 23 0;
#P connect 22 0 23 0;
#P connect 71 0 76 0;
#P connect 17 0 22 0;
#P connect 0 0 81 0;
#P connect 81 0 82 0;
#P connect 82 0 83 0;
#P connect 0 0 27 0;
#P connect 27 0 28 0;
#P connect 28 0 29 0;
#P fasten 84 0 83 1 407 257 399 257 399 231 392 231;
#P fasten 30 0 29 1 407 401 399 401 399 375 392 375;
#P connect 79 0 81 1;
#P connect 25 0 27 1;
#P connect 86 0 84 0;
#P connect 32 0 30 0;
#P connect 12 1 86 0;
#P connect 85 0 86 0;
#P connect 12 1 32 0;
#P connect 31 0 32 0;
#P connect 80 0 85 0;
#P connect 26 0 31 0;
#P connect 0 0 90 0;
#P connect 90 0 91 0;
#P connect 91 0 92 0;
#P connect 0 0 36 0;
#P connect 36 0 37 0;
#P connect 37 0 38 0;
#P fasten 93 0 92 1 585 257 577 257 577 231 570 231;
#P fasten 39 0 38 1 585 401 577 401 577 375 570 375;
#P connect 88 0 90 1;
#P connect 34 0 36 1;
#P connect 95 0 93 0;
#P connect 41 0 39 0;
#P connect 111 1 116 0;
#P connect 57 1 116 0;
#P connect 48 1 116 0;
#P connect 102 1 116 0;
#P connect 93 1 116 0;
#P connect 39 1 116 0;
#P connect 30 1 116 0;
#P connect 84 1 116 0;
#P connect 75 1 116 0;
#P connect 21 1 116 0;
#P connect 11 1 116 0;
#P connect 66 1 116 0;
#P connect 116 0 117 0;
#P fasten 115 0 117 0 1023 444 596 444;
#P connect 12 1 95 0;
#P connect 94 0 95 0;
#P connect 12 1 41 0;
#P connect 40 0 41 0;
#P connect 89 0 94 0;
#P connect 35 0 40 0;
#P connect 0 0 99 0;
#P connect 99 0 100 0;
#P connect 100 0 101 0;
#P connect 0 0 45 0;
#P connect 45 0 46 0;
#P connect 46 0 47 0;
#P fasten 102 0 101 1 763 257 755 257 755 231 748 231;
#P fasten 48 0 47 1 763 401 755 401 755 375 748 375;
#P connect 97 0 99 1;
#P connect 43 0 45 1;
#P connect 104 0 102 0;
#P connect 50 0 48 0;
#P connect 12 1 104 0;
#P connect 103 0 104 0;
#P connect 12 1 50 0;
#P connect 49 0 50 0;
#P connect 98 0 103 0;
#P connect 44 0 49 0;
#P connect 0 0 108 0;
#P connect 108 0 109 0;
#P connect 109 0 110 0;
#P connect 0 0 54 0;
#P connect 54 0 55 0;
#P connect 55 0 56 0;
#P fasten 111 0 110 1 938 257 930 257 930 231 923 231;
#P fasten 57 0 56 1 938 401 930 401 930 375 923 375;
#P connect 106 0 108 1;
#P connect 52 0 54 1;
#P connect 113 0 111 0;
#P connect 59 0 57 0;
#P connect 112 0 113 0;
#P connect 12 1 113 0;
#P connect 58 0 59 0;
#P connect 12 1 59 0;
#P connect 107 0 112 0;
#P connect 53 0 58 0;
#P connect 12 2 115 0;
#P pop;


May 27, 2008 | 6:17 pm

But with your approach, won’t the first partial to be finished cause the sound to stop? That may be what you want, but I wouldn’t have thought so.

>you should have added another outlet to the trigger and
>connect the mute~ on it

It’s true that I relied on the r-to-l evaluation in my version. Being explicit with "t" is always a good idea.

-C


May 27, 2008 | 7:33 pm

> But with your approach, won’t the first partial to be finished cause the
sound to stop? That
> may be what you want, but I wouldn’t have thought so.

it seems to independent process mutes for each instance of the subpatch ;)


May 27, 2008 | 7:46 pm

Quote: xgrooover wrote on Tue, 27 May 2008 12:33
—————————————————-
> it seems to independent process mutes for each instance of the subpatch ;)

Right, but not for individual partials in a voice. As it stands now, the first partial to finish will mute a voice, won’t it?

-C


May 27, 2008 | 8:13 pm

yes right, the first partial to finish will mute the voice.

On Tue, May 27, 2008 at 8:46 PM, Chris Muir wrote:

>
> Quote: xgrooover wrote on Tue, 27 May 2008 12:33
> —————————————————-
> > it seems to independent process mutes for each instance of the subpatch
> ;)
>
> Right, but not for individual partials in a voice. As it stands now, the
> first partial to finish will mute a voice, won’t it?
>
> -C
>
>
> –
> Chris Muir
> cbm@well.com
> http://www.xfade.com
>
>
>


May 27, 2008 | 8:24 pm

Quote: xgrooover wrote on Tue, 27 May 2008 13:13
—————————————————-
> yes right, the first partial to finish will mute the voice.

And is that really what you want? The version I posted didn’t have this problem.

-C


May 27, 2008 | 10:19 pm


May 27, 2008 | 10:52 pm


May 28, 2008 | 7:24 am


May 28, 2008 | 8:08 am

On May 28, 2008, at 12:24 AM, grooover morin wrote:

> clarify one thing to me, the partials inside the voice all start and
> end at diferent times? if so your version really makes sense!!

Well it all depends on the data set you feed the partials, but yeah,
harmonics have different envelopes, and, in general, higher harmonics
die off before lower harmonics in the real world.

Most of your data sets all have the same length of envelope, but your
preset five is one example of different length partial envelopes. The
higher harmonics are about half the length of the lower harmonics.

Chris Muir
cbm@well.com

http://www.xfade.com


May 28, 2008 | 9:25 am

Ok!Thank you so much Chris!!
Your help was precious!!

g_morin


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