Forums > MaxMSP

Wobbly Attack

June 15, 2007 | 5:53 pm

So, ive created this nice kicksynth, but the attack-part of the sound is kind of wobbly. Like the oscillator is cycling kind of.. Ive connected a number box to the cycle~ – phase ofset input, and set it to 0, wich should make sure that the ofset restarts at 0, right?

When doin kicks, its more important than ever to have stable attacks, and making it restart from 0 each time, so it doesnt sound diff on each hit.

Hope someone understands what im waffling about. and perhaps able to give me som pointers to check out.

Thanks!


June 15, 2007 | 6:24 pm

Quote: steffensen wrote on Fri, 15 June 2007 18:53
—————————————————-
> So, ive created this nice kicksynth, but the attack-part of the sound is kind of wobbly. Like the oscillator is cycling kind of.. Ive connected a number box to the cycle~ – phase ofset input, and set it to 0, wich should make sure that the ofset restarts at 0, right?
>
> When doin kicks, its more important than ever to have stable attacks, and making it restart from 0 each time, so it doesnt sound diff on each hit.
>
> Hope someone understands what im waffling about. and perhaps able to give me som pointers to check out.
>
> Thanks!
—————————————————-

you’re right about the phase issue when synthesizing drum sounds, but you will need to post a patch so we can see / hear what the problem is…

j


June 15, 2007 | 6:47 pm

Well, its a really messy patch, as ive made it into a pluggo (instant mess), but here is a little mp3 with me stabbing it a few times. First is a standard kick, and then another one with a bit more FM on the attack comes in. The latter one shows the problem more clearly.


June 15, 2007 | 7:00 pm

spose i could clean it up tho, if its really needed, It involves some extra patches inside, so i hope a zip will do? (windows)


June 15, 2007 | 7:21 pm

You can’t give us just an isolated snippet of the patch? just the bass part…

On 6/15/07, steffensen wrote:
>
> spose i could clean it up tho, if its really needed, It involves some extra patches inside, so i hope a zip will do? (windows)
>


June 15, 2007 | 7:23 pm

Are you sure you want it to start at 0 and not 1 (full level?)

On 15/06/07, steffensen wrote:
>
>
> So, ive created this nice kicksynth, but the attack-part of the sound is
> kind of wobbly. Like the oscillator is cycling kind of.. Ive connected a
> number box to the cycle~ – phase ofset input, and set it to 0, wich should
> make sure that the ofset restarts at 0, right?
>
> When doin kicks, its more important than ever to have stable attacks, and
> making it restart from 0 each time, so it doesnt sound diff on each hit.
>
> Hope someone understands what im waffling about. and perhaps able to give
> me som pointers to check out.
>
> Thanks!
>


http://www.centuryofnoise.com
http://www.perevillez.com


June 15, 2007 | 7:52 pm

Quote: pvillez@gmail.com wrote on Fri, 15 June 2007 13:23
—————————————————-
> Are you sure you want it to start at 0 and not 1 (full level?)
>
> On 15/06/07, steffensen wrote:
> >
> >
> > So, ive created this nice kicksynth, but the attack-part of the sound is
> > kind of wobbly. Like the oscillator is cycling kind of.. Ive connected a
> > number box to the cycle~ – phase ofset input, and set it to 0, wich should
> > make sure that the ofset restarts at 0, right?
> >
> > When doin kicks, its more important than ever to have stable attacks, and
> > making it restart from 0 each time, so it doesnt sound diff on each hit.
> >
> > Hope someone understands what im waffling about. and perhaps able to give
> > me som pointers to check out.
> >
> > Thanks!
> >
>
>
>
> —
> http://www.centuryofnoise.com
> http://www.perevillez.com
>
>
>
—————————————————-

Ive tried both 0 and 1, no change.
Am i doin it right by sending a 1 to the phase ofset input?


June 15, 2007 | 8:04 pm

Here is a "cleaned up" version of the patch.


June 16, 2007 | 9:15 am

bump.


June 16, 2007 | 11:29 am

Am i the only one hearing the "cycling" ?


June 16, 2007 | 5:08 pm

just sending 0. to the phase doesn’t tell the cycle when to restart. you need to reset the phase manually on an attack, one way is to drive the cycle with a phasor and reset the phase with a click (see the patch). be sure to turn overdrive on, if you use a bang to reset.

micha

