Forums > MaxMSP

pitch envelope for audio rate sequencing

Dec 27 2010 | 8:24 pm

on trying to create an audiorate sequencer with some synthesis along with it, I am currently struggling with the concept of a pitch envelope.

I try to trigger an adsr~ with the same trigger I (successfully) use for the amplitude adsr~, but it doesn’t give me an envelope, it only seems to detune the cycle~ by a fourth.

In the forums some very good examples exist that trigger with bangs and don’t work at audiorate — I’d like to be able to increase the tempo to rates >10000 bpm to create AM sounds with the sequence itself.

Any help is deeply appreciated. I hope this part of the patch is enough to show you what the problem is…

thank you!

Dec 27 2010 | 8:50 pm

you could work with buffer~, write a pitch in to it via function, playback with count~/index~

here’s one i made earlier

-- Pasted Max Patch, click to expand. --

Dec 27 2010 | 10:44 pm

I did this using midi values in case you want to have the envelope be "in tune" but you can easily edit the patch to not bother. the key here is using depth. it’ll adjust the amount of envelope applied to the pitch. in this case a depth of "12" causes the frequency to rise an octave at it’s peak. if the depth was "7" it would rise a fifth, "4" for a major third, "-12" to go down an octave, and so on. to use this patch turn on dac~, click the bang to initialize the preset values, and then select a note on the keyboard. the phasor~ is being used to trigger adsr~ for example only, you would want to use a more refined method for your own patch. if you need any more help let me know.

  1. pitchenvex.maxpat

Dec 27 2010 | 11:47 pm

thank you very much, I am having some initial problems getting things to work in a logical way, but I will try some more, then get back to you.

Dec 28 2010 | 10:02 am

maybe you’ll like the techno~ object, have you checked it out?

Dec 28 2010 | 2:31 pm

Thanks for pointing out techno~. I have used it before and can see some great benefits, but not in combination with my step sequencer (yet).

After I put in more loadbang messages to make it work out of the box, I will post it here, then maybe you can give me more detailed feedback, probably that’s the best way.

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

Forums > MaxMSP