mirror of
https://github.com/HifiExperiments/overte.git
synced 2025-04-07 10:02:24 +02:00
Add files via upload
add more mmidi message types to be exposed to javascript
This commit is contained in:
parent
31238e2d66
commit
0eacac60c1
2 changed files with 1 additions and 4 deletions
|
@ -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() {
|
||||
|
|
|
@ -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:
|
||||
|
|
Loading…
Reference in a new issue