In electronic music, waveshaping is a type of synthesis in which complex sound spectra are produced from simple tones by changing the shape of the sound waves.
This is done by mapping the input signal to the output signal via a fixed or variable mathematical function called a shaping function or a transfer function.
The guitar distortion effect pedal is an example of a device where waveshaping is used.