-
MIDI note counter
I have a video of me playing piano along with a MIDI file containing all of the notes I played. I would like to use After Effects to add a note counter to the video which displays how many notes I’ve played so far at that point in the video. Basically it counts up by one as each note is pressed. Think Guitar Hero’s note streak display; it counts up for each note you play.
I have imported the MIDI file into AE, so now each note pressed is a keyframe. All of the keyframes are on a single layer, so all that’s left to do is write an expression that counts up by one each time it comes across a keyframe and displays the current count on the screen.
I’ve spent the last three hours searching the internet for someone who has done something like this before and have had no luck. The closest I came was this post:
https://forums.creativecow.net/thread/227/15045
…but it appears to count markers, not keyframes. Unfortunately, I’m not experienced enough in expressions to understand all of what is going on there in the code from that post, so I’m not even 100% sure that it’s doing what I think it’s doing. I’ve tried writing the expression myself, but I can’t get it figured out.
Can anyone help?