Forums > MaxMSP

Accent on DrumMachine


dnz
September 25, 2006 | 10:06 pm

Hi,

I’m puzzled about how i can create an Accented steps on my drum
machine. Can anyone shed some light? i tried using line~ 1. and
accented by sending 2. to line~. but it doesn’t really work.

any help would be great!
thanks
dnz

#P window setfont "Sans Serif" 9.;
#P window linecount 1;
#P message 251 337 52 196617 set 1_dm;
#P message 165 367 43 196617 replace;
#P newex 166 390 72 196617 buffer~ 1_dm;
#P number 320 26 35 9 0 0 0 3 0 0 0 221 221 221 222 222 222 0 0 0;
#P toggle 277 22 15 0;
#P newex 277 41 37 196617 metro;
#P message 447 358 17 196617 2.;
#P button 447 334 15 0;
#P newex 447 313 50 196617 r accent!;
#P newex 613 473 35 196617 *~ 1.;
#N vpatcher 10 59 610 459;
#P window setfont "Sans Serif" 9.;
#P hidden newex 50 66 30 196617 t b b;
#P hidden button 81 50 15 0;
#P hidden comment 84 71 47 196617 select all;
#P hidden message 81 85 51 196617 0 -1 0 -1;
#P inlet 81 30 15 0;
#P outlet 81 105 15 0;
#P hidden connect 4 0 5 0;
#P connect 1 0 4 0;
#P hidden connect 5 0 2 0;
#P hidden connect 5 1 2 0;
#P hidden connect 4 0 2 0;
#P connect 2 0 0 0;
#P pop;
#P hidden newobj 170 224 62 196617 p selectALL;
#P newex 422 215 70 196617 r 1_Sam_End;
#P newex 496 215 79 196617 r 1_Sam_Start;
#P user ezdac~ 493 590 537 623 0;
#P newex 604 595 69 196617 send~ ch_out;
#N vpatcher 74 424 838 861;
#P window setfont "Sans Serif" 9.;
#P window linecount 1;
#P newex 525 251 70 196617 s 1_Sam_End;
#P window linecount 0;
#P newex 403 252 79 196617 s 1_Sam_Start;
#P user pictslider 50 50 13 76 0 0 0 0 wfknob.pct 1 wfmodes.pct 1 2146
0 0 196608 1. 1.;
#N vpatcher 40 55 278 404;
#P window setfont "Sans Serif" 9.;
#P newex 96 202 27 196617 int;
#N coll ;
#T flags 1 0;
#T 0 mode select;
#T 1 mode loop;
#T 2 mode move;
#T 3 mode draw;
#P newobj 131 255 53 196617 coll;
#P button 75 117 15 0;
#N comlet waveform~ mode messages;
#P inlet 74 164 15 0;
#P newex 113 88 27 196617 < < 1;
#P newex 96 140 40 196617 change;
#P newex 96 164 45 196617 select 0;
#P newex 96 117 27 196617 |;
#P outlet 131 284 15 0;
#P newex 45 62 78 196617 modifiers 100;
#P connect 5 0 7 0;
#P connect 0 3 2 0;
#P connect 7 0 2 0;
#P connect 2 0 4 0;
#P connect 4 0 3 0;
#P connect 3 0 9 0;
#P connect 6 0 9 0;
#P connect 0 4 5 0;
#P connect 5 0 2 1;
#P connect 9 0 8 0;
#P connect 3 1 8 0;
#P connect 8 0 1 0;
#P pop;
#P newobj 59 134 50 196617 p wfkeys;
#P message 525 227 35 196617 set $1;
#P message 403 227 35 196617 set $1;
#P message 281 227 35 196617 set $1;
#P message 161 227 35 196617 set $1;
#P comment 525 89 68 196617 select end ms;
#P comment 403 89 75 196617 select start ms;
#P comment 281 89 83 196617 display length ms;
#P flonum 525 103 49 9 0 0 0 3 0 0 0 221 221 221 222 222 222 0 0 0;
#P flonum 403 103 49 9 0 0 0 3 0 0 0 221 221 221 222 222 222 0 0 0;
#P flonum 281 103 49 9 0 0 0 3 0 0 0 221 221 221 222 222 222 0 0 0;
#P flonum 161 103 49 9 0 0 0 3 0 0 0 221 221 221 222 222 222 0 0 0;
#P comment 161 89 83 196617 display start ms;
#P inlet 508 204 15 0;
#P inlet 386 204 15 0;
#P inlet 264 204 15 0;
#P inlet 144 204 15 0;
#P outlet 558 123 15 0;
#P outlet 436 123 15 0;
#P outlet 314 123 15 0;
#P outlet 59 204 15 0;
#P outlet 194 123 15 0;
#P connect 22 1 21 0;
#P connect 21 0 1 0;
#P connect 17 0 10 0;
#P connect 5 0 17 0;
#P connect 10 0 0 0;
#P connect 18 0 11 0;
#P connect 6 0 18 0;
#P connect 11 0 2 0;
#P connect 19 0 12 0;
#P connect 7 0 19 0;
#P connect 19 0 23 0;
#P connect 12 0 3 0;
#P connect 20 0 13 0;
#P connect 8 0 20 0;
#P connect 20 0 24 0;
#P connect 13 0 4 0;
#P pop;
#P hidden newobj 53 291 84 196617 p WaveFunktions;
#P user waveform~ 53 249 94 37 3 9;
#W mode select;
#W mouseoutput continuous;
#W unit ms;
#W grid 1000.;
#W ticks 0;
#W labels 0;
#W vlabels 0;
#W vticks 1;
#W bpm 120. 4.;
#W frgb 255 255 255;
#W brgb 88 88 88;
#W rgb2 90 194 255;
#W rgb3 0 0 0;
#W rgb4 255 255 255;
#W rgb5 255 255 255;
#W rgb6 100 100 100;
#W rgb7 100 100 100;
#P message 796 66 52 196617 set 1_dm;
#P message 815 141 58 196617 rgb1 9 9 9;
#P message 815 123 92 196617 frgb 255 255 255;
#P message 815 105 75 196617 brgb 88 88 88;
#P newex 815 160 88 196617 bgcolor 88 88 88;
#P user meter~ 70 153 87 247 50 0 168 0 88 88 88 255 153 0 255 0 0 217
217 0 153 186 0 12 3 3 3 3;
#P toggle 90 153 19 0;
#N comlet presets;
#P inlet 683 21 15 0;
#N vpreset 1;
#P preset 54 332 66 26;
#P button 71 316 15 0;
#P button 54 316 15 0;
#P user multiSlider 54 153 17 94 0. 1. 1 2937 47 0 0 2 0 0 0;
#M frgb 247 247 247;
#M brgb 88 88 88;
#M rgb2 127 127 127;
#M rgb3 0 0 0;
#M rgb4 37 52 91;
#M rgb5 74 105 182;
#M rgb6 112 158 18;
#M rgb7 149 211 110;
#M rgb8 187 9 201;
#M rgb9 224 62 37;
#M rgb10 7 114 128;
#P newex 604 550 35 196617 *~ 0.;
#P window setfont "Sans Serif" 14.;
#P user ubumenu 54 87 31 196622 1 0 0 1;
#X setrgb 255 255 255 88 88 88 88 88 88 4 4 4 0 0 0 112 112 112;
#X add -;
#X add I;
#X add II;
#X add III;
#X add IV;
#X add V;
#X add VI;
#X add VII;
#X add VIII;
#X prefix_set 0 0 0;
#X pattrmode 1;
#P window setfont "Sans Serif" 9.;
#P newex 739 24 48 196617 loadbang;
#P message 739 46 14 196617 1;
#P user led 86 90 17 17 3 150;
#P message 838 47 14 196617 1;
#P newex 796 24 51 196617 loadmess;
#P message 823 47 14 196617 0;
#P message 796 47 26 196617 127;
#P message 495 113 14 196617 1;
#P message 473 113 14 196617 2;
#P newex 473 90 32 196617 sel 1;
#P button 489 191 15 0;
#P flonum 489 249 55 9 0 0 0 3 0 0 0 221 221 221 222 222 222 0 0 0;
#P number 625 268 17 9 0 0 160 3 0 0 0 221 221 221 222 222 222 0 0 0;
#P newex 625 246 27 196617 < 0.;
#P newex 473 139 38 196617 gate 2;
#P button 355 111 15 0;
#P newex 355 89 47 196617 r 1_info;
#P newex 355 134 105 196617 info~ 1_dm;
#P button 414 192 15 0;
#P flonum 414 249 73 9 0 0 0 3 0 0 0 221 221 221 222 222 222 0 0 0;
#P hidden newex 215 130 67 196617 s 1drum_cat;
#P window setfont "Sans Serif" 12.;
#P user ubumenu 54 111 94 196620 0 0 0 1;
#X setrgb 255 255 255 88 88 88 9 9 9 4 4 4 141 141 141 112 112 112;
#X prefix_set 0 1 "Olympus Mons:/Sounds/_PERCUSSION Samples/Drums_set/"
0;
#X pattrmode 1;
#P window setfont "Sans Serif" 9.;
#P hidden newex 215 91 61 196617 r drum_cat;
#P hidden newex 293 130 37 196617 s 1dm;
#P hidden newex 293 91 56 196617 r 1dm_sel;
#P window setfont "Sans Serif" 12.;
#P user ubumenu 54 132 94 196620 0 0 0 1;
#X setrgb 255 255 255 88 88 88 9 9 9 4 4 4 141 141 141 112 112 112;
#X prefix_set 0 1 "Olympus Mons:/Sounds/_PERCUSSION
Samples/Drums_set/EasternHop-1/" 0;
#X pattrmode 1;
#P window setfont "Sans Serif" 9.;
#P hidden newex 293 174 59 196617 s 1lpf_RES;
#P hidden newex 215 173 54 196617 s 1lpf_CO;
#P newex 748 322 59 196617 r 1lpf_RES;
#P newex 720 300 54 196617 r 1lpf_CO;
#N vpatcher 372 254 929 679;
#P window setfont "Sans Serif" 9.;
#P message 286 155 41 196617 $1 250;
#P newex 286 172 40 196617 line 0.;
#P message 106 155 41 196617 $1 250;
#P newex 106 172 55 196617 line 22050;
#P flonum 286 127 80 9 0 0 0 3 0 0 0 221 221 221 222 222 222 0 0 0;
#P newex 286 70 38 196617 / 127.;
#P newex 286 108 32 196617 + 0.5;
#P newex 286 89 39 196617 * 19.5;
#P newex 106 51 29 196617 + 30;
#P flonum 106 127 80 9 0 0 0 3 0 0 0 221 221 221 222 222 222 0 0 0;
#P newex 106 108 51 196617 * 15000.;
#P newex 106 89 35 196617 pow 4;
#P newex 106 70 38 196617 / 157.;
#P window setfont Helvetica 9.;
#P user filtergraph~ 46 210 100 50 21 9 20. 22050. 0.0625 16. 0 1 1 0 0
1 1;
#X frgb 170 170 170;
#X brgb 210 210 210;
#X rgb2 0 0 0;
#X rgb3 130 130 130;
#X rgb4 0 0 0;
#X rgb5 118 121 166;
#X rgb6 122 74 74;
#X rgb7 255 22 22;
#X linmarkers 5512.5 11025. 16537.5;
#X logmarkers 50. 500. 5000.;
#X nfilters 1;
#X setfilter 0 1 0 0 0 15000. 1. 0.5 30. 19845. 0.0625 16. 0.5 25.;
#X done;
#P window setfont "Sans Serif" 9.;
#P newex 33 320 79 196617 biquad~;
#N comlet (float) 0-127 resonance;
#P inlet 286 26 15 0;
#N comlet (float) 0-127 cutoff;
#P inlet 106 27 15 0;
#N comlet (signal) output1;
#P outlet 33 382 15 0;
#N comlet (signal) input1;
#P inlet 33 26 15 0;
#P connect 0 0 4 0;
#P connect 4 0 1 0;
#P fasten 5 0 4 1 51 265 51 265;
#P connect 2 0 10 0;
#P connect 10 0 6 0;
#P connect 6 0 7 0;
#P connect 7 0 8 0;
#P connect 8 0 9 0;
#P connect 9 0 16 0;
#P connect 16 0 15 0;
#P connect 15 0 5 5;
#P fasten 17 0 5 7 291 199 135 199;
#P connect 3 0 13 0;
#P connect 13 0 11 0;
#P connect 11 0 12 0;
#P connect 12 0 14 0;
#P connect 14 0 18 0;
#P connect 18 0 17 0;
#P pop;
#P newobj 692 354 66 196617 p lpf;
#N comlet speed;
#P inlet 625 21 15 0;
#P flonum 625 218 35 9 0 0 0 3 0 0 0 221 221 221 222 222 222 0 0 0;
#N comlet startloop;
#P inlet 509 21 15 0;
#P newex 569 40 41 196617 r start;
#P newex 509 40 32 196617 sel 1;
#P toggle 569 70 15 0;
#P newex 569 270 27 196617 sig~;
#P newex 569 295 75 196617 groove~ 1_dm;
#P window setfont "Sans Serif" 12.;
#P comment 117 172 28 196620 RES;
#B color 1;
#P background;
#P comment 91 172 24 196620 CO;
#B color 1;
#P background;
#P user dial 120 188 27 27 128 1 0 0 7 270 1 1. 255 255 255 88 88 88
120 120 120 225 225 225 0 0 0 0 0 0;
#P user dial 90 188 27 27 128 1 0 0 7 270 1 1. 255 255 255 88 88 88 120
120 120 225 225 225 0 0 0 0 0 0;
#P window setfont "Sans Serif" 10.;
#P comment 90 316 24 196618 LPF;
#P window setfont "Sans Serif" 9.;
#P newex 166 25 88 196617 bgcolor 88 88 88;
#P window setfont "Sans Serif" 12.;
#P flonum 110 153 37 12 0 0 32 3 255 255 255 88 88 88 222 222 222 0 0 0;
#P user hint 111 153 147 171 Speed 1000 100 0 65535 65535 52428 9 3 0 1
0 0 0;
#P connect 71 0 68 1;
#P connect 68 0 48 0;
#P fasten 16 0 68 0 603 371;
#P connect 77 0 61 0;
#P connect 76 0 75 0;
#P connect 72 0 36 0;
#P connect 70 0 71 0;
#P hidden connect 21 0 67 0;
#P hidden connect 21 0 23 0;
#P connect 42 0 43 0;
#P connect 42 0 41 0;
#P connect 42 0 60 0;
#P connect 42 0 40 0;
#P connect 18 0 16 2;
#P connect 46 0 45 0;
#P connect 17 0 16 1;
#P fasten 8 0 16 0 574 320 697 320;
#P fasten 27 0 8 0 419 289 574 289;
#P fasten 27 0 8 2 600 264;
#P hidden fasten 49 0 48 1 59 545 634 545;
#P connect 33 0 34 0;
#P fasten 14 0 9 0 630 244 574 244;
#P connect 14 0 33 0;
#P hidden fasten 1 0 14 0 115 209 630 209;
#P connect 15 0 14 0;
#P hidden fasten 48 0 55 0 609 577 49 577 49 154 75 154;
#P connect 48 0 64 0;
#P connect 48 0 64 1;
#P connect 48 0 63 0;
#P connect 35 0 8 1;
#P fasten 35 0 8 0 494 289 574 289;
#P connect 9 0 8 0;
#P connect 10 0 9 0;
#P connect 12 0 10 0;
#P hidden connect 13 0 44 0;
#P connect 13 0 11 0;
#P fasten 11 0 32 1 514 131 506 131;
#P connect 37 1 39 0;
#P connect 65 0 35 0;
#P connect 36 0 35 0;
#P fasten 32 0 36 0 478 167 494 167;
#P fasten 39 0 32 0 500 133 478 133;
#P connect 38 0 32 0;
#P connect 37 0 38 0;
#P fasten 34 0 37 0 630 287 701 287 701 66 478 66;
#P connect 69 0 70 0;
#P connect 66 0 27 0;
#P fasten 29 6 27 0 438 163 419 163;
#P connect 28 0 27 0;
#P fasten 32 1 28 0 506 167 419 167;
#P connect 31 0 29 0;
#P connect 30 0 31 0;
#P connect 74 0 72 1;
#P hidden connect 5 0 20 0;
#P connect 73 0 72 0;
#P hidden connect 4 0 19 0;
#P hidden connect 25 0 26 0;
#P hidden connect 67 0 61 4;
#P hidden connect 61 3 62 3;
#P hidden fasten 41 0 5 0 828 67 125 67;
#P hidden connect 52 0 4 0;
#P hidden connect 52 0 1 0;
#P hidden connect 52 0 5 0;
#P hidden connect 62 4 61 3;
#P hidden fasten 43 0 1 0 843 86 115 86;
#P hidden connect 61 2 62 2;
#P hidden connect 62 3 61 2;
#P hidden fasten 40 0 4 0 801 67 95 67;
#P hidden connect 61 1 62 1;
#P hidden connect 62 2 61 1;
#P hidden fasten 53 0 52 0 688 67 59 67;
#P hidden connect 22 0 21 0;
#P hidden connect 24 0 25 0;
#P hidden fasten 45 0 47 0 744 69 59 69;
#P hidden connect 61 0 62 0;
#P hidden fasten 60 0 61 0 801 85 58 85;
#P hidden connect 62 1 61 0;
#P hidden connect 62 0 61 0;
#P window clipboard copycount 78;


