Improve buffer allocation/deallocation and add parameters to the synth