#P user scope~ 7 301 137 431 256 3 128 -1. 1. 0 0. 0 0. 102 255 51 135 135 135 0;
#P user scope~ 150 301 280 431 256 3 128 -1. 1. 0 0. 0 0. 102 255 51 135 135 135 0;
#P button 169 65 15 0;
#P window setfont "Sans Serif" 9.;
#P window linecount 1;
#P newex 169 92 32 9109513 click~;
#P newex 74 255 36 9109513 cycle~;
#P flonum 101 65 35 9 0 0 0 139 0 0 0 221 221 221 222 222 222 0 0 0;
#P newex 101 216 63 9109513 pong~ 1 0. 1.;
#P newex 101 187 27 9109513 -~;
#P newex 136 148 44 9109513 sah~ 0.5;
#P newex 101 105 52 9109513 phasor~ 1.;
#P comment 189 66 57 9109513 reset phase;
#P connect 4 0 6 1;
#P fasten 4 0 9 0 106 241 155 241;
#P fasten 6 0 10 0 79 287 12 287;
#P connect 8 0 7 0;
#P connect 7 0 2 1;
#P fasten 5 0 1 0 106 92 106 92;
#P connect 1 0 3 0;
#P fasten 1 0 2 0 106 136 141 136;
#P connect 3 0 4 0;
#P fasten 2 0 3 1 141 177 123 177;
#P window clipboard copycount 11;


June 16, 2007 | 6:33 pm

Yes of course! Why didnt i think of that. :S
Thanks for the patch, most helpful!

The "FM cycle~" doesnt seem to be affected by this, but the main cycle~ surely is (most important). Im sure i can work something out thanks to you now tho. :)


June 16, 2007 | 8:59 pm

In the tutorial examples as part of the install there is a good example of
hard sync. Works a treat if you always want the exact start point on each
new event. There used to be an example of it using a drum loop somewhere.

On 16/06/07, micha wrote:
>
>
> just sending 0. to the phase doesn’t tell the cycle when to restart. you
> need to reset the phase manually on an attack, one way is to drive the cycle
> with a phasor and reset the phase with a click (see the patch). be sure to
> turn overdrive on, if you use a bang to reset.
>
> micha
>
> #P user scope~ 7 301 137 431 256 3 128 -1. 1. 0 0. 0 0. 102 255 51 135 135
> 135 0;
> #P user scope~ 150 301 280 431 256 3 128 -1. 1. 0 0. 0 0. 102 255 51 135
> 135 135 0;
> #P button 169 65 15 0;
> #P window setfont "Sans Serif" 9.;
> #P window linecount 1;
> #P newex 169 92 32 9109513 click~;
> #P newex 74 255 36 9109513 cycle~;
> #P flonum 101 65 35 9 0 0 0 139 0 0 0 221 221 221 222 222 222 0 0 0;
> #P newex 101 216 63 9109513 pong~ 1 0. 1.;
> #P newex 101 187 27 9109513 -~;
> #P newex 136 148 44 9109513 sah~ 0.5;
> #P newex 101 105 52 9109513 phasor~ 1.;
> #P comment 189 66 57 9109513 reset phase;
> #P connect 4 0 6 1;
> #P fasten 4 0 9 0 106 241 155 241;
> #P fasten 6 0 10 0 79 287 12 287;
> #P connect 8 0 7 0;
> #P connect 7 0 2 1;
> #P fasten 5 0 1 0 106 92 106 92;
> #P connect 1 0 3 0;
> #P fasten 1 0 2 0 106 136 141 136;
> #P connect 3 0 4 0;
> #P fasten 2 0 3 1 141 177 123 177;
> #P window clipboard copycount 11;
>
>


http://www.centuryofnoise.com
http://www.perevillez.com


June 16, 2007 | 9:11 pm

Ah good tip!
I have done all the tut’s but one easily forgets, thanks for the reminder!

Quote: pvillez@gmail.com wrote on Sat, 16 June 2007 14:59
—————————————————-
> In the tutorial examples as part of the install there is a good example of
> hard sync. Works a treat if you always want the exact start point on each
> new event. There used to be an example of it using a drum loop somewhere.
>
> On 16/06/07, micha wrote:
> >
> >
> > just sending 0. to the phase doesn’t tell the cycle when to restart. you
> > need to reset the phase manually on an attack, one way is to drive the cycle
> > with a phasor and reset the phase with a click (see the patch). be sure to
> > turn overdrive on, if you use a bang to reset.
> >
> > micha
> >
> > #P user scope~ 7 301 137 431 256 3 128 -1. 1. 0 0. 0 0. 102 255 51 135 135
> > 135 0;
> > #P user scope~ 150 301 280 431 256 3 128 -1. 1. 0 0. 0 0. 102 255 51 135
> > 135 135 0;
> > #P button 169 65 15 0;
> > #P window setfont "Sans Serif" 9.;
> > #P window linecount 1;
> > #P newex 169 92 32 9109513 click~;
> > #P newex 74 255 36 9109513 cycle~;
> > #P flonum 101 65 35 9 0 0 0 139 0 0 0 221 221 221 222 222 222 0 0 0;
> > #P newex 101 216 63 9109513 pong~ 1 0. 1.;
> > #P newex 101 187 27 9109513 -~;
> > #P newex 136 148 44 9109513 sah~ 0.5;
> > #P newex 101 105 52 9109513 phasor~ 1.;
> > #P comment 189 66 57 9109513 reset phase;
> > #P connect 4 0 6 1;
> > #P fasten 4 0 9 0 106 241 155 241;
> > #P fasten 6 0 10 0 79 287 12 287;
> > #P connect 8 0 7 0;
> > #P connect 7 0 2 1;
> > #P fasten 5 0 1 0 106 92 106 92;
> > #P connect 1 0 3 0;
> > #P fasten 1 0 2 0 106 136 141 136;
> > #P connect 3 0 4 0;
> > #P fasten 2 0 3 1 141 177 123 177;
> > #P window clipboard copycount 11;
> >
> >
>
>
>
> —
> http://www.centuryofnoise.com
> http://www.perevillez.com
>
>
>
—————————————————-


