Make Wave or midi file send signals when new notes are played

:information_source: Attention Topic was automatically imported from the old Question2Answer platform.
:bust_in_silhouette: Asked By Philippe

Hi, guys
I would like to know if anyone knows about a more automated approach I have to my problem. I am working on a shoot-em-up game inspired by Vampire Survivors.

I have made a song where each instrument is exported individually by wav or midi file. I want each weapon’s rate of fire to correspond to when notes are played by each instrument. I am wondering whether there is a way in scripting to find out when an instrument plays another note or repeats a note so I can send a signal to the weapon to fire.

Otherwise I will have to figure out each instrument’s repetitions manually, which does not scale as well.