Did similar stuff on Atari & Amiga. We actually had an app that could create SMPTE timecode on a pin of a printer port. Then we could read the timecode back (on an interrupt) and synchronize a MIDI score to a multi-track tape recorder. Oh and we used another pin to output MIDI...
fun times