From 60968da24dd2b92fc392d1b91e73245770b5a4af Mon Sep 17 00:00:00 2001 From: David Robillard Date: Wed, 3 Feb 2010 07:20:14 +0000 Subject: Binding of MIDI notes to toggle parameters. git-svn-id: http://svn.drobilla.net/lad/trunk/ingen@2412 a436a847-0d15-0410-975c-d299462d15a1 --- src/engine/events/SendBinding.cpp | 3 +++ 1 file changed, 3 insertions(+) (limited to 'src/engine/events/SendBinding.cpp') diff --git a/src/engine/events/SendBinding.cpp b/src/engine/events/SendBinding.cpp index 8cc03c79..c3c83ea4 100644 --- a/src/engine/events/SendBinding.cpp +++ b/src/engine/events/SendBinding.cpp @@ -40,6 +40,9 @@ SendBinding::post_process() dict[uris.rdf_type] = uris.midi_Bender; } else if (_type == ControlBindings::MIDI_CHANNEL_PRESSURE) { dict[uris.rdf_type] = uris.midi_ChannelPressure; + } else if (_type == ControlBindings::MIDI_NOTE) { + dict[uris.rdf_type] = uris.midi_Note; + dict[uris.midi_noteNumber] = _num; } // TODO: other event types _port->set_property(uris.ingen_controlBinding, dict); // FIXME: thread unsafe -- cgit v1.2.1