midiview: expose API for _on_timeline
This commit is contained in:
@@ -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)
|
||||
{
|
||||
|
||||
@@ -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);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user