Ardour  8.7-15-gadf511264b
Temporal::MusicTimePoint Class Reference

#include <tempo.h>

Inheritance diagram for Temporal::MusicTimePoint:
[legend]

Public Member Functions

 MusicTimePoint (TempoMap const &map, superclock_t sc, Beats const &b, BBT_Time const &bbt, Tempo const &t, Meter const &m, std::string name=std::string())
 
 MusicTimePoint (TempoMap const &map, XMLNode const &)
 
virtual ~MusicTimePoint ()
 
bool operator== (MusicTimePoint const &other) const
 
timepos_t time () const
 
std::string name () const
 
void set_name (std::string const &)
 
XMLNodeget_state () const
 
- Public Member Functions inherited from Temporal::TempoPoint
 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
 
- 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
 
- Public Member Functions inherited from Temporal::MeterPoint
 MeterPoint (TempoMap const &map, Meter const &m, superclock_t sc, Beats const &b, BBT_Time const &bbt)
 
 MeterPoint (TempoMap const &map, XMLNode const &)
 
 MeterPoint (Meter const &m, Point const &p)
 
virtual ~MeterPoint ()
 
Beats quarters_at (BBT_Time const &bbt) const
 
BBT_Time bbt_at (Beats const &beats) const
 
bool operator== (MeterPoint const &other) const
 
bool operator!= (MeterPoint const &other) const
 
XMLNodeget_state () const
 
- Public Member Functions inherited from Temporal::Meter
 Meter (XMLNode const &)
 
 Meter (int8_t dpb, int8_t nv)
 
 Meter (Meter const &other)
 
virtual ~Meter ()
 
int divisions_per_bar () const
 
int note_value () const
 
int32_t ticks_per_grid () const
 
bool operator== (const Meter &other) const
 
bool operator!= (const Meter &other) const
 
Meteroperator= (Meter const &other)
 
BBT_Time bbt_add (BBT_Time const &bbt, BBT_Offset const &add) const
 
BBT_Time bbt_subtract (BBT_Time const &bbt, BBT_Offset const &sub) const
 
BBT_Time round_to_bar (BBT_Time const &) const
 
BBT_Time round_up_to_beat_div (BBT_Time const &, int beat_div) const
 
BBT_Time round_up_to_beat (BBT_Time const &bbt) const
 
BBT_Time round_to_beat (BBT_Time const &) const
 
Beats to_quarters (BBT_Offset const &) const
 
XMLNodeget_state () const
 
int set_state (XMLNode const &, int version)
 

Private Attributes

std::string _name
 

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
 
- Static Public Attributes inherited from Temporal::Meter
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
 
- Protected Attributes inherited from Temporal::Meter
int8_t _note_value
 
int8_t _divisions_per_bar
 

Detailed Description

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

Constructor & Destructor Documentation

◆ MusicTimePoint() [1/2]

Temporal::MusicTimePoint::MusicTimePoint ( TempoMap const &  map,
superclock_t  sc,
Beats const &  b,
BBT_Time const &  bbt,
Tempo const &  t,
Meter const &  m,
std::string  name = std::string() 
)
inline

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

◆ MusicTimePoint() [2/2]

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

◆ ~MusicTimePoint()

virtual Temporal::MusicTimePoint::~MusicTimePoint ( )
inlinevirtual

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

Member Function Documentation

◆ get_state()

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

◆ name()

std::string Temporal::MusicTimePoint::name ( ) const
inline

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

◆ operator==()

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

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

◆ set_name()

void Temporal::MusicTimePoint::set_name ( std::string const &  )

◆ time()

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

Reimplemented from Temporal::MeterPoint.

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

Member Data Documentation

◆ _name

std::string Temporal::MusicTimePoint::_name
private

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


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