MIDI playback/sequencer with finely controlled beat timing?

I've come across a variety of projects which produce MIDI output based on a strict timing grid (e.g. Mike's Glockenspiel, MidiDuino, Cahors, etc.). Could anyone direct me towards some code which allows a finer timing grid, like MIDI ticks? Based on the sophisticated work I've seen using the internal timers to make synthesizers, it seems like sending MIDI signals on a precise schedule shouldn't be too hard, but I'm having trouble bridging that knowledge gap.
Thanks!

The timing in the Arduino is typically done in milliseconds (delay() and millis()). The code you have seen probably converts whatever time interval they care about into milliseconds. If you want more precision, just specify milliseconds directly. If interval values are being stored in a byte, you may want to increase the length of the time values to int or long so you can get more than 0.255-second events. An unsigned int should allow for events up to 65.535 seconds.