ableton-push

Interface with the Ableton Push in Meshblu!

Usage no npm install needed!

<script type="module">
  import abletonPush from 'https://cdn.skypack.dev/ableton-push';
</script>

README

ableton-push

A dead-simple interface to Ableton Push in node. Outputs color info as well as the button pushed.

Example code (please excuse the Coffeescript):

Ableton = require 'ableton-push'

config =
  buttons: [
    {
      x:1
      y:1
      color:
        r: 255
        g: 0
        b: 0
      }
  ]

console.log config
ableton = new Ableton config

green = {r: 0, g: 255, b: 0}

ableton.on 'button', ({x,y,color}) =>
  console.log({x,y,color})
  ableton.setButtonColor {x,y, color: green}

ableton.connect()