/MIDIPlayer

Swift example of using AVMIDIPlayer from a file or from a MusicSequence

Primary LanguageSwiftMIT LicenseMIT

MIDIPlayer

license Build Status GitHub tag GitHub release [GitHub commits

Using AVMIDIPlayer from a MIDI file, and from a MusicSequence.

Neither SoundFonts nor DLS files will play in the simulator. They play on the device though.

Playing the "data" option takes a long time for the night on bald mountain file to be parsed.

It seems that tempo events cause the player to hiccup on the device.

SoundFonts

Download your own SoundFont. You can get some here:

[MuseCore] (http://musescore.org/en/handbook/soundfont)

You have to play it on a device to hear the sounds. Otherwise, in the simultor you will get just sine waves.

Blog post for this example.

Blog post

Bugs

Some goofiness when you move the slider. I want it to change when the slider is done. I specified that in the storyboard. But, it still gets called while sliding.

Using MusicTrack in Swift is still a pain. I have idea what to do about MIDIMetaEvent - especially the data field. I think they imported it into Swift incorrectly. So, I don't have any meta events.

GitHub issues

If you find one, please add it to issues

Buy my kitty Giacomo some cat food

If this project is of any use to you, my ravenous Maine Coon kitty would like a snack.

paypal

Giacomo Kitty

Licensing

MIT

Please read the LICENSE for details.

Credits