Forums > MaxMSP

could someone please explain this simple patch to me

April 23, 2008 | 8:07 pm

Hi,

Im trying to understand how this bass drum patch works,

I dont understand what is "excitating" filter resonance, and I dont understand the click sound.

Thanks alot !

max v2;
#N vpatcher 0 0 1024 688;
#P window setfont "Sans Serif" 9.;
#P window linecount 1;
#P message 330 361 39 9109513 1. 200;
#N vpreset 1;
#P preset 237 194 29 17;
#P message 237 159 14 9109513 1;
#P newex 237 132 45 9109513 loadbang;
#P flonum 572 274 35 9 0. 1. 3 139 0 0 0 221 221 221 222 222 222 0 0 0;
#P flonum 635 272 35 9 0. 10. 3 139 0 0 0 221 221 221 222 222 222 0 0 0;
#P flonum 676 271 35 9 0. 1. 3 139 0 0 0 221 221 221 222 222 222 0 0 0;
#P inlet 368 326 15 0;
#P newex 608 572 47 9109513 *~ 0.75;
#P comment 676 252 43 9109513 release;
#P comment 633 251 43 9109513 pitch;
#P newex 676 487 34 9109513 + 0.7;
#P newex 676 458 35 9109513 * 0.2;
#P newex 415 497 27 9109513 *~;
#P newex 635 488 34 9109513 + 36.;
#P newex 635 458 27 9109513 * 36;
#P message 444 340 59 9109513 1. , 0. 200;
#P newex 405 395 38 9109513 line~ 0.;
#P newex 608 520 78 9109513 svf~ 45 0.8;
#P comment 570 255 43 9109513 click;
#P outlet 608 596 15 0;
#P connect 17 0 18 0;
#P connect 18 0 19 0;
#P connect 13 0 20 0;
#P connect 4 0 3 0;
#P connect 3 0 7 0;
#P connect 16 0 7 1;
#P connect 13 0 4 0;
#P connect 3 0 2 0;
#P connect 7 0 12 0;
#P connect 2 0 12 0;
#P connect 12 0 0 0;
#P connect 15 0 5 0;
#P connect 5 0 6 0;
#P connect 6 0 2 1;
#P connect 14 0 8 0;
#P connect 8 0 9 0;
#P connect 9 0 2 2;
#P pop;


April 23, 2008 | 8:16 pm

Quote: petterdass wrote on Wed, 23 April 2008 13:07
—————————————————-
> Hi,
>
> Im trying to understand how this bass drum patch works,
>
> I dont understand what is "excitating" filter resonance, and I dont understand the click sound.
>
>
—————————————————-

Attach a scope~ to the line~ to get a better idea. The message "1., 0. 200" sends the output value of line~ from 0. to 1. immediately, which creates a click. (see also click~) That click excites the resonant filter in svf~. You can also pass that click directly to the output by putting a non-zero number in the number box labeled click.

mz


April 23, 2008 | 8:38 pm

thank you very much :=)


April 23, 2008 | 8:50 pm

ehhm, would anyone please also explain to me why i now get no sound at all?

max v2;
#N vpatcher 0 0 1024 688;
#P button 316 349 32 0;
#N vpreset 1;
#X append 1 2 10 265 731 flonum float 20. ; 11 265 628 flonum float 40. ; 12 267 565 flonum float 1. ;;
#P preset 230 187 29 17;
#P window setfont "Sans Serif" 9.;
#P message 230 152 14 9109513 1;
#P newex 230 125 45 9109513 loadbang;
#P flonum 565 267 35 9 0. 1. 3 139 0 0 0 221 221 221 222 222 222 0 0 0;
#P flonum 628 265 62 9 0. 0 1 139 0 0 0 221 221 221 222 222 222 0 0 0;
#P flonum 731 265 62 9 0. 0 1 139 0 0 0 221 221 221 222 222 222 0 0 0;
#P inlet 398 269 15 0;
#P newex 601 565 27 9109513 *~;
#P comment 729 244 43 9109513 release;
#P comment 626 244 43 9109513 pitch;
#P newex 399 504 27 9109513 *~;
#P message 398 347 59 9109513 1. , 0. 200;
#P newex 398 388 38 9109513 line~ 0.;
#P newex 601 513 53 9109513 svf~;
#P comment 563 248 43 9109513 click;
#P outlet 601 605 15 0;
#P connect 13 0 14 0;
#P connect 14 0 15 0;
#P connect 9 0 16 0;
#P connect 9 0 4 0;
#P connect 4 0 3 0;
#P connect 3 0 5 0;
#P connect 12 0 5 1;
#P connect 3 0 2 0;
#P connect 2 0 8 0;
#P connect 5 0 8 0;
#P connect 8 0 0 0;
#P connect 11 0 2 1;
#P connect 10 0 2 2;
#P pop;


April 23, 2008 | 10:00 pm


>
> ehhm, would anyone please also explain to me why i now get no
> sound at all?

1 you have no dac~ in your patcher
2 the multiplier after svf~ has no value nor argument

Here is a sounding version of the patcher (commented):

