Zrythm v2.0.0-DEV
a highly automated and intuitive digital audio workstation
Loading...
Searching...
No Matches
zrythm::dsp::TempoMapWrapper Class Reference
Inheritance diagram for zrythm::dsp::TempoMapWrapper:
Collaboration diagram for zrythm::dsp::TempoMapWrapper:

Signals

void tempoEventsChanged ()
void timeSignatureEventsChanged ()
void sampleRateChanged ()

Public Member Functions

 TempoMapWrapper (TempoMap &tempo_map, QObject *parent=nullptr)
QQmlListProperty< TempoEventWrappertempoEvents ()
QQmlListProperty< TimeSignatureEventWrappertimeSignatureEvents ()
Q_INVOKABLE int timeSignatureNumeratorAtTick (int64_t tick) const
 Returns the time signature at the given tick.
Q_INVOKABLE int timeSignatureDenominatorAtTick (int64_t tick) const
Q_INVOKABLE double tempoAtTick (int64_t tick) const
Q_INVOKABLE int getPpq ()
double sampleRate () const
void setSampleRate (double sampleRate)
Q_INVOKABLE void addTempoEvent (qint64 tick, double bpm, TempoEventWrapper::CurveType curveType)
Q_INVOKABLE void addTimeSignatureEvent (qint64 tick, int numerator, int denominator)
Q_INVOKABLE void clearTempoEvents ()
Q_INVOKABLE void clearTimeSignatureEvents ()
Q_INVOKABLE MusicalPositionWrappergetMusicalPosition (int64_t tick) const
Q_INVOKABLE QString getMusicalPositionString (int64_t tick) const
Q_INVOKABLE int64_t getTickFromMusicalPosition (int bar, int beat, int sixteenth, int tick) const
Q_INVOKABLE int getMusicalPositionBar (int64_t tick) const
Q_INVOKABLE int getMusicalPositionBeat (int64_t tick) const
Q_INVOKABLE int getMusicalPositionSixteenth (int64_t tick) const
Q_INVOKABLE int getMusicalPositionTick (int64_t tick) const
void rebuildWrappers ()
 To be called when the tempo map has been modified directly.
const TempoMap & get_tempo_map () const
 Read-only access to tempo map.

Properties

QQmlListProperty< TempoEventWrappertempoEvents
QQmlListProperty< TimeSignatureEventWrappertimeSignatureEvents
double sampleRate

Detailed Description

Definition at line 103 of file tempo_map_qml_adapter.h.

Constructor & Destructor Documentation

◆ TempoMapWrapper()

zrythm::dsp::TempoMapWrapper::TempoMapWrapper ( TempoMap & tempo_map,
QObject * parent = nullptr )
inlineexplicit

Definition at line 113 of file tempo_map_qml_adapter.h.

Member Function Documentation

◆ addTempoEvent()

Q_INVOKABLE void zrythm::dsp::TempoMapWrapper::addTempoEvent ( qint64 tick,
double bpm,
TempoEventWrapper::CurveType curveType )
inline

Definition at line 150 of file tempo_map_qml_adapter.h.

◆ addTimeSignatureEvent()

Q_INVOKABLE void zrythm::dsp::TempoMapWrapper::addTimeSignatureEvent ( qint64 tick,
int numerator,
int denominator )
inline

Definition at line 159 of file tempo_map_qml_adapter.h.

◆ clearTempoEvents()

Q_INVOKABLE void zrythm::dsp::TempoMapWrapper::clearTempoEvents ( )
inline

Definition at line 167 of file tempo_map_qml_adapter.h.

◆ clearTimeSignatureEvents()

Q_INVOKABLE void zrythm::dsp::TempoMapWrapper::clearTimeSignatureEvents ( )
inline

Definition at line 174 of file tempo_map_qml_adapter.h.

◆ get_tempo_map()

const TempoMap & zrythm::dsp::TempoMapWrapper::get_tempo_map ( ) const
inline

Read-only access to tempo map.

Definition at line 228 of file tempo_map_qml_adapter.h.

◆ getMusicalPosition()

Q_INVOKABLE MusicalPositionWrapper * zrythm::dsp::TempoMapWrapper::getMusicalPosition ( int64_t tick) const
inline

Definition at line 181 of file tempo_map_qml_adapter.h.

◆ getMusicalPositionBar()

Q_INVOKABLE int zrythm::dsp::TempoMapWrapper::getMusicalPositionBar ( int64_t tick) const
inline

Definition at line 201 of file tempo_map_qml_adapter.h.

◆ getMusicalPositionBeat()

Q_INVOKABLE int zrythm::dsp::TempoMapWrapper::getMusicalPositionBeat ( int64_t tick) const
inline

Definition at line 205 of file tempo_map_qml_adapter.h.

◆ getMusicalPositionSixteenth()

Q_INVOKABLE int zrythm::dsp::TempoMapWrapper::getMusicalPositionSixteenth ( int64_t tick) const
inline

Definition at line 209 of file tempo_map_qml_adapter.h.

◆ getMusicalPositionTick()

Q_INVOKABLE int zrythm::dsp::TempoMapWrapper::getMusicalPositionTick ( int64_t tick) const
inline

Definition at line 213 of file tempo_map_qml_adapter.h.

◆ getPpq()

Q_INVOKABLE int zrythm::dsp::TempoMapWrapper::getPpq ( )
inline

Definition at line 138 of file tempo_map_qml_adapter.h.

◆ getTickFromMusicalPosition()

Q_INVOKABLE int64_t zrythm::dsp::TempoMapWrapper::getTickFromMusicalPosition ( int bar,
int beat,
int sixteenth,
int tick ) const
inline

Definition at line 190 of file tempo_map_qml_adapter.h.

◆ rebuildWrappers()

void zrythm::dsp::TempoMapWrapper::rebuildWrappers ( )
inline

To be called when the tempo map has been modified directly.

Definition at line 221 of file tempo_map_qml_adapter.h.

◆ sampleRate()

double zrythm::dsp::TempoMapWrapper::sampleRate ( ) const
inline

Definition at line 140 of file tempo_map_qml_adapter.h.

◆ setSampleRate()

void zrythm::dsp::TempoMapWrapper::setSampleRate ( double sampleRate)
inline

Definition at line 141 of file tempo_map_qml_adapter.h.

◆ tempoEvents()

QQmlListProperty< TempoEventWrapper > zrythm::dsp::TempoMapWrapper::tempoEvents ( )
inline

Definition at line 119 of file tempo_map_qml_adapter.h.

◆ timeSignatureEvents()

QQmlListProperty< TimeSignatureEventWrapper > zrythm::dsp::TempoMapWrapper::timeSignatureEvents ( )
inline

Definition at line 124 of file tempo_map_qml_adapter.h.

Property Documentation

◆ sampleRate

double zrythm::dsp::TempoMapWrapper::sampleRate
readwrite

Definition at line 108 of file tempo_map_qml_adapter.h.

◆ tempoEvents

QQmlListProperty<TempoEventWrapper> zrythm::dsp::TempoMapWrapper::tempoEvents
read

Definition at line 106 of file tempo_map_qml_adapter.h.

◆ timeSignatureEvents

QQmlListProperty<TimeSignatureEventWrapper> zrythm::dsp::TempoMapWrapper::timeSignatureEvents
read

Definition at line 107 of file tempo_map_qml_adapter.h.


The documentation for this class was generated from the following file: