Welcome to the forum @yabuike 
I tried your patch idea, but it didn’t work as expected. The envelope generator only got triggered at the moment when plugging the waveshaper’s DC output in and out but not with every period of the oscillator (at least that’s what I thought would happen).
However, I just realized that the digital out pins of the Arduino can also be as triggers, which is just perfect!
Now I just have to figure out how to deal with the PWM aliasing and I got my cheap and simple DIY SQ-1 clone 