New feature - add a spectrum?

I’ve tried to get mopidy work with respeaker which is a new hardware with mips based mt7688 cpu and runs openwrt. It works great. There are 12 on-board rgb leds on respeaker. I would like to make the leds’ lights follow the playing music like a spectrum.

There are a gstreamer plugin named spectrum we can use to supply spectrum data of the playing music. We can add the spectrum plugin to the playbin plugin as an audio filter. I tried it with

To add the spectrum plugin to mopidy, we can add some code to

Does anyone else would like to have a spectrum with mopidy? What’s the best way to add the spectrum feature to mopidy?