5

I'm currently learning how use MIDI with swift. I sought how to create a MIDI file, but that sound like not so easy.
I checked frameworks like AudioKit, but i don't find too.
Which's informations i need to learn doing it? (for example to know MIDI file structure).

Pavel Alexeev
  • 6,026
  • 4
  • 43
  • 51
Kyz
  • 141
  • 9
  • 4
    Don't understand why it was closed. It can be done fairly easy with AudioKit's AKSequencer: https://gist.github.com/95d0c1d377f390a544eaab6686e0f712 – Pavel Alexeev Aug 25 '17 at 16:50
  • thank you @PavelAlexeev . I start to use AudioKit, it's very fun. – Kyz Aug 30 '17 at 08:42
  • why do you close question if you can not understand just ignore the question people – Hope Jan 18 '22 at 07:40

1 Answers1

3

Hard to know exactly what you are trying to achieve from your question, but have you consulted The Core MIDI Framework Reference to see if that will fulfil your needs? If not, you can find it here:

https://developer.apple.com/library/ios/documentation/MusicAudio/Reference/CACoreMIDIRef/

There is also a good intro to the standard midi file format here:

http://www.skytopia.com/project/articles/midi.html

That should get you started if you are just trying to generate a MIDI file by writing characters to a file, but if you are trying to do anything fancy like convert audio to MIDI then that is, as you rightly say, "not so easy".

Westside
  • 675
  • 1
  • 7
  • 16