Just watch and listen! If you look closely, you can see, each time a musical note is played, two or three of the little black circles are bumping into each other.
Thanks to @jjburker for the original project and script.