Pianoroll: make automation follow zoom

This commit is contained in:
Paul Davis 2025-01-13 14:06:21 -07:00
parent 74fa86ca19
commit c0c6a93cba
2 changed files with 13 additions and 0 deletions

View file

@ -201,6 +201,17 @@ PianorollMidiView::set_samples_per_pixel (double spp)
reset_width_dependent_items (_editing_context.duration_to_pixels (duration));
}
void
PianorollMidiView::reset_width_dependent_items (double pixel_width)
{
MidiView::reset_width_dependent_items (pixel_width);
for (auto & a : automation_map) {
if (a.second.line) {
a.second.line->reset ();
}
}
}
void
PianorollMidiView::clear_ghost_events ()
{

View file

@ -126,4 +126,6 @@ class PianorollMidiView : public MidiView
bool midi_canvas_group_event (GdkEvent*);
Gtkmm2ext::Color line_color_for (Evoral::Parameter const &);
void reset_width_dependent_items (double pixel_width);
};