sound reactive lights

i am trying to recreate something similar to Nanoleaf in unreal engine. I am currently trying to find a way to get the colours of a material to change according to the different soundwaves coming from the music to give it an effect similar to what is on the nano leaves