June 16, 2007 | 10:58 pm

This should work, shouldnt it?
Cant figure out why the FM cycle~ doesnt retrigger..


June 17, 2007 | 5:15 pm

Im glad people dl it, even if it would be nice with some response. :)


June 17, 2007 | 5:29 pm

the bassdrum with the varying attack is probably musically more interesting than the one you will get when you fix your patch.

sorry i could not unrar your file … but i definetly do not want to see a bang or any other messages in an audio envelope.

i sometimes use [play~] together with [line~] which also requires to send messages to both the playing and the enveloping part of the code, but thats not a good idea for hard attacks.


June 17, 2007 | 6:31 pm

Ah allright, here is a text version, hope its working as im not sure if im doin this right. Also, the presets doesnt seem to follow, but at least u can see the routings.

max v2;
#N vpatcher 37 86 1254 865;
#P origin 36 42;
#P window setfont "Sans Serif" 9.;
#P hidden newex 497 623 65 9109513 +~;
#P hidden flonum 497 602 35 9 0. 1. 3 139 0 0 0 221 221 221 222 222 222 0 0 0;
#P hidden button 639 449 15 0;
#P hidden newex 639 472 39 9109513 sig~ 0.;
#P hidden newex 590 531 38 9109513 *~ -1.;
#P hidden newex 590 507 29 9109513 sah~;
#P hidden newex 553 590 65 9109513 pong~ 1 0. 1.;
#P hidden newex 553 456 62 9109513 phasor~ 0.3;
#P flonum 753 645 27 9 0 0 0 139 0 0 0 221 221 221 222 222 222 0 0 0;
#P user meter~ 779 539 792 660 50 0 168 0 103 103 103 255 153 0 255 0 0 217 217 0 153 179 2 12 3 3 3 3;
#P user meter~ 741 539 754 660 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 user gain~ 753 539 27 84 128 1 1.071519 7.94321 90.;
#P window setfont "Sans Serif" 12.;
#P hidden message 865 641 15 9109516 1;
#N vpreset 3;
#X append 1 2 2 240 79 flonum float 60. ; 8 316 79 flonum float 180. ; 9 286 377 flonum float 200. ; 11 317 228 flonum float 1570. ; 15 317 377 flonum float 900. ; 20 230 294 multiSlider list;
#X append 1 2 0. ; 21 230 329 multiSlider list 4. ; 22 317 287 flonum float 0. ; 23 317 323 flonum float 4. ; 30 229 145 multiSlider list 4. ; 31 229 179 multiSlider list 48. ; 32 316 138;
#X append 1 2 flonum float 4. ; 33 316 174 flonum float 48. ; 40 230 443 multiSlider list 0. ; 41 230 478 multiSlider list 14.457831 ; 42 317 436 flonum float 0. ; 43 317 472 flonum float 14. ; 46 254 384;
#X append 1 2 flonum float -0.49 ; 47 285 235 flonum float -0.49 ; 48 284 86 flonum float -0.52 ; 52 317 527 flonum float 0.2 ; 53 317 599 flonum float 60. ; 54 317 563 flonum float 0.8 ; 55 317 635;
#X append 1 2 flonum float 193. ; 57 230 534 multiSlider list 2 ; 59 230 569 multiSlider list 8 ; 61 230 641 multiSlider list 193. ; 63 230 605 multiSlider list 60. ; 71 317 671 flonum float 0. ; 72 286 671;
#X append 1 2 flonum float 1. ; 74 645 798 toggle int 1 ; 80 539 753 gain~ list 90 90. ; 83 645 753 flonum float 90. ; 90 602 497 flonum float 0. ;;
#X append 2 2 2 240 79 flonum float 60. ; 8 316 79 flonum float 180. ; 9 286 377 flonum float 700. ; 11 317 228 flonum float 1570. ; 15 317 377 flonum float 900. ; 20 230 294 multiSlider list;
#X append 2 2 0. ; 21 230 329 multiSlider list 4. ; 22 317 287 flonum float 0. ; 23 317 323 flonum float 4. ; 30 229 145 multiSlider list 4. ; 31 229 179 multiSlider list 48. ; 32 316 138;
#X append 2 2 flonum float 4. ; 33 316 174 flonum float 48. ; 40 230 443 multiSlider list 0. ; 41 230 478 multiSlider list 14.457831 ; 42 317 436 flonum float 0. ; 43 317 472 flonum float 14. ; 46 254 384;
#X append 2 2 flonum float -0.49 ; 47 285 235 flonum float -0.49 ; 48 284 86 flonum float -0.52 ; 52 317 527 flonum float 0.2 ; 53 317 599 flonum float 60. ; 54 317 563 flonum float 0.8 ; 55 317 635;
#X append 2 2 flonum float 193. ; 57 230 534 multiSlider list 2 ; 59 230 569 multiSlider list 8 ; 61 230 641 multiSlider list 193. ; 63 230 605 multiSlider list 60. ; 71 317 671 flonum float 0. ; 72 286 671;
#X append 2 2 flonum float 1. ; 74 645 798 toggle int 1 ; 80 539 753 gain~ list 90 90. ; 83 645 753 flonum float 90. ;;
#X append 3 2 2 240 79 flonum float 60. ; 8 316 79 flonum float 180. ; 9 286 377 flonum float 900. ; 11 317 228 flonum float 1570. ; 15 317 377 flonum float 0. ; 20 230 294 multiSlider list;
#X append 3 2 0. ; 21 230 329 multiSlider list 4. ; 22 317 287 flonum float 0. ; 23 317 323 flonum float 4. ; 30 229 145 multiSlider list 4. ; 31 229 179 multiSlider list 48. ; 32 316 138;
#X append 3 2 flonum float 4. ; 33 316 174 flonum float 48. ; 40 230 443 multiSlider list 0. ; 41 230 478 multiSlider list 18. ; 42 317 436 flonum float 0. ; 43 317 472 flonum float 18. ; 46 254 384;
#X append 3 2 flonum float -0.49 ; 47 285 235 flonum float -0.49 ; 48 284 86 flonum float -0.52 ; 52 317 527 flonum float 0.2 ; 53 317 599 flonum float 60. ; 54 317 563 flonum float 0.8 ; 55 317 635;
#X append 3 2 flonum float 193. ; 57 230 534 multiSlider list 2 ; 59 230 569 multiSlider list 8 ; 61 230 641 multiSlider list 193. ; 63 230 605 multiSlider list 60. ; 71 317 671 flonum float 0. ; 72 286 671;
#X append 3 2 flonum float 1. ; 74 645 798 toggle int 1 ; 80 539 753 gain~ list 90 90. ; 83 645 753 flonum float 90. ; 90 602 497 flonum float 0. ;;
#P preset 865 666 47 27;
#P window setfont "Sans Serif" 9.;
#P hidden newex 768 227 92 9109513 midiparse;
#P hidden newex 768 201 77 9109513 midiin;
#P hidden newex 798 621 60 9109513 loadbang;
#P toggle 798 645 15 0;
#P comment 669 273 40 9109513 Velocity;
#B color 10;
#P flonum 671 286 35 9 0. 1. 3 139 0 0 0 221 221 221 222 222 222 0 0 0;
#P flonum 671 317 35 9 -1. 1. 3 139 0 0 0 221 221 221 222 222 222 0 0 0;
#P hidden newex 963 337 196 9109513 pack 1. 250. 0. 1. 500. 0. 0. 250. 0.;
#P hidden newex 963 368 42 9109513 curve~;
#P comment 672 305 36 9109513 Curve;
#B color 10;
#P hidden newex 832 443 27 9109513 *~;
#P hidden newex 841 304 27 9109513 t b i;
#P hidden newex 858 349 79 9109513 scale 0 127 0. 1.;
#P hidden newex 819 280 32 9109513 sel 0;
#P user multiSlider 605 230 22 85 0. 500. 1 2937 47 0 0 2 0 0 1;
#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 609 217 13 9109513 H;
#B color 10;
#P user multiSlider 641 230 22 85 0. 500. 1 2937 47 0 0 2 0 0 1;
#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 645 217 13 9109513 D;
#B color 10;
#P user multiSlider 569 230 22 85 0. 10. 1 2921 47 0 0 2 0 0 1;
#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 565 217 33 9109513 H Vol;
#B color 10;
#P user multiSlider 534 230 22 85 0. 100. 1 2921 47 0 0 2 0 0 1;
#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 538 217 14 9109513 A;
#B color 10;
#P flonum 635 317 35 9 0. 0 1 139 0 0 0 221 221 221 222 222 222 0 0 0;
#P flonum 563 317 35 9 0. 0 1 139 0 0 0 221 221 221 222 222 222 0 0 0;
#P flonum 599 317 35 9 0. 0 1 139 0 0 0 221 221 221 222 222 222 0 0 0;
#P flonum 527 317 35 9 0. 0 1 139 0 0 0 221 221 221 222 222 222 0 0 0;
#P comment 385 241 31 9109513 Curve;
#B color 10;
#P comment 236 272 33 9109513 Curve;
#B color 10;
#P comment 86 271 36 9109513 Curve;
#B color 10;
#P flonum 86 284 35 9 -1. 1. 3 139 0 0 0 221 221 221 222 222 222 0 0 0;
#P flonum 235 285 35 9 -1. 1. 3 139 0 0 0 221 221 221 222 222 222 0 0 0;
#P flonum 384 254 35 9 -1. 1. 3 139 0 0 0 221 221 221 222 222 222 0 0 0;
#P comment 382 273 41 9109513 FM Freq;
#B color 10;
#P comment 383 304 37 9109513 Amount;
#B color 10;
#P flonum 472 317 35 9 0. 0 1 139 0 0 0 221 221 221 222 222 222 0 0 0;
#P flonum 436 317 35 9 0. 0 1 139 0 0 0 221 221 221 222 222 222 0 0 0;
#P user multiSlider 478 230 22 85 0. 100. 1 2937 47 0 0 2 0 0 1;
#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 user multiSlider 443 230 22 85 0. 100. 1 2937 47 0 0 2 0 0 1;
#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 482 217 13 9109513 D;
#B color 10;
#P hidden newex 465 404 66 9109513 qs.adsr2;
#P comment 447 217 13 9109513 A;
#B color 10;
#P comment 85 303 37 9109513 Amount;
#B color 10;
#P comment 234 304 38 9109513 Amount;
#B color 10;
#P comment 81 227 48 9109513 Main Freq;
#B color 10;
#P flonum 174 316 35 9 0. 0 1 139 0 0 0 221 221 221 222 222 222 0 0 0;
#P flonum 138 316 35 9 0. 0 1 139 0 0 0 221 221 221 222 222 222 0 0 0;
#P user multiSlider 179 229 22 85 0. 500. 1 2937 47 0 0 2 0 0 1;
#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 user multiSlider 145 229 22 85 0. 20. 1 2937 47 0 0 2 0 0 1;
#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 183 216 13 9109513 D;
#B color 10;
#P hidden newex 107 372 66 9109513 qs.adsr2;
#P comment 149 216 13 9109513 A;
#B color 10;
#P window setfont "Sans Serif" 12.;
#P comment 429 197 23 9109516 FM;
#P comment 123 196 31 9109516 Body;
#P comment 578 198 31 9109516 Amp;
#P window setfont "Sans Serif" 9.;
#P flonum 323 317 35 9 0. 0 1 139 0 0 0 221 221 221 222 222 222 0 0 0;
#P flonum 287 317 35 9 0. 0 1 139 0 0 0 221 221 221 222 222 222 0 0 0;
#P user multiSlider 329 230 22 85 0. 20. 1 2937 47 0 0 2 0 0 1;
#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 user multiSlider 294 230 22 85 0. 20. 1 2937 47 0 0 2 0 0 1;
#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 333 217 13 9109513 D;
#B color 10;
#P hidden newex 266 372 66 9109513 qs.adsr2;
#P comment 298 217 13 9109513 A;
#B color 10;
#P hidden newex 389 435 71 9109513 *~;
#P flonum 377 317 51 9 0. 0 1 139 0 0 0 221 221 221 222 222 222 0 0 0;
#P hidden newex 390 404 72 9109513 *~;
#P hidden newex 768 252 51 9109513 unpack 0 0;
#P hidden newex 265 400 36 9109513 *~;
#P flonum 228 317 51 9 0. 0 1 139 0 0 0 221 221 221 222 222 222 0 0 0;
#P hidden newex 115 400 37 9109513 *~;
#P flonum 377 286 51 9 0. 0 1 139 0 0 0 221 221 221 222 222 222 0 0 0;
#P flonum 79 316 51 9 0. 20000. 3 139 0 0 0 221 221 221 222 222 222 0 0 0;
#P hidden newex 390 375 36 9109513 cycle~;
#P hidden newex 751 430 27 9109513 +~;
#P hidden newex 733 719 56 9109513 dac~ 1 2;
#P hidden newex 753 494 89 9109513 *~;
#P hidden newex 752 461 36 9109513 cycle~;
#P flonum 79 240 51 9 0. 20000. 3 139 0 0 0 221 221 221 222 222 222 0 0 0;
#P window setfont "Sans Serif" 12.;
#P comment 261 196 61 9109516 Transient;
#P window setfont "Sans Serif" 9.;
#P hidden newex 922 728 92 9109513 bgcolor 255 255 255;
#P hidden fasten 13 1 28 0 814 352 112 352;
#P hidden connect 28 0 10 0;
#P hidden connect 32 0 28 1;
#P hidden connect 30 0 32 0;
#P hidden connect 8 0 10 1;
#P hidden connect 33 0 28 2;
#P hidden connect 48 0 28 3;
#P hidden connect 31 0 33 0;
#P hidden connect 18 0 12 0;
#P hidden fasten 13 1 18 0 814 358 271 358;
#P hidden connect 22 0 18 1;
#P hidden connect 20 0 22 0;
#P hidden connect 11 0 12 1;
#P hidden connect 23 0 18 2;
#P hidden connect 47 0 18 3;
#P hidden connect 21 0 23 0;
#P hidden connect 14 0 16 0;
#P hidden connect 9 0 7 0;
#P hidden connect 7 0 14 0;
#P hidden connect 91 0 7 1;
#P hidden fasten 40 0 42 0 448 311 441 311;
#P hidden connect 38 0 16 1;
#P hidden connect 15 0 14 1;
#P hidden fasten 13 1 38 0 814 378 470 378;
#P hidden fasten 41 0 43 0 483 311 477 311;
#P hidden fasten 42 0 38 1 441 312 488 312;
#P hidden connect 90 0 91 0;
#P hidden fasten 43 0 38 2 477 312 506 312;
#P hidden connect 46 0 38 3;
#P hidden connect 85 0 91 1;
#P hidden fasten 87 0 85 0 595 570 558 570;
#P hidden connect 84 0 85 0;
#P hidden fasten 84 0 86 0 558 491 595 491;
#P hidden connect 86 0 87 0;
#P hidden connect 63 0 53 0;
#P hidden fasten 88 0 86 1 644 499 614 499;
#P hidden connect 61 0 55 0;
#P hidden connect 66 0 89 0;
#P hidden connect 89 0 88 0;
#P hidden connect 80 0 5 0;
#P hidden connect 74 0 5 0;
#P hidden connect 80 0 81 0;
#P hidden fasten 2 0 6 0 84 263 756 263;
#P hidden fasten 16 0 6 0 394 363 756 363;
#P hidden fasten 10 0 6 0 120 336 756 336;
#P hidden fasten 12 0 6 0 270 346 756 346;
#P hidden connect 6 0 3 0;
#P hidden connect 3 0 4 0;
#P hidden connect 4 0 80 0;
#P connect 80 1 83 0;
#P hidden connect 76 0 77 0;
#P hidden connect 77 0 13 0;
#P hidden connect 91 0 3 1;
#P hidden connect 80 0 82 0;
#P hidden connect 80 0 5 1;
#P hidden connect 75 0 74 0;
#P hidden fasten 13 1 64 0 814 275 824 275;
#P hidden fasten 69 0 67 0 968 415 837 415;
#P hidden connect 67 0 4 1;
#P hidden connect 64 1 66 0;
#P lcolor 7;
#P hidden connect 65 0 67 1;
#P hidden fasten 66 1 65 0 863 325 863 325;
#P hidden connect 75 0 79 0;
#P hidden connect 79 0 78 0;
#P hidden fasten 72 0 65 3 676 304 902 304;
#P hidden fasten 66 0 70 0 846 330 968 330;
#P hidden connect 70 0 69 0;
#P hidden fasten 52 0 70 1 532 333 991 333;
#P hidden fasten 71 0 70 2 676 456 1014 456;
#P lcolor 13;
#P hidden fasten 54 0 70 3 568 375 1037 375;
#P hidden fasten 53 0 70 4 604 389 1060 389;
#P hidden fasten 71 0 70 5 676 439 1083 439;
#P lcolor 13;
#P hidden fasten 55 0 70 7 640 404 1129 404;
#P hidden fasten 71 0 70 8 676 421 1152 421;
#P lcolor 13;
#P pop;


