I'm bragging on my kid here, who is a big fan of Animusic. He wanted to see if something similar could be done using Blender, so he poked around the Blender Stack Exchange until he figured it out. The video is here: https://youtu.be/EkI6sUUZ1eE
He also posted the source files on a blog post here: https://sanderson.band/2022/12/20/mr-dudeley/
The source files include the Python code that makes the whole thing work, and if you know what you're doing you should be able to adapt it to your own projects.
I'm super proud of my geeky kid!