Ardour  9.0-pre0-582-g084a23a80d
Temporal::TempoPoint Class Reference

#include <tempo.h>

Inheritance diagram for Temporal::TempoPoint:
[legend]

Public Member Functions

 TempoPoint (TempoMap const &map, Tempo const &t, superclock_t sc, Beats const &b, BBT_Time const &bbt)
 
 TempoPoint (Tempo const &t, Point const &p)
 
 TempoPoint (TempoMap const &map, XMLNode const &)
 
virtual ~TempoPoint ()
 
TempoPointoperator= (Tempo const &t)
 
superclock_t superclock_at (Beats const &qn) const
 
samplepos_t sample_at (Beats const &qn) const
 
superclock_t superclocks_per_note_type_at (timepos_t const &) const
 
double note_types_per_minute_at_DOUBLE (timepos_t const &pos) const
 
double omega () const
 
void compute_omega_from_next_tempo (TempoPoint const &next_tempo)
 
void compute_omega_from_distance_and_next_tempo (Beats const &quarter_duration, TempoPoint const &next_tempo)
 
void compute_omega_from_quarter_duration (Beats const &quarter_duration, superclock_t end_scpqn)
 
bool actually_ramped () const
 
XMLNodeget_state () const
 
int set_state (XMLNode const &, int version)
 
bool operator== (TempoPoint const &other) const
 
bool operator!= (TempoPoint const &other) const
 
Beats quarters_at_sample (samplepos_t sc) const
 
Beats quarters_at_superclock (superclock_t sc) const
 
timepos_t time () const
 
- Public Member Functions inherited from Temporal::Tempo
 Tempo (XMLNode const &)
 
virtual ~Tempo ()
 
 Tempo (double npm, int8_t note_type)
 
 Tempo (double npm, double enpm, int8_t note_type)
 
double note_types_per_minute () const
 
double end_note_types_per_minute () const
 
double quarter_notes_per_minute () const
 
double samples_per_note_type (int sr) const
 
double samples_per_quarter_note (int sr) const
 
void set_note_types_per_minute (double npm)
 
int note_type () const
 
superclock_t superclocks_per_note_type () const
 
superclock_t superclocks_per_note_type (int note_type) const
 
superclock_t superclocks_per_quarter_note () const
 
superclock_t end_superclocks_per_note_type () const
 
superclock_t end_superclocks_per_note_type (int note_type) const
 
superclock_t end_superclocks_per_quarter_note () const
 
bool locked_to_meter () const
 
void set_locked_to_meter (bool yn)
 
bool continuing () const
 
void set_continuing (bool yn)
 
Type type () const
 
bool ramped () const
 
XMLNodeget_state () const
 
int set_state (XMLNode const &, int version)
 
bool operator== (Tempo const &other) const
 
bool operator!= (Tempo const &other) const
 
- Public Member Functions inherited from Temporal::Point
 Point (TempoMap const &map, superclock_t sc, Beats const &b, BBT_Time const &bbt)
 
 Point (TempoMap const &map, XMLNode const &)
 
virtual ~Point ()
 
void set (superclock_t sc, Beats const &b, BBT_Time const &bbt)
 
superclock_t sclock () const
 
Beats const & beats () const
 
BBT_Time const & bbt () const
 
samplepos_t sample (int sr) const
 
bool operator== (Point const &other) const
 
bool operator!= (Point const &other) const
 
- Public Member Functions inherited from Temporal::MapOwned
TempoMap const & map () const
 

Private Member Functions

void set_omega (double v)
 

Private Attributes

double _omega
 
friend TempoMap
 

Additional Inherited Members

- Public Types inherited from Temporal::Tempo
enum  Type { Ramped , Constant }
 
- Static Public Attributes inherited from Temporal::Tempo
static std::string xml_node_name
 
- Protected Member Functions inherited from Temporal::Tempo
void set_end_npm (double)
 
- Protected Member Functions inherited from Temporal::Point
void add_state (XMLNode &) const
 
void map_reset_set_sclock_for_sr_change (superclock_t sc)
 
- Protected Member Functions inherited from Temporal::MapOwned
 MapOwned (TempoMap const &map)
 
virtual ~MapOwned ()
 
void set_map (TempoMap const &map)
 
- Static Protected Member Functions inherited from Temporal::Tempo
static superclock_t double_npm_to_scpn (double npm)
 
- Protected Attributes inherited from Temporal::Tempo
double _npm
 
double _enpm
 
superclock_t _superclocks_per_note_type
 
superclock_t _end_superclocks_per_note_type
 