September 26, 2006 | 7:28 am

On 26 sept. 06, at 00:06, Sonic Kooking wrote:

> I’m puzzled about how i can create an Accented steps on my drum
> machine. Can anyone shed some light? i tried using line~ 1. and
> accented by sending 2. to line~. but it doesn’t really work.

You could use [adsr~ ] to shape the enveloppe of your samples, and use
a different enveloppe (louder, faster attack) for accented notes.

_____________________________
Patrick Delges

Centre de Recherches et de Formation Musicales de Wallonie asbl

http://users.skynet.be/crfmw/max


September 26, 2006 | 8:42 am

Sonic Kooking wrote:
> I’m puzzled about how i can create an Accented steps on my drum machine.
> Can anyone shed some light? i tried using line~ 1. and accented by
> sending 2. to line~. but it doesn’t really work.

You send the 2. once (to *~, not to line~ btw), but don’t go back, it
will remain there till you close the patch. It works, but you accent
everything, which doesn’t make any difference…

You should learn to track down this kind of problems yourself. I don’t
know of any online/book instructions how to learn such a thing, but its
an essential skill for maxin’. (Maybe others know of resources.)

Most important: don’t give up.
Usually there is a reason for every behaviour.

Stefan


Stefan Tiedje————x——-
–_____———–|————–
–(_|_ —-|—–|—–()——-
– _|_)—-|—–()————–
———-()——–www.ccmix.com



