Forums > MaxMSP

Help with my audio gate

May 3, 2008 | 9:40 pm

Hi,

I’ve attempted to create a gate but I think its wrong. I’ve made it using a switch but I don’t know how to get the audio signal out of the switch. Hopefully the patch will make sense of what I mean. If I have gone about this wrongly how else could I make an audio gate?

Cheers


May 3, 2008 | 10:28 pm

Quote: Scotty220 wrote on Sat, 03 May 2008 14:40
>Hopefully the patch will make sense of what I mean.

It might if there was one.

-C


May 3, 2008 | 10:54 pm

Oooops!

Sorry here it is

max v2;
#N vpatcher -19 15 1261 669;
#P window setfont Tahoma 12.;
#P window linecount 3;
#P comment 724 280 96 19791884 Switch changes when signal goes after -30;
#P user gswitch 682 288 41 32 0 0;
#P window setfont Tahoma 9.;
#P flonum 874 296 35 9 0 0 0 302 0 0 0 221 221 221 222 222 222 0 0 0;
#P window linecount 1;
#P newex 857 313 27 19791881 >;
#P flonum 857 279 35 9 0 0 0 302 0 0 0 221 221 221 222 222 222 0 0 0;
#P user levelmeter~ 857 197 128 64 20 0 0 0 -48 12 0 0 0 0 0;
#X brgb 240 240 240;
#X frgb 200 200 200;
#X rgb2 0 0 0;
#X rgb3 0 0 0;
#X rgb4 0 0 0;
#X rgb5 255 0 0;
#X rgb6 220 100 100;
#X rgb7 220 150 80;
#X rgb8 220 200 100;
#X rgb9 180 210 100;
#X markers 12 6 0 -6 -12 -24 -36 -48 179540688;
#X markersused 8;
#X done;
#P newex 857 122 29 19791881 adc~;
#P comment 912 296 116 19791881 Audio Signal Gating At -30;
#P comment 660 356 88 19791881 Audio signal out???;
#P window setfont Tahoma 12.;
#P comment 889 124 74 19791884 Guitar Input;
#P fasten 6 0 8 0 644 331 644 259 687 259;
#P fasten 3 0 8 2 862 171 717 171;
#P fasten 3 0 4 0 862 175 862 175;
#P connect 4 0 5 0;
#P connect 5 0 6 0;
#P connect 7 0 6 1;
#P pop;


May 3, 2008 | 11:51 pm

On May 3, 2008, at 3:54 PM, Chris Scott wrote:
> Sorry here it is

You should use gate~ instead of the graphic gates.

#P user levelmeter~ 342 173 128 64 20 0 0 0 -48 12 0 0 0 0 0;
#X brgb 240 240 240;
#X frgb 200 200 200;
#X rgb2 0 0 0;
#X rgb3 0 0 0;
#X rgb4 0 0 0;
#X rgb5 255 0 0;
#X rgb6 220 100 100;
#X rgb7 220 150 80;
#X rgb8 220 200 100;
#X rgb9 180 210 100;
#X markers 12 6 0 -6 -12 -24 -36 -48 0;
#X markersused 8;
#X done;
#P toggle 479 326 15 0;
#P window setfont Tahoma 12.;
#P window linecount 3;
#P comment 377 290 96 -1501560820 Switch changes when signal goes
after -30;
#P window setfont Tahoma 9.;
#P window linecount 1;
#P newex 340 152 35 -1501560823 gate~;
#P flonum 512 284 35 9 -96. 0. 3 -22912 0 0 0 221 221 221 222 222 222
0 0 0;
#P newex 479 304 43 -1501560823 >= -30.;
#P window setfont Tahoma 12.;
#P flonum 479 249 54 12 0 0 0 -22912 0 0 0 221 221 221 222 222 222 0 0
0;
#P user levelmeter~ 479 172 128 64 20 0 0 0 -48 12 0 0 0 0 0;
#X brgb 240 240 240;
#X frgb 200 200 200;
#X rgb2 0 0 0;
#X rgb3 0 0 0;
#X rgb4 0 0 0;
#X rgb5 255 0 0;
#X rgb6 220 100 100;
#X rgb7 220 150 80;
#X rgb8 220 200 100;
#X rgb9 180 210 100;
#X markers 12 6 0 -6 -12 -24 -36 -48 0;
#X markersused 8;
#X done;
#P window setfont Tahoma 9.;
#P newex 479 113 29 -1501560823 adc~;
#P comment 550 284 116 -1501560823 Audio Signal Gating At -30;
#P comment 379 153 88 -1501560823 Audio signal out;
#P window setfont Tahoma 12.;
#P comment 511 115 74 -1501560820 Guitar Input;
#P connect 8 0 11 0;
#P connect 3 0 8 1;
#P fasten 3 0 4 0 484 166 484 166;
#P fasten 10 0 8 0 484 359 290 359 290 148 345 148;
#P connect 5 0 6 0;
#P connect 6 0 10 0;
#P connect 7 0 6 1;
#P connect 4 0 5 0;
#P window clipboard copycount 12;

Chris Muir
cbm@well.com

http://www.xfade.com


May 4, 2008 | 12:11 am

Thanks for that! Really helped :)

Cheers


May 4, 2008 | 1:41 am

Sorry just one more thing,

Is there a way of using an envelope to soften attack and decay on the gate? At the moment its kicking in a bit quick and cutting out a bit fast.

Cheers


May 4, 2008 | 2:22 am

On May 3, 2008, at 6:41 PM, Chris Scott wrote:
> Is there a way of using an envelope to soften attack and decay on
> the gate? At the moment its kicking in a bit quick and cutting out a
> bit fast.

Look into line~, or maybe adsr~ to create an envelope, and use
something like *~ as your gain cell.

-C

Chris Muir
cbm@well.com

http://www.xfade.com



f.e
May 4, 2008 | 6:32 am


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