June 17, 2007 | 6:32 pm

Btw, i dont find the "LFO cycling" of the attack very musical atm, i would prefer it to be static.
Im beginning to think its not possible in msp to do this, but im most probly wrong.


June 18, 2007 | 10:12 am

Well, thanks for the help anyway, ill see what i can do.


June 18, 2007 | 11:09 am

i think you need to have a look again at some help files, exp. cycle, sig and phasor. if you connect a signal to both inlets of cycle, you’ll get in your case into trouble as you loose your synced phase.

save this as an abstraction and use it as a substitute for cycle~:

#P window setfont "Sans Serif" 9.;
#P window linecount 1;
#P comment 223 33 56 9109513 sync/bang;
#N comlet sync (bang);
#P inlet 241 57 15 0;
#P newex 241 91 32 9109513 click~;
#P comment 156 33 56 9109513 sync/signal;
#N comlet sync (sig);
#P inlet 174 57 15 0;
#P outlet 78 276 15 0;
#N comlet frequency (sig/float);
#P inlet 105 57 15 0;
#P newex 105 204 63 9109513 pong~ 1 0. 1.;
#P newex 105 175 27 9109513 -~;
#P newex 140 136 44 9109513 sah~ 0.5;
#P newex 105 93 52 9109513 phasor~ 1.;
#P newex 78 240 36 9109513 cycle~;
#P comment 29 223 69 9109513 no signal here!;
#P comment 87 33 51 9109513 frequency;
#P window linecount 4;
#P comment 189 138 188 9109513 note: if you sync by signal (middle inlet) , it will be much more precise than the syncing with a bang!;
#P fasten 13 0 12 0 246 81 246 81;
#P fasten 12 0 5 1 246 125 179 125;
#P connect 4 0 6 0;
#P fasten 4 0 5 0 110 124 145 124;
#P connect 10 0 5 1;
#P connect 3 0 9 0;
#P connect 8 0 4 0;
#P connect 7 0 3 1;
#P connect 6 0 7 0;
#P fasten 5 0 6 1 145 165 127 165;
#P window clipboard copycount 15;


