Merge branch 'feature/midi_in' of https://github.com/86Box/86Box into gus
This commit is contained in:
@@ -1216,7 +1216,8 @@ MPU401_Event(void *priv)
|
|||||||
mpu->clock.cth_counter++;
|
mpu->clock.cth_counter++;
|
||||||
if (mpu->clock.cth_counter >= mpu->clock.cth_rate[mpu->clock.cth_mode]) {
|
if (mpu->clock.cth_counter >= mpu->clock.cth_rate[mpu->clock.cth_mode]) {
|
||||||
mpu->clock.cth_counter = 0;
|
mpu->clock.cth_counter = 0;
|
||||||
mpu->clock.cth_mode= (++mpu->clock.cth_mode) % 4;
|
mpu->clock.cth_mode++;
|
||||||
|
mpu->clock.cth_mode %= 4;
|
||||||
mpu->state.req_mask |= (1 << 13);
|
mpu->state.req_mask |= (1 << 13);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@@ -1393,7 +1394,7 @@ MPU401_InputMsg(void *p, uint8_t *msg)
|
|||||||
if (msg[1] == 123) {
|
if (msg[1] == 123) {
|
||||||
/* All notes off. */
|
/* All notes off. */
|
||||||
for (key = 0; key < 128; key++) {
|
for (key = 0; key < 128; key++) {
|
||||||
if (!(mpu->chanref[chrefnum].on && (mpu->chanref[chrefnum].M_GETKEY)))
|
if (!(mpu->chanref[chrefnum].on && (mpu->chanref[chrefnum].M_GETKEY))) {
|
||||||
if (mpu->inputref[chan].on && mpu->inputref[chan].M_GETKEY) {
|
if (mpu->inputref[chan].on && mpu->inputref[chan].M_GETKEY) {
|
||||||
midi_raw_out_byte(0x80 | chan);
|
midi_raw_out_byte(0x80 | chan);
|
||||||
midi_raw_out_byte(key);
|
midi_raw_out_byte(key);
|
||||||
|
Reference in New Issue
Block a user