midi-instrument

Return an object of music notes for given Midi instrument

npm install midi-instrument
6 downloads in the last week
12 downloads in the last month

midi-instrument

Return an object of music notes for given MidiJS instrument.

midi = require('midi-sdk')('path/to/midi', ['acoustic_grand_piano', 'flute'])
instrument = require('midi-instrument')

piano = instrument(midi, 0)
flute = instrument(midi, 73)
>>>>>>> document & test multiple instruments

piano.c(1, 128) // delay, velocity
// plays Do / C

piano['la#1']()
// plays A# / La# 1

flute.mi3()
// plays mi3

Install

$ npm install midi-instrument
npm loves you