midi.Input
✔ should raise when not called with new
✔ should be an emitter
.getPortCount
✔ .getPortCoun should return an integer
.getPortName
✔ requires an argument
✔ requires an integer
MidiInAlsa::getPortName: error looking for port name!
✔ returns an empty string for unknown port
.openPort
✔ requires an argument
✔ requires an integer
✔ requires a valid port
.openVirtualPort
✔ requires an argument
✔ requires a string
.on('message')
✔ allows promises to resolve
midi.Output
✔ should raise when not called with new
✔ should not be an emitter
.getPortCount
✔ should return an integer
.getPortName
✔ requires an argument
✔ requires an integer
MidiOutAlsa::getPortName: error looking for port name!
✔ returns an empty string for unknown port
.openPort
✔ requires an argument
✔ requires an integer
✔ requires a valid port
.openVirtualPort
✔ requires an argument
✔ requires a string
.closePort
✔ allows you to close a port that was not opened
.send
✔ should require an array argument
.sendMessage
✔ should require an array argument
This appears to work with my simple script, and now pass the tests in the customer's MIDI library.
Thanks very much for your time here!
> mocha test/unit/*.js && node test/virtual- loopback- test-automated. js
midi.Input
✔ should raise when not called with new
✔ should be an emitter
.getPortCount
✔ .getPortCoun should return an integer
.getPortName
✔ requires an argument
✔ requires an integer
MidiInAlsa: :getPortName: error looking for port name!
✔ returns an empty string for unknown port lPort
.openPort
✔ requires an argument
✔ requires an integer
✔ requires a valid port
.openVirtua
✔ requires an argument
✔ requires a string
.on('message')
✔ allows promises to resolve
midi.Output
✔ should raise when not called with new
✔ should not be an emitter
.getPortCount
✔ should return an integer
.getPortName
✔ requires an argument
✔ requires an integer
MidiOutAlsa: :getPortName: error looking for port name!
✔ returns an empty string for unknown port lPort
.openPort
✔ requires an argument
✔ requires an integer
✔ requires a valid port
.openVirtua
✔ requires an argument
✔ requires a string
.closePort
✔ allows you to close a port that was not opened
.send
✔ should require an array argument
.sendMessage
✔ should require an array argument
26 passing (61ms)
Enumerating inputs
Input found: Midi Through:Midi Through Port-0 14:0
Input found: RtMidi Output Client:node-midi Virtual Output 128:0
Enumerating outputs
Output found: Midi Through:Midi Through Port-0 14:0
Output found: RtMidi Output Client:node-midi Virtual Output 128:0
Sending message
Sending message
Sending message
Sending message