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 TimeSignatureEventWrappertimeSignatureAtTick (int64_t tick) const
 Returns the time signature at the given tick.
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, int curveType)
Q_INVOKABLE void addTimeSignatureEvent (qint64 tick, int numerator, int denominator)
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 TempoMapget_tempo_map () const
 Read-only access to tempo map.

Properties

QQmlListProperty< TempoEventWrappertempoEvents
QQmlListProperty< TimeSignatureEventWrapper > timeSignatureEvents READ timeSignatureEvents
double sampleRate

Detailed Description

Definition at line 90 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 105 of file tempo_map_qml_adapter.h.

Member Function Documentation

◆ addTempoEvent()

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

Definition at line 141 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 150 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 202 of file tempo_map_qml_adapter.h.

◆ getMusicalPosition()

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

Definition at line 157 of file tempo_map_qml_adapter.h.

◆ getMusicalPositionBar()

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

Definition at line 175 of file tempo_map_qml_adapter.h.

◆ getMusicalPositionBeat()

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

Definition at line 179 of file tempo_map_qml_adapter.h.

◆ getMusicalPositionSixteenth()

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

Definition at line 183 of file tempo_map_qml_adapter.h.

◆ getMusicalPositionTick()

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

Definition at line 187 of file tempo_map_qml_adapter.h.

◆ getPpq()

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

Definition at line 130 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 166 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 195 of file tempo_map_qml_adapter.h.

◆ sampleRate()

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

Definition at line 132 of file tempo_map_qml_adapter.h.

◆ setSampleRate()

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

Definition at line 133 of file tempo_map_qml_adapter.h.

◆ tempoEvents()

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

Definition at line 111 of file tempo_map_qml_adapter.h.

◆ timeSignatureEvents()

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

Definition at line 116 of file tempo_map_qml_adapter.h.

Property Documentation

◆ sampleRate

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

Definition at line 99 of file tempo_map_qml_adapter.h.

◆ tempoEvents

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

Definition at line 93 of file tempo_map_qml_adapter.h.

◆ timeSignatureEvents

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

Definition at line 96 of file tempo_map_qml_adapter.h.


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