Created
December 29, 2014 13:46
-
-
Save DatanoiseTV/6a59fc66517fbd923ed9 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
rtpmidi = require('rtpmidi'), | |
session = rtpmidi.manager.createSession({ localName: 'Axoloti', bonjourName: 'Axoloti RTP-MIDI Bridge (syso)', port: 5006 }); | |
sp = require("serialport"); | |
s = new sp.SerialPort("/dev/tty.usbmodem261", { baudrate: 115200 }); | |
b = new Buffer(7); | |
session.on('message', function(deltaTime, message) { | |
new Buffer("AxoM").copy(b); new Buffer(message).copy(b,4); s.write(b); | |
}); | |
session.connect({ address: '127.0.0.1', port: 5004 }); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Axoloti RTP-MIDI Bridge
This little node.js application allows you to use RTP-MIDI compliant Software
to control your Axoloti.
Prerequisites
Installation
npm install serialport rtpmidi
/dev/tty.usbmodem261
in daemon.js to match your Axoloti's Serial Port Name (you can find it out using the Axoloti Editor)node daemon.js