Is this animated by hand or a script assigning the holes a note and then the audio triggers something ?
It’s based on python and midi files.
He have posted a lot of cool videos around flutes. You can search for it here to investigate further away.
using my python script. sorts (rendered images) pictures by XM file.