
VYPYR connector
With this module you can receive messages via events from your guitar amplifier (currently supports only Peavey VYPYR VIP series) and modify the current state of the amp by using HTTP requests or provided classes.
Installation
Installation uses node-gyp and requires Python 3.7 or higher.
npm i vypyr-connector
or
$ git clone https://github.com/KUNszg/vypyr-connector.git
$ cd vypyr-connector
$ npm i
Usage
This library deals with MIDI messages as JS Arrays for both input and output.
Each element of array represents a state of current interface setup.
For example:
[176, 10, 0]
For full list of Peavey MIDI status codes see:
https://github.com/KUNszg/vypyr-connector/blob/main/controls.json
Capturing input
const Midi = require("vypyr-connector");
const vypyr = new Midi();
vypyr.connect();
vypyr.on('input', (timing, program, ctrlr, value) => {
console.log(`
program: ${program},
ctrlr: ${ctrlr},
value: ${value}
timing: ${timing}`);
});
Sending output
const Midi = require("vypyr-connector");
const vypyr = new Midi();
console.log(vypyr.send(176, 10, 0))
Web API
const Midi = require("vypyr-connector");
const vypyr = new Midi()
vypyr.express();
curl -X POST -H "program: 176" -H "ctrlr: 10" -H "value: 0" "http://localhost:8080/controller"