The sound quality is much better after exporting, I assume this is likely due performance issues when creating sounds on real time using JS, so maybe one could use most of the same exporting logic to internally save a cached version of the sound (instead of always generating it on real time) to avoid such issues.