|
lmms
Cross-platform music production software
|
#include <Timeline.h>
Public Types | |
| enum class | StopBehaviour { BackToZero , BackToStart , KeepPosition } |
Signals | |
| void | loopEnabledChanged (bool enabled) |
| void | stopBehaviourChanged (lmms::Timeline::StopBehaviour behaviour) |
| void | positionChanged () |
| void | positionJumped () |
Public Member Functions | |
| auto | pos () const -> const TimePos & |
| auto | ticks () const -> tick_t |
| void | setTicks (tick_t ticks, bool jumped=true) |
| void | incrementTicks (tick_t increment) |
| Advances the current timeline position by a certain number of ticks, in addition to updating the elapsed time based on the current tempo. | |
| auto | frameOffset () const -> float |
| void | setFrameOffset (const float frame) |
| auto | loopBegin () const -> TimePos |
| auto | loopEnd () const -> TimePos |
| auto | loopEnabled () const -> bool |
| void | setLoopBegin (TimePos begin) |
| void | setLoopEnd (TimePos end) |
| void | setLoopPoints (TimePos begin, TimePos end) |
| void | setLoopEnabled (bool enabled) |
| auto | playStartPosition () const -> TimePos |
| auto | stopBehaviour () const -> StopBehaviour |
| void | setPlayStartPosition (TimePos position) |
| void | setStopBehaviour (StopBehaviour behaviour) |
| auto | getElapsedSeconds () const -> double |
| auto | nodeName () const -> QString override |
| Public Member Functions inherited from lmms::JournallingObject | |
| JournallingObject () | |
| ~JournallingObject () override | |
| jo_id_t | id () const |
| void | saveJournallingState (const bool newState) |
| void | restoreJournallingState () |
| void | addJournalCheckPoint () |
| QDomElement | saveState (QDomDocument &_doc, QDomElement &_parent) override |
| void | restoreState (const QDomElement &_this) override |
| bool | isJournalling () const |
| void | setJournalling (const bool _sr) |
| bool | testAndSetJournalling (const bool newState) |
| bool | isJournallingStateStackEmpty () const |
| Public Member Functions inherited from lmms::SerializingObject | |
| SerializingObject () | |
| virtual | ~SerializingObject () |
| void | setHook (SerializingObjectHook *_hook) |
| SerializingObjectHook * | hook () |
Protected Member Functions | |
| void | saveSettings (QDomDocument &doc, QDomElement &element) override |
| void | loadSettings (const QDomElement &element) override |
| Protected Member Functions inherited from lmms::JournallingObject | |
| void | changeID (jo_id_t _id) |
Private Attributes | |
| TimePos | m_loopBegin = TimePos{0} |
| TimePos | m_loopEnd = TimePos{DefaultTicksPerBar} |
| bool | m_loopEnabled = false |
| TimePos | m_pos = TimePos{0} |
| float | m_frameOffset = 0 |
| double | m_elapsedSeconds = 0 |
| StopBehaviour | m_stopBehaviour = StopBehaviour::BackToStart |
| TimePos | m_playStartPosition = TimePos{-1} |
|
strong |
|
inline |
|
inline |
|
inline |
Advances the current timeline position by a certain number of ticks, in addition to updating the elapsed time based on the current tempo.
|
overrideprotectedvirtual |
Implements lmms::SerializingObject.
|
inline |
|
inline |
|
signal |
|
inline |
|
inlineoverridevirtual |
Implements lmms::SerializingObject.
|
inline |
|
inline |
|
signal |
|
signal |
|
overrideprotectedvirtual |
Implements lmms::SerializingObject.
|
inline |
| void lmms::Timeline::setLoopBegin | ( | TimePos | begin | ) |
| void lmms::Timeline::setLoopEnabled | ( | bool | enabled | ) |
| void lmms::Timeline::setLoopEnd | ( | TimePos | end | ) |
|
inline |
| void lmms::Timeline::setStopBehaviour | ( | StopBehaviour | behaviour | ) |
|
inline |
Forcefully sets the current ticks, resets the frame offset, and sets the elapsed seconds based on the global position (ignoring potential mid-song tempo changes) Unless jumped is passed as false, this function will emit the positionJumped signal to allow other widgets to update accordingly.
|
inline |
|
signal |
|
inline |
|
private |
|
private |
|
private |
|
private |
|
private |