diff --git a/gtk2_ardour/pianoroll_midi_view.cc b/gtk2_ardour/pianoroll_midi_view.cc index 644148eca9..016ec4461a 100644 --- a/gtk2_ardour/pianoroll_midi_view.cc +++ b/gtk2_ardour/pianoroll_midi_view.cc @@ -397,13 +397,14 @@ PianorollMidiView::update_automation_display (Evoral::Parameter const & param, S if (param.type() == MidiVelocityAutomation) { - if (!velocity_display) { /* Create and add to automation display map */ + std::cerr << "Createing velocity_display\n"; + velocity_display = new PianorollVelocityDisplay (editing_context(), midi_context(), *this, *automation_group, 0x312244ff); - auto res = automation_map.insert (std::make_pair (Evoral::Parameter (ARDOUR::MidiVelocityAutomation, 0, 0), AutomationDisplayState (*velocity_display, false))); + auto res = automation_map.insert (std::make_pair (param, AutomationDisplayState (*velocity_display, false))); ads = &((*res.first).second);