June 18, 2007 | 12:07 pm

Oh thanks a lot! Clever patching there. Works perfectly, but i think the problem lies elsewhere. The FM part of the routing, is acting more like a LFO, and i need to be able to reset it from cycling (each time i hit a key that is). This abstraction of yours should work theoreticly, but it doesnt affect the FM cycle, only the main cycle for some reason.

I am reading the help files etc, but i just cant figure this out.
If anyone would care just to explain why things wont work, i would highly appreciate it.


June 18, 2007 | 12:13 pm

Oh, i used the signal coming out from my main envelope, to retrigger the cycle’s, and it seems to work.
Sorry for acting stupid, i admit im quite the noob. :)


June 18, 2007 | 12:26 pm

If only Edit msg’s had worked after 1 min, i wouldnt have to spam like this. :P
Just wanted to let u know, i used your advice on sig~, wich now converts the "midi in bang" to signal and resets the phase perfectly. Im a happy man, after scratching my head about this for weeks. Thanks a million!


June 18, 2007 | 12:54 pm

On 18 Jun 2007, at 14:26, steffensen wrote:

>
> If only Edit msg’s had worked after 1 min, i wouldnt have to spam
> like this. :P
> Just wanted to let u know, i used your advice on sig~, wich now
> converts the "midi in bang" to signal and resets the phase
> perfectly. Im a happy man, after scratching my head about this for
> weeks. Thanks a million!

