Swiftpack.co - moosefactory/SwiftMIDI as Swift Package

Swiftpack.co is a collection of thousands of indexed Swift packages. Search packages.
See all packages published by moosefactory.
moosefactory/SwiftMIDI 1.0.4
A thin swift layer over CoreMidi
⭐️ 9
🕓 2 years ago
iOS macOS
.package(url: "https://github.com/moosefactory/SwiftMIDI.git", from: "1.0.4")

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 [email protected]

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: 9
Last commit: 50 weeks ago
Advertisement: IndiePitcher.com - Cold Email Software for Startups

Related Packages

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