impossible to access midi modules and control some parameters of the sample osc

Hi
sorry because I had to put this before, the way I use the envelopes is different from yours.
I use amp, filter and pitch envelopes in a common way for the two layers (I don’t want them independent) so I use the @type: Layer / @ type: Zone / for all the parameters of the envelopes.
when using its scripts, the scope causes each zone to have an individual edition of the envelope and ignores (@type: Layer / @ type: Zone /)
Without using the scope, envelope tracking only happens when I am in zone 1 of layer 1.
With midi envelopes there is no problem always follow up.
I have modified your program with an exact configuration to the one I have.
so you can see better what I mean

regards
Amp Envelope 2 (mod).zip (15.4 KB)