How can I specify which channel to send a midi message on, with the MIDI Web API?
This example from the official docs shows how to send a message on channel 1. But in the code snippet, I don't find any reference to that.
// This example sends a middle C note on message immediately on MIDI channel 1
function sendMiddleC( midiAccess, portID ) {
var noteOnMessage = [0x90, 60, 0x7f]; // note on, middle C, full velocity
var output = midiAccess.outputs.get(portID);
output.send( noteOnMessage ); //omitting the timestamp means send immediately.
}
How can I send that same message, on say channel 2?