Sign Up for Free

RunKit +

Try any Node.js package right in your browser

This is a playground to test code. It runs a full Node.js environment and already has all of npm’s 400,000 packages pre-installed, including midi-manufacturers with all npm packages installed. Try it out:

var midiManufacturers = require("midi-manufacturers")

This service is provided by RunKit and is not affiliated with npm, Inc or the package authors.

midi-manufacturers v1.1.0

MIDI Manufacturer ID numbers

MIDI Manufacturer ID numbers

Usage

yarn add midi-manufacturers

In your code:

import midi_name, * as midi_id from "midi-manufacturers";

console.log(midi_id.FOCUSRITE_NOVATION);                // 00 20 29

console.log(midi_name[midi_id.FOCUSRITE_NOVATION]);     // Focusrite/Novation

Convert an ID to an array of bytes

bytes = midi_id.FOCUSRITE_NOVATION.split(" ").map(n => parseInt(n,16));     // [0, 32, 41]    

Source

https://www.midi.org/specifications/item/manufacturer-id-numbers

Metadata

RunKit is a free, in-browser JavaScript dev environment for prototyping Node.js code, with every npm package installed. Sign up to share your code.
Sign Up for Free