diff options
author | David Robillard <d@drobilla.net> | 2010-02-03 07:20:14 +0000 |
---|---|---|
committer | David Robillard <d@drobilla.net> | 2010-02-03 07:20:14 +0000 |
commit | 60968da24dd2b92fc392d1b91e73245770b5a4af (patch) | |
tree | 229be9f4a1ef68c6b96c06aec53fcc39bf981d49 /src/engine/events | |
parent | f186268d94b6435614c58d369f157fa203b04850 (diff) | |
download | ingen-60968da24dd2b92fc392d1b91e73245770b5a4af.tar.gz ingen-60968da24dd2b92fc392d1b91e73245770b5a4af.tar.bz2 ingen-60968da24dd2b92fc392d1b91e73245770b5a4af.zip |
Binding of MIDI notes to toggle parameters.
git-svn-id: http://svn.drobilla.net/lad/trunk/ingen@2412 a436a847-0d15-0410-975c-d299462d15a1
Diffstat (limited to 'src/engine/events')
-rw-r--r-- | src/engine/events/SendBinding.cpp | 3 |
1 files changed, 3 insertions, 0 deletions
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 |