Simplified code for modulation waveforms (#321)
Simplified code for modulation waveforms (#321)

extract calculations that never changed during the loop
FluidSynth/fluidsynth,FluidSynth/fluidsynth,FluidSynth/fluidsynth,FluidSynth/fluidsynth