❤Nodeschool Public Materials
    Wondering what’s next for npm?Check out our public roadmap! »

    midi-manufacturers

    1.1.0 • Public • Published

    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

    Keywords

    Install

    npm i midi-manufacturers

    DownloadsWeekly Downloads

    1

    Version

    1.1.0

    License

    MIT

    Unpacked Size

    37.5 kB

    Total Files

    6

    Last publish

    Collaborators

    • avatar