added synth function (very basic, not sure if correct)