Musical Lights

I really like the demo Michael O’Kane highlighted ¬†where someone has programmed two Sphero SPRK+s to flash their lights to U2’s “Pride (In the Name of Love)” with Swift Playgrounds.

I think it’s a great exercise.

But I was thinking, what if you could listen to the song with an AVAudioPlayer and react to the average power on each channel of the audio?

It’s a work-in-progress, but here’s what I have so far:

Musical Lights from Matthew Hanlon on Vimeo.