sorry, haven’t been following too closely – ignore this message, if
it is beside the point.
but converting midi-messages to signal rate to trigger something,
doesn’t make sense to me.
if your source is a max event (midi messages e.g.) i doubt you will
gain any precision by this conversion.
have a look at the patch below for an easy non-signal rate exmple.
volker.

#P window setfont "Sans Serif" 9.;
#P window linecount 1;
#P comment 208 99 32 196617 ms;
#P flonum 61 147 35 9 0 0 0 3 0 0 0 221 221 221 222 222 222 0 0 0;
#P newex 113 147 21 196617 t 0;
#P flonum 171 98 35 9 0. 0 1 3 0 0 0 221 221 221 222 222 222 0 0 0;
#P newex 154 123 27 196617 f 1.;
#P user led 42 414 17 17 0 150;
#P newex 59 414 30 196617 dac~;
#P user gain~ 62 276 24 100 158 0 1.071519 7.94321 10.;
#P newex 61 174 62 196617 phasor~ 70;
#P button 113 58 30 0;
#P newex 113 92 40 196617 t b b 1;
#P newex 143 302 55 196617 record~ x;
#P hidden newex 310 170 48 196617 loadbang;
#P flonum 297 222 48 9 0. 0 1 3 0 0 0 221 221 221 222 222 222 0 0 0;
#P hidden newex 310 194 54 196617 t b s 1 70;
#P newex 383 225 68 196617 buffer~ x 30;
#P message 209 230 32 196617 set x;
#P user waveform~ 209 244 363 137 3 9;
#W mode move;
#W mouseoutput none;
#W clipdraw 1;
#W unit samples;
#W grid 22.675737;
#W ticks 0;
#W labels 1;
#W vlabels 0;
#W vticks 0;
#W bpm 120. 4.;
#W frgb 33 0 0;
#W brgb 60 178 173;
#W rgb2 0 95 255;
#W rgb3 0 0 0;
#W rgb4 0 0 0;
#W rgb5 146 179 217;
#W rgb6 100 100 100;
#W rgb7 100 100 100;
#P message 154 147 120 196617 0 , 1 $1 -0.7 0 180 -0.7;
#P newex 62 227 61 196617 *~;
#P newex 154 174 42 196617 curve~;
#P newex 62 203 40 196617 cycle~;
#P comment 172 84 53 196617 attack;
#P comment 109 42 100 196617 trigger;
#P hidden connect 18 0 17 0;
#P connect 16 0 17 0;
#P hidden connect 9 3 22 0;
#P connect 22 0 15 0;
#P connect 2 0 4 0;
#P connect 4 0 16 0;
#P connect 16 0 17 1;
#P fasten 15 0 2 1 66 196 97 196;
#P connect 14 0 13 0;
#P connect 13 0 21 0;
#P connect 21 0 15 1;
#P connect 3 0 4 1;
#P connect 4 0 12 0;
#P connect 13 2 12 0;
#P fasten 13 1 19 0 133 119 159 119;
#P connect 19 0 5 0;
#P connect 5 0 3 0;
#P hidden connect 9 2 20 0;
#P connect 20 0 19 1;
#P hidden connect 9 0 7 0;
#P hidden connect 7 0 6 0;
#P connect 10 0 6 1;
#P hidden connect 11 0 9 0;
#P hidden connect 9 1 8 0;
#P window clipboard copycount 24;