max v2;
#N vpatcher 107 79 1158 820;
#P origin 0 9;
#P button 436 266 15 0;
#P user meter~ 474 571 554 584 50 0 168 0 103 103 103 255 153 0 255 0
0 217 217 0 153 186 0 12 3 3 3 3;
#P window setfont "Sans Serif" 9.;
#P flonum 651 518 35 9 0 0 0 3 0 0 0 221 221 221 222 222 222 0 0 0;
#P user meter~ 617 641 697 654 50 0 168 0 103 103 103 255 153 0 255 0
0 217 217 0 153 186 0 12 3 3 3 3;
#P toggle 727 576 15 0;
#P window linecount 1;
#P newex 718 636 31 196617 dac~;
#P button 316 340 32 0;
#N vpreset 1;
#X append 1 2 13 256 731 flonum float 20. ; 14 256 628 flonum float
40. ; 15 258 565 flonum float 1. ;;
#P preset 230 178 29 17;
#P message 230 143 14 196617 1;
#P newex 230 116 45 196617 loadbang;
#P flonum 565 258 35 9 0. 1. 3 3 0 0 0 221 221 221 222 222 222 0 0 0;
#P flonum 628 256 62 9 0. 0 1 3 0 0 0 221 221 221 222 222 222 0 0 0;
#P flonum 731 256 62 9 0. 0 1 3 0 0 0 221 221 221 222 222 222 0 0 0;
#P inlet 398 260 15 0;
#P newex 601 556 35 196617 *~ 1.;
#P comment 729 235 43 196617 release;
#P comment 626 235 43 196617 pitch;
#P newex 399 495 27 196617 *~;
#P message 398 338 59 196617 1. , 0. 200;
#P window linecount 2;
#P newex 398 379 38 196617 line~ 0.;
#P window linecount 1;
#P newex 601 504 53 196617 svf~;
#P comment 563 239 43 196617 click;
#P outlet 590 618 15 0;
#P window linecount 3;
#P comment 692 515 100 196617 this multiplier should have a value in
right inlet or an argument;
#P window linecount 2;
#P comment 757 608 100 196617 you need an output to get sound;
#P comment 461 274 100 196617 hit the bang or click the message box;
#P connect 16 0 17 0;
#P connect 17 0 18 0;
#P connect 12 0 19 0;
#P connect 12 0 7 0;
#P connect 25 0 7 0;
#P connect 7 0 6 0;
#P connect 6 0 8 0;
#P connect 15 0 8 1;
#P connect 5 0 24 0;
#P connect 11 0 3 0;
#P connect 6 0 5 0;
#P connect 8 0 11 0;
#P connect 5 0 11 0;
#P connect 11 0 22 0;
#P connect 14 0 5 1;
#P connect 23 0 11 1;
#P connect 13 0 5 2;
#P connect 21 0 20 0;
#P connect 11 0 20 0;
#P pop;

ric

>
>
> max v2;
> #N vpatcher 0 0 1024 688;
> #P button 316 349 32 0;
> #N vpreset 1;
> #X append 1 2 10 265 731 flonum float 20. ; 11 265 628 flonum
> float 40. ; 12 267 565 flonum float 1. ;;
> #P preset 230 187 29 17;
> #P window setfont "Sans Serif" 9.;
> #P message 230 152 14 9109513 1;
> #P newex 230 125 45 9109513 loadbang;
> #P flonum 565 267 35 9 0. 1. 3 139 0 0 0 221 221 221 222 222 222 0
> 0 0;
> #P flonum 628 265 62 9 0. 0 1 139 0 0 0 221 221 221 222 222 222 0 0 0;
> #P flonum 731 265 62 9 0. 0 1 139 0 0 0 221 221 221 222 222 222 0 0 0;
> #P inlet 398 269 15 0;
> #P newex 601 565 27 9109513 *~;
> #P comment 729 244 43 9109513 release;
> #P comment 626 244 43 9109513 pitch;
> #P newex 399 504 27 9109513 *~;
> #P message 398 347 59 9109513 1. , 0. 200;
> #P newex 398 388 38 9109513 line~ 0.;
> #P newex 601 513 53 9109513 svf~;
> #P comment 563 248 43 9109513 click;
> #P outlet 601 605 15 0;
> #P connect 13 0 14 0;
> #P connect 14 0 15 0;
> #P connect 9 0 16 0;
> #P connect 9 0 4 0;
> #P connect 4 0 3 0;
> #P connect 3 0 5 0;
> #P connect 12 0 5 1;
> #P connect 3 0 2 0;
> #P connect 2 0 8 0;
> #P connect 5 0 8 0;
> #P connect 8 0 0 0;
> #P connect 11 0 2 1;
> #P connect 10 0 2 2;
> #P pop;
>


April 24, 2008 | 7:02 am

Thanks, but I still get no sound :(

I didnt have a dac because it was a subpatch, i had a dac in another window,

but could you please do me a favour?

Save the patch with the values in the numberboxes that is suited for a kickdrum sound.
(using som pattr object, so i also learn this)

Ive tried all variations on the numberboxes, and no sound…

uberthanks ! ! ! !


April 24, 2008 | 7:12 am

ooops, sorry

something i overlooked i think,

now i got sound !

Have a nice day :==)


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