MIDI is 75% implemented, there are just a couple basic things I need to learn before that can be done properly. This is in a state where there are skeletons of functions and lots of comments everywhere, but it compiles. Meanwhile, I added a (probably redundant) function to simply push the current frame to the Lua stack.