From 72675e8da61022395917d86627a2e3676fbbbaf7 Mon Sep 17 00:00:00 2001 From: brummer10 Date: Wed, 28 Dec 2022 06:06:32 +0100 Subject: [PATCH] Fix issue #19 Cannot change instrument when external MIDI keyboard w/ clock is connected, fix issue #20 Incorrect highlighting in instrument combobox when advancing instrument via click --- Fluida/fluida_ui.c | 4 +--- libxputty | 2 +- 2 files changed, 2 insertions(+), 4 deletions(-) diff --git a/Fluida/fluida_ui.c b/Fluida/fluida_ui.c index 4d92543..ecc246d 100644 --- a/Fluida/fluida_ui.c +++ b/Fluida/fluida_ui.c @@ -491,13 +491,11 @@ void plugin_port_event(LV2UI_Handle handle, uint32_t port_index, if (format == ps->uris.atom_eventTransfer) { const LV2_Atom* atom = (LV2_Atom*)buffer; if (atom->type == uris->midi_MidiEvent) { - bool block = false; const uint8_t* const msg = (const uint8_t*)(atom + 1); MidiKeyboard *keys = (MidiKeyboard*)ui->widget[12]->private_struct; int channel = msg[0]&0x0f; switch (lv2_midi_message_type(msg)) { case LV2_MIDI_MSG_CLOCK: - block = true; break; case LV2_MIDI_MSG_NOTE_ON: set_key_in_matrix(keys->in_key_matrix[channel], msg[1], true); @@ -508,7 +506,7 @@ void plugin_port_event(LV2UI_Handle handle, uint32_t port_index, default: break; } - if (!block) expose_widget(ui->widget[12]); + expose_widget(ui->widget[12]); } else if (atom->type == ps->uris.atom_Object) { const LV2_Atom_Object* obj = (LV2_Atom_Object*)atom; if (obj->body.otype == uris->patch_Set) { diff --git a/libxputty b/libxputty index 60bb420..10aac63 160000 --- a/libxputty +++ b/libxputty @@ -1 +1 @@ -Subproject commit 60bb4201c267ff04801837873f393b082be3754d +Subproject commit 10aac63b6d3fde177ef0cf07d014c3bff3d72688