News for hackers. Stuff that matters.
Re:Show HN: Make your web page dance with Rythm.js by Okazari on Thursday September 07, 2017 @03:44AM (#15189823)
The other answer show exactly the good code lines.

To describe it fast : I keep an history of frequency (size customable) and compare the subscribed frequency range to its relative history max / min value. I get a percentage out of it that i give to the dance function associated to this specific class.

There are no comments on this comment yet.