dnz
September 26, 2006 | 9:45 am

ah!… argh!… *~ not line~ !

thanks will try.

;-)

dnz
Am 26.09.2006 um 10:42 schrieb Stefan Tiedje:

> Sonic Kooking wrote:
>> I’m puzzled about how i can create an Accented steps on my drum
>> machine. Can anyone shed some light? i tried using line~ 1. and
>> accented by sending 2. to line~. but it doesn’t really work.
>
> You send the 2. once (to *~, not to line~ btw), but don’t go back, it
> will remain there till you close the patch. It works, but you accent
> everything, which doesn’t make any difference…
>
> You should learn to track down this kind of problems yourself. I don’t
> know of any online/book instructions how to learn such a thing, but
> its an essential skill for maxin’. (Maybe others know of resources.)
>
> Most important: don’t give up.
> Usually there is a reason for every behaviour.
>
> Stefan
>
> —
> Stefan Tiedje————x——-
> –_____———–|————–
> –(_|_ —-|—–|—–()——-
> — _|_)—-|—–()————–
> ———-()——–www.ccmix.com
>
>


September 26, 2006 | 1:05 pm

you need some kind of coll or data table to say which hits are accented. then read that table as each beat is triggered.

metro can be annoyingly unstable, be warned, but it does for simple patches

