4 ms·
It uses AnalyserNode[0] to get frequency data and moves the elements based on the frequency ratio[1][2]. [0] https://developer.mozilla.org/en-US/docs/Web/API/A
by mhasbini 9y ago
It uses AnalyserNode[0] to get frequency data and moves the elements based on the frequency ratio[1][2].
[0] https://developer.mozilla.org/en-US/docs/Web/API/AnalyserNode/getByteFrequencyData https://developer.mozilla.org/en-US/docs/Web/API/AnalyserNod...
[1] https://github.com/Okazari/Rythm.js/blob/4693385a2d854f0c5f1a98bbd22dc364464a691a/src/Analyser.js#L20-L32 https://github.com/Okazari/Rythm.js/blob/4693385a2d854f0c5f1...
[2] https://github.com/Okazari/Rythm.js/blob/c054c475e6e758878db30381674f1b0623470342/src/rythm.js#L45-L54 https://github.com/Okazari/Rythm.js/blob/c054c475e6e758878db...
-- edit: formatting