summaryrefslogtreecommitdiff
path: root/gtk2_ardour/midi_time_axis.cc
diff options
context:
space:
mode:
authorHans Baier <hansfbaier@googlemail.com>2008-05-02 19:09:32 +0000
committerHans Baier <hansfbaier@googlemail.com>2008-05-02 19:09:32 +0000
commit0e394fb66b707b530d4b54991acbadb2a79c5e03 (patch)
treeeb678570921883cbb91ac43d9aecdbffc5522d77 /gtk2_ardour/midi_time_axis.cc
parentda45f489dd3d923bbba8f1cee39ab445c4bf1b64 (diff)
* removed old implementation for Program Changes from MidiModel
* Added Automation based implementation for Program Changes, Pitch Bender and Channel Aftertouch git-svn-id: svn://localhost/ardour2/branches/3.0@3304 d708f5d6-7413-0410-9779-e7cbd77b26cf
Diffstat (limited to 'gtk2_ardour/midi_time_axis.cc')
-rw-r--r--gtk2_ardour/midi_time_axis.cc7
1 files changed, 6 insertions, 1 deletions
diff --git a/gtk2_ardour/midi_time_axis.cc b/gtk2_ardour/midi_time_axis.cc
index dec553f408..cf17543040 100644
--- a/gtk2_ardour/midi_time_axis.cc
+++ b/gtk2_ardour/midi_time_axis.cc
@@ -326,7 +326,12 @@ MidiTimeAxisView::add_controller_track()
void
MidiTimeAxisView::create_automation_child (Parameter param, bool show)
{
- if (param.type() == MidiCCAutomation) {
+ if (
+ param.type() == MidiCCAutomation ||
+ param.type() == MidiPgmChangeAutomation ||
+ param.type() == MidiPitchBenderAutomation ||
+ param.type() == MidiChannelAftertouchAutomation
+ ) {
/* FIXME: don't create AutomationList for track itself
* (not actually needed or used, since the automation is region-ey) */