LETS TALK ABOUT: ADSR and why simple things are sometimes not simple



as you may or not know i am working on a pedal emulation. And after a few days of fooling with samplers and stuff i finally got to a point where i could start thinking and patching volume envelopes. That part of a synth or a patch that you seem to put off until last simply because well, it’s usually the last thing before the dac~
well i went down a rabbit hole of insanity with ADSRs


i investigated a bunch of them
Vanilla. Chocolate the whole gamut
eadsr~ looked cool but i think the person who made the help patch was disturbed.
It disturbed me. I found really nice ones that behaved and even looked like what you would expect but they all want a bang or a midi note to envelope sound


Not sure what you expect of the envelope you are looking for?

Have also researched a bunch and actually just end up using Millers adsr example. And then multiply it with itself to get a curved envelope shape.


something that does operations like an envelope without a MIDI note to trigger it


You can trigger the envelope with out a midi note like this. Well it simulates midi note on/off, but it is not mdi note:


Note on turns it on and the delayed bang turns the note off again after X ms.

Could that do it? One could for example in a sequencer with 16 steps have 1 of these mechanisms for each step and set note length for each step.


no it needs a bang
so what i really want/need is not a traditional ADSR because if we are not using midi to bang that note on/off how does it do it? Amplitude? I found threshold~ or perhaps env~ with a < …should not be this hard


Using amplitude to trigger the bang would be an envelope follower:

You set a threshold and when the audio input is above that threshold, the envelope follower sends out a bang or a trigger that you can use to trigger the envelope. That is a classic envelope follower.


Here is one I made, this one got attack/decay stages:


Infinite Jets Emulation UPDATE

bless you bless you bless you 20 times


You could combine this last one with the first one i posted: Use the bang from the envelope follower and then use the toggle thing from first post to turn the adsr envelope on/off.

Ps I think i turned the < the wrong way. I think it should be > But also depends how one wants it to work.

One thing I also wonder with envelopes is how to get rid of hanging notes… On the miller adsr if you trigger the envelope again, before the last note has ended, it can sometimes lead to hanging notes. I think I need to edit it a bit. I think there is an examplein the pd examples that shoe how to get and envelope that is reset fully on every hit. It can be pretty problematic with hanging notes in the middle of a live session. Anyway, will figure it out eventually.