I’m using some JS code inside a music-making application to change the instrument for certain midi keys. (The application is Apple’s Logic Pro) I’m unable to find info for the function properties how to see what parameters they contain. Properties such as “.channel” and “.send” in this code:
function HandleMIDI(e) {
var chan = 4;
if (e instanceof Note) { // (I don't what kind of 'command' this is)
if (e.pitch >= 60 && e.pitch <=72) {
e.channel = chan;
e.send();
}else{
e.send();
}
}else{
e.send();
}
}