retriggering phase

May 13, 2008 at 11:18am

retriggering phase

I’m working on a kick drum patch using cycle~, a pitch envelope and an amplitude envelope. The problem I’m running into is that I can’t figure out how to retrigger the phase every time it’s banged. This causes every instance to be slightly different, and I’d like it to sound the same every time. Any suggestions?

#37740
May 13, 2008 at 1:10pm

Jay Bodley skrev:
> I’m working on a kick drum patch using cycle~, a pitch envelope and an amplitude envelope. The problem I’m running into is that I can’t figure out how to retrigger the phase every time it’s banged. This causes every instance to be slightly different, and I’d like it to sound the same every time. Any suggestions?
>
Cycle~ has a phase input. Does this not work for you?
Andreas

#130461
May 13, 2008 at 1:55pm

so far i’ve been running phasor~ into the phase input of cycle~ because i seem to get a stronger sound that way. i’ve tried triggering a 0 or 1 into phasor~’s phase input at the same time the note is banged, but with no real difference.

#130462
May 13, 2008 at 2:22pm

Here is what i use, cos~ instead of cycle~ tho..

max v2;
#N vpatcher 15 55 615 455;
#P window setfont “Sans Serif” 9.;
#P window linecount 1;
#P newex 299 127 19 9109513 t b;
#P flonum 299 155 26 9 0. 1. 35 139 0 0 0 255 255 255 222 222 222 0 0 0;
#P newex 299 180 18 9109513 t f;
#P newex 268 239 28 9109513 cos~;
#P newex 268 211 41 9109513 phasor~;
#P comment 247 156 51 9109513 Set Phase;
#P connect 1 0 2 0;
#P connect 5 0 4 0;
#P connect 4 0 3 0;
#P connect 3 0 1 1;
#P pop;

#130463
May 13, 2008 at 2:43pm

Jay Bodley skrev:
> so far i’ve been running phasor~ into the phase input of cycle~ because i seem to get a stronger sound that way. i’ve tried triggering a 0 or 1 into phasor~’s phase input at the same time the note is banged, but with no real difference.
I think I’d need to see a patch to help more at this point.

andreas.

#130464
May 13, 2008 at 7:45pm

thanks, stef…
your way of using cos~ solves my problem. i was also experiencing clicking if i banged another note before the current one had finished. this is also solved.

#130465
May 14, 2008 at 1:49pm

Quote: laotze wrote on Tue, 13 May 2008 13:45
—————————————————-
> thanks, stef…
> your way of using cos~ solves my problem. i was also experiencing clicking if i banged another note before the current one had finished. this is also solved.
—————————————————-

Just out of curiousity, how did you solve that?

#130466
May 15, 2008 at 11:40am

i solved it like this…