int8_t _note_type
 
bool _locked_to_meter
 
bool _continuing
 
- Protected Attributes inherited from Temporal::Point
superclock_t _sclock
 
Beats _quarters
 
BBT_Time _bbt
 
- Protected Attributes inherited from Temporal::MapOwned
TempoMap const * _map
 

Detailed Description

Definition at line 359 of file temporal/temporal/tempo.h.

Constructor & Destructor Documentation

◆ TempoPoint() [1/3]

Temporal::TempoPoint::TempoPoint ( TempoMap const &  map,
Tempo const &  t,
superclock_t  sc,
Beats const &  b,
BBT_Time const &  bbt 
)
inline

Definition at line 362 of file temporal/temporal/tempo.h.

◆ TempoPoint() [2/3]

Temporal::TempoPoint::TempoPoint ( Tempo const &  t,
Point const &  p 
)
inline

Definition at line 363 of file temporal/temporal/tempo.h.

◆ TempoPoint() [3/3]

Temporal::TempoPoint::TempoPoint ( TempoMap const &  map,
XMLNode const &   
)

◆ ~TempoPoint()

virtual Temporal::TempoPoint::~TempoPoint ( )
inlinevirtual

Definition at line 366 of file temporal/temporal/tempo.h.

Member Function Documentation

◆ actually_ramped()

bool Temporal::TempoPoint::actually_ramped ( ) const
inline

Definition at line 401 of file temporal/temporal/tempo.h.

◆ compute_omega_from_distance_and_next_tempo()

void Temporal::TempoPoint::compute_omega_from_distance_and_next_tempo ( Beats const &  quarter_duration,
TempoPoint const &  next_tempo 
)

◆ compute_omega_from_next_tempo()

void Temporal::TempoPoint::compute_omega_from_next_tempo ( TempoPoint const &  next_tempo)

◆ compute_omega_from_quarter_duration()

void Temporal::TempoPoint::compute_omega_from_quarter_duration ( Beats const &  quarter_duration,
superclock_t  end_scpqn 
)

◆ get_state()

XMLNode& Temporal::TempoPoint::get_state ( ) const

◆ note_types_per_minute_at_DOUBLE()

double Temporal::TempoPoint::note_types_per_minute_at_DOUBLE ( timepos_t const &  pos) const
inline

Definition at line 391 of file temporal/temporal/tempo.h.

◆ omega()

double Temporal::TempoPoint::omega ( ) const
inline

Definition at line 395 of file temporal/temporal/tempo.h.

◆ operator!=()

bool Temporal::TempoPoint::operator!= ( TempoPoint const &  other) const
inline

Definition at line 409 of file temporal/temporal/tempo.h.

◆ operator=()

TempoPoint& Temporal::TempoPoint::operator= ( Tempo const &  t)
inline

Definition at line 369 of file temporal/temporal/tempo.h.

◆ operator==()

bool Temporal::TempoPoint::operator== ( TempoPoint const &  other) const
inline

Definition at line 406 of file temporal/temporal/tempo.h.

◆ quarters_at_sample()

Beats Temporal::TempoPoint::quarters_at_sample ( samplepos_t  sc) const
inline

Definition at line 413 of file temporal/temporal/tempo.h.

◆ quarters_at_superclock()

Beats Temporal::TempoPoint::quarters_at_superclock ( superclock_t  sc) const

◆ sample_at()

samplepos_t Temporal::TempoPoint::sample_at ( Beats const &  qn) const
inline

Definition at line 382 of file temporal/temporal/tempo.h.

◆ set_omega()

void Temporal::TempoPoint::set_omega ( double  v)
private

◆ set_state()

int Temporal::TempoPoint::set_state ( XMLNode const &  ,
int  version 
)

◆ superclock_at()

superclock_t Temporal::TempoPoint::superclock_at ( Beats const &  qn) const

◆ superclocks_per_note_type_at()

superclock_t Temporal::TempoPoint::superclocks_per_note_type_at ( timepos_t const &  ) const

◆ time()

timepos_t Temporal::TempoPoint::time ( ) const
inlinevirtual

Implements Temporal::Point.

Reimplemented in Temporal::MusicTimePoint.

Definition at line 416 of file temporal/temporal/tempo.h.

Member Data Documentation

◆ _omega

double Temporal::TempoPoint::_omega
private

Definition at line 419 of file temporal/temporal/tempo.h.

◆ TempoMap

friend Temporal::TempoPoint::TempoMap
private

Definition at line 421 of file temporal/temporal/tempo.h.


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