GitXplorerGitXplorer
x

ruby_ableton_link

public
2 stars
0 forks
1 issues

Commits

List of commits on branch master.
Unverified
57a5d5b318d5f12c8d9e9da4f08c413f3e838ca0

Fix extconf

xxavriley committed 5 years ago
Unverified
23b02a859b11078f9f04c82ba63d75f170ebf5dd

Remove /wd4503 from compile flags for Windows

xxavriley committed 5 years ago
Unverified
b68d2cfc1590c2d5ad92e453a16cc21d6b40c098

Fixup extconf.rb

xxavriley committed 5 years ago
Unverified
7814b5682c5475fa6d77e5ba1a2672ba8341116f

Dump makefile in appveyor

xxavriley committed 5 years ago
Verified
2a83470a233ab4fc276559ba8d758d400f0fa302

Merge pull request #1 from xavriley/travis-fixes

xxavriley committed 5 years ago
Unverified
ad6933f88010f9db551581defbc7d4aa9623d732

Make tests more robust to timing issues

xxavriley committed 5 years ago

README

The README file for this repository.

Ruby bindings for Ableton Link

Todo

-[ ] test compilation on platforms other than Mac

A Ruby wrapper for the Ableton Link C++ library.

What is Ableton Link?

Ableton Link is a new technology that synchronises beat, phase and tempo of Ableton Live and Link-enabled applications over a wireless or wired network. It lets you play devices together with the freedom of a live band. Anyone can start and stop their part while others keep playing, and anyone can adjust the tempo and the rest will follow. You can use Ableton Link with an increasing number of Link enabled applications – even without Live in your setup.

Installation

Add this line to your application's Gemfile:

gem 'ruby_ableton_link'

And then execute:

$ bundle

Or install it yourself as:

$ gem install ruby_ableton_link

If building from source you will need to run

$ git submodule update --init --recursive

Usage

link = AbletonLink.new
puts link.status

See the tests for the full API

OSC callbacks

This is currently in development for use with Sonic Pi.

One feature of the Link API is callbacks for the following events:

  • tempo change
  • change in the number of peers
  • start/stop (when start_stop sync is enabled)

Integrating C++ callbacks with Ruby is difficult - as a workaround I've opted instead to send OSC messages containing the callback data to 127.0.0.1:4559 (which is used by Sonic Pi by default).

These messages have the following format:

  • /link/tempo 120.0 # tempo as double type
  • /link/num_peers 2 # number of peers as an integer
  • /link/start_stop 1 # state of isPlaying? as 1 or 0

Development

After checking out the repo, run bin/setup to install dependencies. Then, run rake test to run the tests. You can also run bin/console for an interactive prompt that will allow you to experiment.

To install this gem onto your local machine, run bundle exec rake install. To release a new version, update the version number in version.rb, and then run bundle exec rake release, which will create a git tag for the version, push git commits and tags, and push the .gem file to rubygems.org.

Contributing

Bug reports and pull requests are welcome on GitHub at https://github.com/xavriley/ruby_ableton_link. This project is intended to be a safe, welcoming space for collaboration, and contributors are expected to adhere to the Contributor Covenant code of conduct.

License

The gem is available as open source under the terms of the MIT License.

Code of Conduct

Everyone interacting in the Ruby::Link project’s codebases, issue trackers, chat rooms and mailing lists is expected to follow the code of conduct.