#P window setfont “Sans Serif” 18.;
#P window linecount 1;
#P comment 354 568 206 9109522 new patch (cos~);
#P window setfont “Sans Serif” 9.;
#P comment 468 410 70 9109513 amp envelope;
#P comment 377 281 72 9109513 pitch envelope;
#P comment 181 410 100 9109513 amp envelope;
#P newex 334 531 33 9109513 *~ 0.5;
#P toggle 233 39 15 0;
#P newex 233 62 50 9109513 metro 666;
#P message 204 127 14 9109513 1;
#P message 204 102 14 9109513 0;
#P user gswitch2 204 148 39 32 0 0;
#P comment 125 128 79 9109513 new patch (cos~);
#P user ezdac~ 289 48 333 81 0;
#P newex 48 480 36 9109513 cycle~;
#P newex 48 454 41 9109513 phasor~;
#P newex 48 535 33 9109513 *~ 0.5;
#P user scope~ 249 85 354 181 256 3 128 -1. 1. 0 0. 0 0. 102 255 51 135 135 135 0;
#P newex 130 483 27 9109513 line~;
#P newex 75 378 62 9109513 snapshot~ 1.;
#P button 76 278 15 0;
#P button 174 278 15 0;
#P newex 48 510 92 9109513 *~;
#P user function 174 426 274 476 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 22.727272 1. 0;
#X add 62.5 0.64 0;
#X add 119.318184 0.24 0;
#X add 261.363647 0.08 0;
#X add 500. 0. 0;
#X domain 500.;
#X range 0. 1.;
#X done;
#P newex 48 405 27 9109513 * 1.;
#P newex 48 428 28 9109513 mtof;
#P message 65 250 18 9109513 47;
#P newex 75 354 27 9109513 line~;
#P user function 76 298 176 348 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. 1. 0;
#X add 34.090912 0.68 0;
#X domain 500.;
#X range 0. 1.;
#X done;
#P newex 379 412 19 9109513 t b;
#P flonum 379 435 26 9 0. 1. 35 139 0 0 0 255 255 255 222 222 222 0 0 0;
#P newex 379 454 18 9109513 t f;
#P newex 334 480 28 9109513 cos~;
#P newex 334 454 41 9109513 phasor~;
#P newex 416 483 27 9109513 line~;
#P newex 361 378 62 9109513 snapshot~ 1.;
#P button 362 278 15 0;
#P button 460 278 15 0;
#P newex 334 506 92 9109513 *~;
#P user function 460 426 560 476 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 22.727272 1. 0;
#X add 62.5 0.64 0;
#X add 119.318184 0.24 0;
#X add 261.363647 0.08 0;
#X add 500. 0. 0;
#X domain 500.;
#X range 0. 1.;
#X done;
#P newex 334 405 27 9109513 * 1.;
#P newex 334 428 28 9109513 mtof;
#P message 351 250 18 9109513 47;
#P newex 361 354 27 9109513 line~;
#P user function 362 298 462 348 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. 1. 0;
#X add 34.090912 0.68 0;
#X domain 500.;
#X range 0. 1.;
#X done;
#P comment 104 102 99 9109513 original patch (cycle~);
#P comment 90 281 100 9109513 pitch envelope;
#P window setfont “Sans Serif” 18.;
#P comment 76 569 206 9109522 original patch (cycle~);
#P window setfont “Sans Serif” 9.;
#P window linecount 2;
#P comment 405 429 33 9109513 set phase;
#P window linecount 5;
#P comment 356 97 106 9109513 if you examine the attack on each pulse in a wave editor , using cycle~ , then cos~ , you will see the difference.;
#P fasten 12 0 20 0 465 400 384 400;
#P connect 12 0 10 0;
#P connect 7 0 9 1;
#P connect 7 0 13 0;
#P fasten 7 0 12 0 356 273 465 273;
#P connect 15 0 11 1;
#P fasten 10 1 15 0 495 479 421 479;
#P connect 19 0 18 0;
#P connect 20 0 19 0;
#P connect 18 0 16 1;
#P connect 13 0 5 0;
#P connect 6 0 14 0;
#P fasten 5 1 6 0 397 351 366 351;
#P connect 38 1 7 0;
#P connect 11 0 43 0;
#P connect 17 0 11 0;
#P connect 16 0 17 0;
#P connect 8 0 16 0;
#P connect 9 0 8 0;
#P fasten 14 0 9 0 366 401 339 401;
#P hidden connect 43 0 36 1;
#P hidden connect 33 0 36 0;
#P hidden connect 33 0 36 1;
#P hidden connect 43 0 32 0;
#P hidden connect 43 0 36 0;
#P connect 27 0 33 0;
#P hidden connect 27 0 32 0;
#P connect 41 0 38 1;
#P connect 42 0 41 0;
#P hidden connect 40 0 38 0;
#P hidden connect 39 0 38 0;
#P connect 28 0 26 0;
#P connect 23 0 25 1;
#P connect 23 0 29 0;
#P fasten 23 0 28 0 70 273 179 273;
#P connect 31 0 27 1;
#P fasten 26 1 31 0 209 479 135 479;
#P connect 29 0 21 0;
#P connect 22 0 30 0;
#P fasten 21 1 22 0 111 351 80 351;
#P connect 34 0 35 1;
#P connect 38 0 23 0;
#P connect 35 0 27 0;
#P connect 24 0 34 0;
#P connect 25 0 24 0;
#P fasten 30 0 25 0 80 401 53 401;
#P window clipboard copycount 48;

#130467
May 15, 2008 at 1:56pm

Ah great, thanks for sharing.

#130468

You must be logged in to reply to this topic.