A chaotic oscillating sound generator based on integration of the Duffing function:
But in this instance the typical driving cosine function is replaced with an aribtrary audio rate input. For the traditional sinsusodal input see DuffingOsc.
All inputs but the driver input are sampled at control rate. The driver input is sampled at audio rate.
in |
The driver input. |
damping |
Amount of resistance to velocity in the spring. |
stiffness |
How much force the spring responds to with linear compression. |
nonLinearity |
The degree of nonlinearity in the spring response. Larger numbers indicate higher nonlinearity, and 0 makes a purely linear spring. |