/SwiftLink

Swift bindings into Ableton Link

Primary LanguageObjective-C++OtherNOASSERTION

SwiftLink

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!

License

SwiftLink is licensed under GPLv2+, the same as Ableton Link.

Installation

git submodule add git@github.com:wavejumper/SwiftLink.git SwiftLink
git submodule update --init --recursive

Inside your Podfile:

  pod 'SwiftLink', :path => 'SwiftLink'

Demo

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!")
}