Hey!
i've been searching for ways to generate envelopes algorithmically and store them in arrays, and couldn't manage to find what i was looking for, so decided to go on by myself and ended up with this...
Hopefully, this can be usefull for someone else!