MuseScore  3.4
Music composition and notation
Public Member Functions | Private Member Functions | Private Attributes | List of all members
Ms::TempoMap Class Reference

#include <tempo.h>

Inheritance diagram for Ms::TempoMap:
Inheritance graph
[legend]
Collaboration diagram for Ms::TempoMap:
Collaboration graph
[legend]

Public Member Functions

 TempoMap ()
 
void clear ()
 
void clearRange (int tick1, int tick2)
 
void dump () const
 
qreal tempo (int tick) const
 
qreal tick2time (int tick, int *sn=0) const
 
qreal tick2timeLC (int tick, int *sn) const
 
qreal tick2time (int tick, qreal time, int *sn) const
 
int time2tick (qreal time, int *sn=0) const
 
int time2tick (qreal time, int tick, int *sn) const
 
int tempoSN () const
 
void setTempo (int t, qreal)
 
void setPause (int t, qreal)
 
void delTempo (int tick)
 
void setRelTempo (qreal val)
 
qreal relTempo () const
 

Private Member Functions

void normalize ()
 
void del (int tick)
 

Private Attributes

int _tempoSN
 
qreal _tempo
 
qreal _relTempo
 

Constructor & Destructor Documentation

◆ TempoMap()

TempoMap::TempoMap ( )

Member Function Documentation

◆ clear()

void TempoMap::clear ( )

◆ clearRange()

void TempoMap::clearRange ( int  tick1,
int  tick2 
)

◆ del()

void TempoMap::del ( int  tick)
private

◆ delTempo()

void TempoMap::delTempo ( int  tick)

◆ dump()

void TempoMap::dump ( ) const

◆ normalize()

void TempoMap::normalize ( )
private

◆ relTempo()

qreal Ms::TempoMap::relTempo ( ) const
inline

◆ setPause()

void TempoMap::setPause ( int  t,
qreal  pause 
)

◆ setRelTempo()

void TempoMap::setRelTempo ( qreal  val)

◆ setTempo()

void TempoMap::setTempo ( int  t,
qreal  tempo 
)

◆ tempo()

qreal TempoMap::tempo ( int  tick) const

◆ tempoSN()

int Ms::TempoMap::tempoSN ( ) const
inline

◆ tick2time() [1/2]

qreal TempoMap::tick2time ( int  tick,
int *  sn = 0 
) const

◆ tick2time() [2/2]

qreal TempoMap::tick2time ( int  tick,
qreal  time,
int *  sn 
) const

◆ tick2timeLC()

qreal Ms::TempoMap::tick2timeLC ( int  tick,
int *  sn 
) const

◆ time2tick() [1/2]

int TempoMap::time2tick ( qreal  time,
int *  sn = 0 
) const

◆ time2tick() [2/2]

int TempoMap::time2tick ( qreal  time,
int  tick,
int *  sn 
) const

Member Data Documentation

◆ _relTempo

qreal Ms::TempoMap::_relTempo
private

◆ _tempo

qreal Ms::TempoMap::_tempo
private

◆ _tempoSN

int Ms::TempoMap::_tempoSN
private

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