summaryrefslogtreecommitdiff
path: root/Userland/Applications/Piano/TrackManager.h
diff options
context:
space:
mode:
Diffstat (limited to 'Userland/Applications/Piano/TrackManager.h')
-rw-r--r--Userland/Applications/Piano/TrackManager.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/Userland/Applications/Piano/TrackManager.h b/Userland/Applications/Piano/TrackManager.h
index a077d92457..8abffa0bf2 100644
--- a/Userland/Applications/Piano/TrackManager.h
+++ b/Userland/Applications/Piano/TrackManager.h
@@ -28,11 +28,13 @@ public:
NonnullRefPtr<DSP::NoteTrack> current_track() { return *m_tracks[m_current_track]; }
size_t track_count() { return m_tracks.size(); };
+ size_t current_track_index() const { return m_current_track; }
void set_current_track(size_t track_index)
{
VERIFY(track_index < track_count());
m_current_track = track_index;
}
+ Span<NonnullRefPtr<DSP::NoteTrack>> tracks() { return m_tracks.span(); }
NonnullRefPtr<DSP::Transport> transport() const { return m_transport; }
NonnullRefPtr<DSP::Keyboard> keyboard() const { return m_keyboard; }