June 18, 2007 | 1:27 pm

yepp, of course this is more efficient and will be as precise as mine example. nevertheless, i prefer to do almost everything on the signal level (thanks mxj~!), also the sequencing/triggering. i know that its harder and will eat more cpu, but depending on what you’re after, the preciceness is worth the effort. i do a lot in max msp, but the cutting is later done in a different program. having two (rhythmic) files there running at the same moment, with one or even both drifting away because of that unsteady metro can be really annoying.


June 18, 2007 | 2:41 pm

Quote: steffensen wrote on Mon, 18 June 2007 13:07
—————————————————-
> Oh thanks a lot! Clever patching there. Works perfectly, but i think the problem lies elsewhere. The FM part of the routing, is acting more like a LFO, and i need to be able to reset it from cycling (each time i hit a key that is). This abstraction of yours should work theoreticly, but it doesnt affect the FM cycle, only the main cycle for some reason.
>
> I am reading the help files etc, but i just cant figure this out.
> If anyone would care just to explain why things wont work, i would highly appreciate it.
—————————————————-

I think part of what Micha was trying to demonstrate was that cycle~ does not like to have 2 signal inlets in freq + phase. So you’re better off using the phase inlet to drive the frequency – so it is more like a synchronised oscillator. This way the master phasor~ which drives the phase of cycle~, gets reset and then causes the oscillator to run at the desired frequency.

