Web + MIDI devices, made easier.
Switch branches/tags
Nothing to show
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
dist
examples
.eslintignore
.eslintrc
.gitignore
LICENSE
Makefile
README.md
bower.json
device.js
main.js
package.json
utils.js

README.md

Widi

This is just a simple lib for now, it doesn't do much but it does make it a bit easier.

Web Midi, a tiny library horribly bloated by all the shims needed for ES6 browser support. Yay JS...

Makes connecting MIDI devices to web behaviour easy, see the examples folder.

Quickstart

var Widi = new (require("Widi"))()

Widi.on("deviceChange", function(device) {
  console.log("A device has bee unplugged or plugged in!", device)
})

Widi.on("midiMessage", function(midiMessageData) {
  console.log("Received a message from MIDI device '%s'", this.NAME)
  console.log(midiMessageData)
})

Developing

Run make watch to "build" every second if anything has updated.

make watch to run a build every second if it changed.
make build to just build the code using babelify.
make compress to compress the output of make build.

License

The MIT License (MIT)

Copyright (c) 2015 Dave Mackintosh