From a7d7fae434dc32e6787dfe54d1c30e0bccc660bd Mon Sep 17 00:00:00 2001 From: David Robillard Date: Mon, 7 Mar 2011 05:34:19 +0000 Subject: Apply LV2 UI MIDI event fix from Lars Luthman (ticket #651) with minor changes. git-svn-id: http://svn.drobilla.net/lad/trunk/ingen@3048 a436a847-0d15-0410-975c-d299462d15a1 --- src/client/PluginUI.cpp | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'src/client') diff --git a/src/client/PluginUI.cpp b/src/client/PluginUI.cpp index 6ae2623c..8233506c 100644 --- a/src/client/PluginUI.cpp +++ b/src/client/PluginUI.cpp @@ -71,7 +71,9 @@ lv2_ui_write(LV2UI_Controller controller, lv2_event_begin(&iter, buf); while (lv2_event_is_valid(&iter)) { LV2_Event* const ev = lv2_event_get(&iter, &data); - if (ev->type == uris.midi_MidiEvent.id) { + std::pair midi_id = + uris.global_to_event(uris.midi_MidiEvent.id); + if (midi_id.first && ev->type == midi_id.second) { // FIXME: bundle multiple events by writing an entire buffer here ui->world()->engine()->set_property( port->path(), -- cgit v1.2.1