https://github.com/wavejumper/swiftlink
Swift bindings into Ableton Link
https://github.com/wavejumper/swiftlink
ableton-link objective-c swift
Last synced: about 1 month ago
JSON representation
Swift bindings into Ableton Link
- Host: GitHub
- URL: https://github.com/wavejumper/swiftlink
- Owner: wavejumper
- License: other
- Created: 2019-11-16T12:36:19.000Z (over 6 years ago)
- Default Branch: master
- Last Pushed: 2019-11-16T12:49:40.000Z (over 6 years ago)
- Last Synced: 2025-04-01T22:47:57.009Z (about 1 year ago)
- Topics: ableton-link, objective-c, swift
- Language: Objective-C++
- Size: 13.7 KB
- Stars: 1
- Watchers: 1
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE.md
Awesome Lists containing this project
README
# SwiftLink
Bindings into [Ableton Link](https://github.com/Ableton/link) for Swift.
Note: is this library for you? Ableton already provides an [iOS SDK](https://github.com/Ableton/LinkKit) 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`:
```ruby
pod 'SwiftLink', :path => 'SwiftLink'
```
# Demo
Inside your bridging header add:
```
#import "SwiftLink.h"
```
```swift
let initialBpm: Double = 120
let link = AbletonLink(bpm: initialBpm)
let tempoObservation = link.observe(\.onTempo, options: .new) { l, change in
print("tempo change!")
}
```