pitch envelope for audio rate sequencing

k9's icon

hi,
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!
Kai

1605.pitchenvelope.maxpat
Max Patch
Mike S's icon

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

Max Patch
Copy patch and select New From Clipboard in Max.

here's one i made earlier

cudnylon's icon

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.

1606.pitchenvex.maxpat
Max Patch
k9's icon

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.

Timo Rozendal's icon

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

k9's icon

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.