midiview: expose API for _on_timeline

This commit is contained in:
Paul Davis
2025-07-10 18:17:33 -06:00
parent 9067971130
commit a902f99172
2 changed files with 8 additions and 0 deletions

View File

@@ -339,6 +339,12 @@ MidiView::set_show_source (bool yn)
_show_source = yn;
}
void
MidiView::set_on_timeline (bool yn)
{
_on_timeline = yn;
}
void
MidiView::set_region (std::shared_ptr<MidiRegion> mr)
{

View File

@@ -147,6 +147,8 @@ class MidiView : public virtual sigc::trackable, public LineMerger
void set_show_source (bool yn);
bool show_source () const { return _show_source; }
bool on_timeline () const { return _on_timeline; }
void set_on_timeline (bool yn);
NoteBase* add_note(const std::shared_ptr<NoteType> note, bool visible);