ADSR Question
Posted: Mon Dec 28, 2020 5:35 pm
Hi, I don't think I get exactly how to operate ADSREnvelope.... When I do SetGate(true), do I need to start a timer which will fire a a SetGate(false)?
The SetGate starts the attack, decay and sustain phase with the time and levels settings I have set, but then remains in that sustain phase until the SetGate(false) is received...
But when I immediately give a SetGate(false) it's not entering the sustain phase at all...
I actually would have expected that Notify would have cases for the stages (like ADSR_Stage_Attack etc), and I tried adding those stages as case within the Notify section, but no luck there...
Can someone enlighten me?
cheers Hans
The SetGate starts the attack, decay and sustain phase with the time and levels settings I have set, but then remains in that sustain phase until the SetGate(false) is received...
But when I immediately give a SetGate(false) it's not entering the sustain phase at all...
I actually would have expected that Notify would have cases for the stages (like ADSR_Stage_Attack etc), and I tried adding those stages as case within the Notify section, but no luck there...
Can someone enlighten me?
cheers Hans