Gate MIDI ON in ADSR

Aula digital Nam's icon

Good morning

I'd like to make a small synth and I'm having trouble getting the ADSR to work.

It works perfectly only if I remove my fingers from the keyboard and play the detached notes, if I detach them it doesn't sound good, it's as if I were receiving two triggers.

Where am I doing wrong?

Aula digital Nam's icon
Esercizio.amxd
amxd

this is the patch

Source Audio's icon

you check if velocity is > 0,

but bang on both results which then toggles the toggle.

remove that and it should work

Aula digital Nam's icon

unfortunately it doesn't work yet, when I play the notes, the superposition of two notes creates an interruption and therefore by making the notes tied everything sounds wrong.

Should I build some kind of portamento/Glide? how you do it?

Source Audio's icon

what on earth is superposition of 2 notes?

Your problem is that what you posted

can work only for 1 voice,

for multiple notes you need poly~ .

if you want mono but play multiple notes,

use ddg.mono or make own "monoiser"

here is patch with corrected mistakes, set for 1 single voice

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