max v2;
#N vpatcher 10 59 981 667;
#P window setfont "Sans Serif" 9.;
#P comment 715 68 100 196617 start;
#P flonum 679 140 35 9 0 0 0 3 0 0 0 221 221 221 222 222 222 0 0 0;
#P newex 646 300 32 196617 *~ 1;
#P newex 337 386 40 196617 / 127.;
#P newex 604 300 32 196617 *~ 1;
#P newex 661 194 38 196617 sig~ 1;
#P user ezdac~ 593 362 637 395 0;
#P message 595 179 51 196617 startloop;
#P newex 604 231 97 196617 groove~ drumhit 2;
#P message 778 115 43 196617 replace;
#P number 680 91 35 9 0 0 0 3 0 0 0 221 221 221 222 222 222 0 0 0;
#P toggle 680 67 15 0;
#P user multiSlider 336 86 218 30 0. 16. 1 2664 15 0 0 2 0 0 0;
#M frgb 0 0 0;
#M brgb 255 255 255;
#M rgb2 127 127 127;
#M rgb3 0 0 0;
#M rgb4 37 52 91;
#M rgb5 74 105 182;
#M rgb6 112 158 18;
#M rgb7 149 211 110;
#M rgb8 187 9 201;
#M rgb9 224 62 37;
#M rgb10 7 114 128;
#P newex 337 318 52 196617 listfunnel;
#N coll accents;
#P newobj 337 350 63 196617 coll accents;
#N counter 0 15;
#X flags 0 0;
#P newobj 578 106 68 196617 counter 0 15;
#P newex 578 83 52 196617 metro 75;
#P newex 679 113 91 196617 buffer~ drumhit 2;
#P user multiSlider 337 126 218 122 0. 127. 16 2665 15 0 1 2 0 50 0;
#M frgb 0 0 0;
#M brgb 255 255 255;
#M rgb2 127 127 127;
#M rgb3 0 0 0;
#M rgb4 37 52 91;
#M rgb5 74 105 182;
#M rgb6 112 158 18;
#M rgb7 149 211 110;
#M rgb8 187 9 201;
#M rgb9 224 62 37;
#M rgb10 7 114 128;
#P comment 718 138 100 196617 pitch;
#P comment 718 92 100 196617 beat divisions (ms);
#P user panel 669 48 166 129;
#X brgb 191 191 191;
#X frgb 0 0 0;
#X border 1;
#X rounded 0;
#X shadow 0;
#X done;
#P connect 6 0 9 0;
#P connect 3 0 8 0;
#P connect 6 0 7 0;
#P connect 8 0 7 0;
#P connect 7 0 18 0;
#P connect 10 0 5 0;
#P connect 5 0 6 0;
#P connect 17 0 15 0;
#P connect 6 0 14 0;
#P connect 14 0 13 0;
#P connect 16 0 13 0;
#P connect 13 0 17 0;
#P connect 11 0 5 1;
#P connect 18 0 17 1;
#P connect 19 0 15 1;
#P connect 13 1 19 0;
#P connect 20 0 16 0;
#P connect 18 0 19 1;
#P connect 12 0 4 0;
#P pop;


September 26, 2006 | 1:17 pm

error! the buffer~ object should have another 2 on the ned to make it stereo

buffer~ drumhit 1000 2



dnz
September 28, 2006 | 12:29 pm

thannks for the patch!!

d
Am 26.09.2006 um 15:17 schrieb bin ray:

>
> error! the buffer~ object should have another 2 on the ned to make it
> stereo
>
> buffer~ drumhit 1000 2
>


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