This reminds me of those polyrhythm visualizations on YouTube (check out LucidRhythms for some great examples).
https://www.youtube.com/@LucidRhythms
Probably almost impossible to adapt written works 'backwards' into a visualization but it might be fun to have different bars represent different notes and have the balls split for chords.