Swiftpack.co -  moosefactory/SwiftMIDI as Swift Package
Swiftpack.co is a collection of thousands of indexed Swift packages. Search packages.
moosefactory/SwiftMIDI
A thin swift layer over CoreMidi
.package(url: "https://github.com/moosefactory/SwiftMIDI.git", from: "1.0.2")

SwiftMIDI

SwiftMIDI adds a swifty syntaxic sugar to make CoreMidi a bit less bitter.

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
func findMidiThruConnections(owner: String) throws -> [MIDIThruConnectionRef]?

instead of

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

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

https://github.com/moosefactory/SwiftMIDI

The SwiftMIDICenter framework adding some more system oriented features like 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 :)

GitHub

link
Stars: 4
Last commit: 1 week ago

Ad: Job Offers

iOS Software Engineer @ Perry Street Software
Perry Street Software is Jack’d and SCRUFF. We are two of the world’s largest gay, bi, trans and queer social dating apps on iOS and Android. Our brands reach more than 20 million members worldwide so members can connect, meet and express themselves on a platform that prioritizes privacy and security. We invest heavily into SwiftUI and using Swift Packages to modularize the codebase.

Related Packages

Swiftpack is being maintained by Petr Pavlik | @ptrpavlik | @swiftpackco | API