A ComboBox with predefined functions was added to the original simulation.

A free Parameter a was introduced to change these functions. Speed was given a slider.

For sine waves a parameter w was introduced that defines the number of half waves. Integral values of w will create harmonics, with a standing wave pattern.