A chaotic oscillating sound generator based on integration of the Duffing function:
d2y/dt2 = amp * cos(omega * t) - (damping * dy/dt) - (stiffness * y) - (nonLinearity * y * y * y)
All inputs to DuffingOsc are sampled at control rate.
freq |
Frequency of driving oscillator in Hz. |
amp |
Amplitude of driving oscillator (so amp in the above equation). |
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. |
xxxxxxxxxx
(
{
DuffingOsc.ar(440 + LFTri.kr(0.1, mul: 50));
}.play;
)