pitch envelope for audio rate sequencing
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…
you could work with buffer~, write a pitch in to it via function, playback with count~/index~
here’s one i made earlier
----------begin_max5_patcher---------- 1522.3oc0ZkrjihCD8rquBBh4zDdp.I1Lys46niNpfEYWZZV7.xUUc2Q2e6i HEXirkvxt7B9fwfDRJymdYpDo7mOMyNo5CRis0ea8EqYy94SylAE0VvrtmmY WD+QZdbC7Z1kj2qR9W64hpXjOXPw4UwYEjlFKjiSekzLnJ9q+Wt8ksrpjUFW PfZ9mZZbdeMkaJp1vxILXbPckJJh880DgPZaa80tpVGyRekVt5kZRJSTqe3y Nysb8aut.thcd1YaKZG7F5OftBg4UucjokaG31x90SO0dYtgXRZUQAojc.n. i0gfA9TACG8ZLxYQqZ5G0dE46b204k0j+aCoL86V0wEqUn8HmKo5iQ6lqi7t YZuFq.k5K5T0WrVt+bN9xszXiZD34BPBb0E+r+Y.I3g8NotCH5PBdWPyIuQp anUkCrUmYuSFvvDR.vJcCAJJ10amTvw2U4UoeijMXBdlcFY4ozGUqIk6def6 KcQ9MokqqIMbNaLqSvGNtwaxYunFajqeYbJQaiUN8NydUMMqprUHjZYaw8CG mK6KrgGJ2vaTFuVQiYUU4Iw0uQanI4Do4AN2MtjVDyHLpPdvNaaGsXcMsjI0 WjxXde7ZSZcUdtTWIp4ME0jQdilRdmlwdE5qcnkzZJC3MRVURkOl0krEVFI2 ZqGj8M07GVt9oCsq1n1pKItb0VCtwW4AAjlNKvgVciX4ov5qubvoj3l4WCnb IoNu5cMfI14pflGEIQN.TFF.qqE7oPRzEDIaitIdEQIT9dMkQzfitd2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xa3FAMlLgLWlPAA PNB6A+sP3hn8gOqvZxjJFcaAPjIDsSTlvbuM..1cp.BOtROgPtCxBugOHVR1 GRS616+jJHH6Gkg3cDEbfaFjbRUOzuxdvPPmx0cPPJdBih5S+A+tm9rpajoy mnaFGqc4MK2oEu20DdO9F6f0D+Ct2VbxHym6gLcUwI9C+5o+GZVKQy. -----------end_max5_patcher-----------
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.
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.
maybe you’ll like the techno~ object, have you checked it out?
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.
Forums > MaxMSP