Skip to content

Latest commit

 

History

History
60 lines (34 loc) · 1.84 KB

README.md

File metadata and controls

60 lines (34 loc) · 1.84 KB

SwiftMIDI

Icon

SwiftMIDI is a swifty syntaxic sugar that help to integrate CoreMidi in swift projects.

SwiftMIDI is a simple framework. It that does only wrap principal CoreMIDI functions and add few logic and omdern swift definitions for common midi operations.

The main purpose of this framework is to

  • Replace calls returning OSStatus by throwing function
  • Replace UnsafeMutablePointer output parameters by classic function results
  • Few syntax changes in function names and return types to follow modern swift standards
func findMidiThruConnections(owner: String) throws -> [MIDIThruConnectionRef]?

instead of

func MIDIThruConnectionFind(_ inPersistentOwnerID: CFString, _ outConnectionList: UnsafeMutablePointer<Unmanaged<CFData>>) -> OSStatus

SwiftMidiCenter

SwiftMidiCenter is a higher level package, based on the SwiftMidi framework, that makes midi devices and connections easier.

It also propose some more system oriented features like default storage and configurations management.

https://github.com/moosefactory/SwiftMidiCenter

You can see both working in a sample project developed in SwiftUI : SwiftMidiCenter App

https://github.com/moosefactory/MidiCenterApp

Scheme

Installation

SwiftMIDI is distributed as a Swift Package

Author

Tristan Leblanc tristan@moosefactory.eu

MooseFactory Software


License

SwiftMIDI is available under the MIT license. See the LICENSE file for more info.


History

First Commit: v1.0.0 : 2021-01-01 at Midnight, Paris Time. Happy New Year :)