I am receiving midi events from an external keyboard, and looking for a way to record them to a midi file. Are there any Obj C libraries available to do this?
If you don't want to write a file creation routine from scratch, you can use the MusicPlayer
and MusicSequence
API method MusicSequenceFileCreate to generate a .mid file. You'll need to create an instance of a MusicSequence
and a MusicTrack to add the incoming MIDI events to. The advantages would be the clock is handled and you get preview/playback capability.