// logistic equation // chaotic for 3.57 < lambda < 4 3.57 => float lambda; 0.1 => float x; Impulse i => LPF l => HPF h => JCRev r => Gain g => dac; 1 => int increase; 0.1 => r.mix; 0.9 => g.gain; while( true ) { 330*1.5 + 330*Math.sin( now/second*.2 ) => l.freq; // set high pass cutoff l.freq() / 2 => h.freq; // set resonances on low and high pass lambda => l.Q; lambda/2 => h.Q; // <<< lambda >>>; // logistic function lambda*(x-Math.pow(x, 2)) => x; 0.8 => i.next; x*10::ms => now; // ramp up if( lambda < 4.0 && increase == 1 ) { lambda + 0.001 => lambda; } // switch if( lambda > 3.999999 && increase == 1 ) { 0 => increase; } // ramp down if( lambda > 3.57 && increase == 0 ) { lambda - 0.001 => lambda; } // switch if( lambda <= 3.57 && increase == 0 ) { 1 => increase; } }