Bindings into Ableton Link for Swift.
Note: is this library for you? Ableton already provides an iOS SDK for link.
However, if you require low level bindings into the C++ library, this is for you!
SwiftLink is licensed under GPLv2+, the same as Ableton Link.
git submodule add git@github.com:wavejumper/SwiftLink.git SwiftLink
git submodule update --init --recursive
Inside your Podfile
:
pod 'SwiftLink', :path => 'SwiftLink'
Inside your bridging header add:
#import "SwiftLink.h"
let initialBpm: Double = 120
let link = AbletonLink(bpm: initialBpm)
let tempoObservation = link.observe(\.onTempo, options: .new) { l, change in
print("tempo change!")
}