mirror of
https://github.com/Ardour/ardour.git
synced 2025-12-31 10:57:43 +01:00
Pianoroll: make automation follow zoom
This commit is contained in:
parent
74fa86ca19
commit
c0c6a93cba
2 changed files with 13 additions and 0 deletions
|
|
@ -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 ()
|
||||
{
|
||||
|
|
|
|||
|
|
@ -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);
|
||||
};
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue