a polyphonic synthesizer with ADSR envelope

A small problem with drawsynth and how to solve it

drawable synthesizer waveform

cube

Simple Synth

What's dangerous about dangerouslySetInnerHTML?