From b41ab993ecd67d4ea4a8b110494c18a3a96a0f55 Mon Sep 17 00:00:00 2001 From: Paul Davis Date: Fri, 12 Sep 2025 10:30:51 -0600 Subject: [PATCH] add API to MidiViewBackground to get access to its data note range --- gtk2_ardour/midi_view_background.h | 2 ++ 1 file changed, 2 insertions(+) diff --git a/gtk2_ardour/midi_view_background.h b/gtk2_ardour/midi_view_background.h index e9ea7bf576..997552a7b1 100644 --- a/gtk2_ardour/midi_view_background.h +++ b/gtk2_ardour/midi_view_background.h @@ -138,6 +138,8 @@ class MidiViewBackground : public virtual ViewBackground sigc::signal NoteVisibilityShouldChange; bool update_data_note_range (uint8_t min, uint8_t max); + uint8_t highest_data_note() const { return _data_note_max; } + uint8_t lowest_data_note() const { return _data_note_min; } protected: EditingContext& _editing_context;