diff options
author | Vitaly Novichkov <Wohlstand@users.noreply.github.com> | 2018-07-07 19:41:27 +0300 |
---|---|---|
committer | GitHub <noreply@github.com> | 2018-07-07 19:41:27 +0300 |
commit | c8dc7434d1d07ffb441e2d4621eea6aa71dc6b63 (patch) | |
tree | 0487adc817c4f2f4289d663e73a33f985c1fbf88 /src/midi_sequencer.hpp | |
parent | 63f0c95a978902e0896513ca4c7e7e3907da7b9d (diff) | |
parent | ba37698fd82cab2513cd9f316189d433af4519df (diff) | |
download | libADLMIDI-c8dc7434d1d07ffb441e2d4621eea6aa71dc6b63.tar.gz libADLMIDI-c8dc7434d1d07ffb441e2d4621eea6aa71dc6b63.tar.bz2 libADLMIDI-c8dc7434d1d07ffb441e2d4621eea6aa71dc6b63.zip |
Merge pull request #128 from jpcima/track-options
Track options
Diffstat (limited to 'src/midi_sequencer.hpp')
-rw-r--r-- | src/midi_sequencer.hpp | 25 |
1 files changed, 25 insertions, 0 deletions
diff --git a/src/midi_sequencer.hpp b/src/midi_sequencer.hpp index 6eeefa9..71e06b5 100644 --- a/src/midi_sequencer.hpp +++ b/src/midi_sequencer.hpp @@ -343,6 +343,11 @@ private: //! Are loop points invalid? bool m_invalidLoop; /*Loop points are invalid (loopStart after loopEnd or loopStart and loopEnd are on same place)*/ + //! Whether the nth track has playback disabled + std::vector<bool> m_trackDisable; + //! Index of solo track, or max for disabled + size_t m_trackSolo; + //! File parsing errors string (adding into m_errorString on aborting of the process) std::string m_parsingErrorsString; //! Common error string @@ -365,6 +370,26 @@ public: FileFormat getFormat(); /** + * @brief Returns the number of tracks + * @return Track count + */ + size_t getTrackCount() const; + + /** + * @brief Sets whether a track is playing + * @param track Track identifier + * @param enable Whether to enable track playback + * @return true on success, false if there was no such track + */ + bool setTrackEnabled(size_t track, bool enable); + + /** + * @brief Enables or disables solo on a track + * @param track Identifier of solo track, or max to disable + */ + void setSoloTrack(size_t track); + + /** * @brief Get the list of CMF instruments (CMF only) * @return Array of raw CMF instruments entries */ |