Skip to content

Commit

Permalink
show MIDI device ID in output strings
Browse files Browse the repository at this point in the history
  • Loading branch information
unthingable committed Sep 28, 2020
1 parent 2483329 commit 76a0f32
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions desktop/sources/scripts/core/io/midi.js
Original file line number Diff line number Diff line change
Expand Up @@ -268,11 +268,11 @@ function Midi (client) {
}

this.toInputString = () => {
return !navigator.requestMIDIAccess ? 'No Midi Support' : this.inputDevice() ? `${this.inputDevice().name}` : 'No Input Device'
return !navigator.requestMIDIAccess ? 'No Midi Support' : this.inputDevice() ? `${this.inputIndex}:${this.inputDevice().name}` : 'No Input Device'
}

this.toOutputString = () => {
return !navigator.requestMIDIAccess ? 'No Midi Support' : this.outputDevice() ? `${this.outputDevice().name}` : 'No Output Device'
return !navigator.requestMIDIAccess ? 'No Midi Support' : this.outputDevice() ? `${this.outputIndex}:${this.outputDevice().name}` : 'No Output Device'
}

this.length = function () {
Expand Down

0 comments on commit 76a0f32

Please sign in to comment.