JSMM is will be a JavaScript library providing an API for generating MIDIMessage. At the moment it´s still a proof of concept.
Building a simple pluggable API to generate channel and sysex MIDIMessage. The library would provide both low and high levels way to build message; my main idea is to use this library to help the usage of the WEB MIDI API. ##What about now?##
A skeleton and a proof of concept, just start the development. The source provide two classes:
- CommonMIDIMessage: provide generic Channel Message s like
midiMessage.NoteOn({note, velocity, channel})
, a low levelmidiMessage.ChannelMessage(command, dataOne, dataTwo)
, a generic low levelmidiMessage.SysEx(manufacturerId, data)
and a utilitymidiMessage.statusBytes(command, channel)
- Generator: the generator holds the midiMessage
new Generator(MIDIMessage)
(default to CommonMIDIMessage). You can call method of the midi message directly from Generator.mm
var g = new JSMM.Generator();
g.ChannelMessage('NoteOn', {note:60, velocity:70});
g.mm.NoteOn({note:60, velocity:70});
- WaldorfM2MidiMessage: a first attempt to test how pluggable JSMM is
• grimmdude: my js-midi interest started from his MidiWriterJS • kjub: for the great insights • paco: for js suggestions