92 QString
toQString(
const QString& sPrefix =
"",
bool bShort =
true )
const;
104 QString
toQString(
const QString& sPrefix =
"",
bool bShort =
true )
const;
169 void addTag(
int nColumn, QString sTag );
191 const std::vector<std::shared_ptr<const Tag>>
getAllTags()
const;
202 QString
toQString(
const QString& sPrefix =
"",
bool bShort =
true )
const override;
208 std::vector<std::shared_ptr<const Tag>>
m_tags;
220 bool operator()(
const std::shared_ptr<const TempoMarker> lhs,
const std::shared_ptr<const TempoMarker> rhs)
222 return lhs->nColumn < rhs->nColumn;
227 bool operator()(
const std::shared_ptr<const Tag> lhs,
const std::shared_ptr<const Tag> rhs)
229 return lhs->nColumn < rhs->nColumn;
Timeline class storing and handling all TempoMarkers and Tags.
void deleteTag(int nColumn)
void deleteTempoMarker(int nColumn)
Delete all tempo markers except for the first one and mark the tempo of the Timeline m_bUnset.
bool hasColumnTempoMarker(int nColumn) const
bool isFirstTempoMarkerSpecial() const
Whether there is a TempoMarker introduced by the user at the first column.
float getTempoAtColumn(int nColumn) const
Returns the tempo of the Song at a given column.
bool hasColumnTag(int nColumn) const
void addTag(int nColumn, QString sTag)
Adds a Tag to the Timeline.
std::shared_ptr< const Timeline::TempoMarker > getTempoMarkerAtColumn(int nColumn) const
void activate()
Registers the current playback tempo to m_fDefaultBpm.
void deactivate()
Convencience function in order to create a symmetric pair with activate.
std::vector< std::shared_ptr< const TempoMarker > > m_tempoMarkers
std::vector< std::shared_ptr< const Tag > > m_tags
const std::vector< std::shared_ptr< const TempoMarker > > getAllTempoMarkers() const
const QString getTagAtColumn(int nColumn) const
Returns the tag of the Song at a given column.
void addTempoMarker(int nColumn, float fBpm)
Adds a TempoMarker to the Timeline.
QString toQString(const QString &sPrefix="", bool bShort=true) const override
Formatted string version for debugging purposes.
void deleteAllTempoMarkers()
Deletes all TempoMarkers set by the user.
const std::vector< std::shared_ptr< const Tag > > getAllTags() const
float m_fDefaultBpm
Tempo used for the special tempo marker.
bool operator()(const std::shared_ptr< const Tag > lhs, const std::shared_ptr< const Tag > rhs)
Tag specifies a note added to a certain position in the Song.
QString toQString(const QString &sPrefix="", bool bShort=true) const
bool operator()(const std::shared_ptr< const TempoMarker > lhs, const std::shared_ptr< const TempoMarker > rhs)
TempoMarker specifies a change in speed during the Song.
QString toQString(const QString &sPrefix="", bool bShort=true) const
QString getPrettyString(int nDecimals=2) const