Waveshaping