Update WaveGenerator.pde

Only compute Waveform expansionFactor once per update(), apply to all waves uniformly.