wmn

web-midi-note-stream

Takes in a stream of midi events and outputs objects with note/frequency information

Showing:

Popularity

Downloads/wk

1

GitHub Stars

0

Maintenance

Last Commit

6yrs ago

Contributors

1

Package

Dependencies

2

Size (min+gzip)

5.3KB

License

MIT

Type Definitions

Tree-Shakeable

No?

Categories

Readme

web-midi-note-stream

Takes in a stream of midi events and outputs objects with note/frequency information

Uses this table to decode notes.

Expects a web-midi stream to be piped into it, or chunks of arrays with [status, note, velocity].

Outputs an objects that looks like

{
    pressed: Boolean, // Whether the note was pressed or released
    note: Number, // The note from the midi event [0-127]
    velocity: Number, // The velocity from the midi event [0-127]
    channel: Number, // The channel the note was played in [1-16]
    frequency: Number, // The frequency of the note played
}

Usage

Install:

npm install --save web-midi-note-stream

Run:

var noteStream = require("web-midi-note-stream");
var midiStream = require('web-midi');
var stdout = require("stdout");

// Listen to all button presses, parse them, log to console
midiStream("Launchpad")
    .pipe(noteStream())
    .pipe(stdout("Note:"));

Rate & Review

Great Documentation0
Easy to Use0
Performant0
Highly Customizable0
Bleeding Edge0
Responsive Maintainers0
Poor Documentation0
Hard to Use0
Slow0
Buggy0
Abandoned0
Unwelcoming Community0
100