From cc4a4db33f4d126a07a4a498e053c5fb9a883be3 Mon Sep 17 00:00:00 2001 From: David Robillard Date: Sat, 22 Jul 2017 13:58:26 +0200 Subject: Fix saving of learned MIDI bindings --- src/server/RunContext.cpp | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) (limited to 'src') diff --git a/src/server/RunContext.cpp b/src/server/RunContext.cpp index cebfdcfe..541f066d 100644 --- a/src/server/RunContext.cpp +++ b/src/server/RunContext.cpp @@ -122,9 +122,11 @@ RunContext::emit_notifications(FrameTime end) if (key) { _engine.broadcaster()->set_property( note.port->uri(), Raul::URI(key), value); - if (note.port->is_input() && note.key == uris.ingen_value) { + if (note.port->is_input() && + (note.key == uris.ingen_value || + note.key == uris.midi_binding)) { // FIXME: not thread safe - note.port->set_property(uris.ingen_value, value); + note.port->set_property(Raul::URI(key), value); } } else { _engine.log().rt_error("Error unmapping notification key URI\n"); -- cgit v1.2.1