You should be able to apply this to FM oscillators too…

j


June 18, 2007 | 3:02 pm

Quote: justin wrote on Mon, 18 June 2007 08:41
—————————————————-
> Quote: steffensen wrote on Mon, 18 June 2007 13:07
> —————————————————-
> > Oh thanks a lot! Clever patching there. Works perfectly, but i think the problem lies elsewhere. The FM part of the routing, is acting more like a LFO, and i need to be able to reset it from cycling (each time i hit a key that is). This abstraction of yours should work theoreticly, but it doesnt affect the FM cycle, only the main cycle for some reason.
> >
> > I am reading the help files etc, but i just cant figure this out.
> > If anyone would care just to explain why things wont work, i would highly appreciate it.
> —————————————————-
>
> I think part of what Micha was trying to demonstrate was that cycle~ does not like to have 2 signal inlets in freq + phase. So you’re better off using the phase inlet to drive the frequency – so it is more like a synchronised oscillator. This way the master phasor~ which drives the phase of cycle~, gets reset and then causes the oscillator to run at the desired frequency.
>
> You should be able to apply this to FM oscillators too…
>
> j
—————————————————-

Kinda thought it worked like that, judging by the latest examples here. So thanks a lot for really clarifying things for me. Im really learning a LOT here!
Its funny how it always seems to obvious when uve figured things out.

I just wanted to thank you all for helping me out here, i bet many more than me will earn from readin this thread. :)


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