pitch envelope for audio rate sequencing

Dec 27, 2010 at 8:24pm

pitch envelope for audio rate sequencing

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

#54122
Dec 27, 2010 at 8:50pm

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. –
#194744
Dec 27, 2010 at 10:44pm

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.

Attachments:
  1. pitchenvex.maxpat
#194745
Dec 27, 2010 at 11:47pm

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.

#194746
Dec 28, 2010 at 10:02am

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

#194747
Dec 28, 2010 at 2:31pm

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.

#194748

You must be logged in to reply to this topic.