SwiftMIDI File

May 4, 2026 ยท View on GitHub

swift-midi-file

SwiftMIDI File

License: MIT

Extension for SwiftMIDI adding support for reading and writing Standard MIDI Files.

Compatibility

macOSiOSvisionOStvOSwatchOSLinuxAndroidWASMWindows
๐ŸŸข๐ŸŸข๐ŸŸข๐ŸŸข๐ŸŸข๐Ÿšง 1๐Ÿšง 1๐Ÿšง 1-

Getting Started

This extension is available as a Swift Package Manager (SPM) package.

To use this extension as standalone dependency (instead of importing the swift-midi umbrella repository):

  1. Add the swift-midi-file repo as a dependency.

    .package(url: "https://github.com/orchetect/swift-midi-file", from: "1.0.0")
    
  2. Add SwiftMIDIFile to your target.

    .product(name: "SwiftMIDIFile", package: "swift-midi-file")
    
  3. Import SwiftMIDIFile to use it.

    import SwiftMIDIFile
    

Documentation & Support

See the online documentation for this repository and its Examples folder.

For support, feature requests, and bug reports see the main SwiftMIDI repository.

Author

Coded by a bunch of ๐Ÿน hamsters in a trenchcoat that calls itself @orchetect.

License

Licensed under the MIT license. See LICENSE for details.

Footnotes

  1. Support for indicated platforms is either planned or WIP. โ†ฉ โ†ฉ2 โ†ฉ3