I was wondering if there's a way to get the current song in Elementary OS from the volume menu item.

So, is there a command I can use to get it, or detect when the song changes? I'm essentially trying to write a program that automatically runs a script whenever the song changes (or just updates occasionally) with my current song.

I'm using the Nuvola Player