Add files via upload

add more mmidi message types to be exposed to javascript
This commit is contained in:
Bruce Brown 2017-12-29 11:05:37 -08:00 committed by GitHub
parent 31238e2d66
commit 0eacac60c1
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 1 additions and 4 deletions

View file

@ -124,7 +124,6 @@ void CALLBACK MidiInProc(HMIDIIN hMidiIn, UINT wMsg, DWORD_PTR dwInstance, DWORD
}
if (thruModeEnabled) {
instance->sendNote(status, note, velocity); // relay the message on to all other midi devices.
//instance->sendMessage();
}
instance->rawMidiReceived(device, raw); // notify the javascript
instance->midiReceived(device, raw, channel, status, type, note, velocity, bend, program); // notify the javascript
@ -225,7 +224,6 @@ void Midi::MidiSetup() {
}
allNotesOff();
}
void Midi::MidiCleanup() {
@ -316,7 +314,6 @@ void Midi::sendMidiMessage(int device, int channel, int type, int note, int velo
void Midi::allNotesOff() {
sendNote(MIDI_CONTROL_CHANGE, MIDI_CHANNEL_MODE_ALL_NOTES_OFF, 0); // all notes off
// sendMessage();// all notes off
}
void Midi::resetDevices() {

View file

@ -30,7 +30,7 @@ public:
void midiHardwareChange(); // relay hardware change to Javascript
void sendRawMessage(int device, int raw); // relay midi message to MIDI outputs
void sendNote(int status, int note, int velocity); // relay a note to MIDI outputs
void sendMessage(int device, int channel, int type, int note, int velocity); // relay a message to MIDI outputs
void sendMessage(int device, int channel, int type, int note, int velocity); // relay a message to MIDI outputs
static void USBchanged();
private: