(web audio powered by emscripten)
Stereo feedback loop 1 second long, with left and right blended with a rotation matrix (angle 2PI/12).
Inside the loop, compute RMS level per step per channel via a bank of biquad bandpass filters over 4 octaves upwards from MIDI note 24, accumulated modulo #-EDO. Low pass filter for the RMS at 1/32 Hz.
Scale each individual step by the energy of the octave accumulation /# steps away (pick a direction). Distort each band using tanh(). Apply strong dynamic range compression to the stereo mix to normalize peak levels to ~±1.