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

#include <beats.h>

Inheritance diagram for Temporal::DoubleableBeats:
[legend]

Public Member Functions

 DoubleableBeats (Beats const &b)
 
double to_double () const
 
- Public Member Functions inherited from Temporal::Beats
 Beats ()
 
 Beats (const Beats &other)
 
 Beats (int64_t b, int64_t t)
 
int64_t to_ticks () const
 
int64_t to_ticks (uint32_t ppqn) const
 
int64_t get_beats () const
 
int32_t get_ticks () const
 
Beatsoperator= (double time)
 
Beatsoperator= (const Beats &other)
 
Beats round_up_to_multiple (Beats const &multiple) const
 
Beats round_to_multiple (Beats const &multiple) const
 
Beats round_down_to_multiple (Beats const &multiple) const
 
Beats round_to_beat () const
 
Beats round_up_to_beat () const
 
Beats round_down_to_beat () const
 
Beats prev_beat () const
 
Beats next_beat () const
 
Beats round_to_subdivision (int subdivision, RoundMode dir) const
 
Beats abs () const
 
Beats diff (Beats const &other) const
 
bool operator== (const Beats &b) const
 
bool operator== (int beats) const
 
bool operator!= (const Beats &b) const
 
bool operator< (const Beats &b) const
 
bool operator<= (const Beats &b) const
 
bool operator> (const Beats &b) const
 
bool operator>= (const Beats &b) const
 
Beats operator+ (const Beats &b) const
 
Beats operator- (const Beats &b) const
 
Beats operator- () const
 
Beats operator* (int32_t factor) const
 
Beats operator/ (int32_t factor) const
 
Beats operator* (ratio_t const &factor) const
 
Beats operator/ (ratio_t const &factor) const
 
Beats operator% (Beats const &b) const
 
Beats operator%= (Beats const &b)
 
Beats operator/ (Beats const &other) const
 
Beats operator* (Beats const &other) const
 
Beatsoperator+= (const Beats &b)
 
Beatsoperator-= (const Beats &b)
 
bool operator! () const
 
 operator bool () const
 
std::string str () const
 

Additional Inherited Members

- Static Public Member Functions inherited from Temporal::Beats
static Beats from_double (double beats)
 
static Beats beats (int64_t beats)
 
static Beats ticks (int64_t ticks)
 
static Beats ticks_at_rate (int64_t ticks, uint32_t ppqn)
 
static Beats one_tick ()
 
- Static Public Attributes inherited from Temporal::Beats
static const int32_t PPQN = Temporal::ticks_per_beat
 
- Protected Attributes inherited from Temporal::Beats
int64_t _ticks
 

Detailed Description

Definition at line 256 of file beats.h.

Constructor & Destructor Documentation

◆ DoubleableBeats()

Temporal::DoubleableBeats::DoubleableBeats ( Beats const &  b)
inline

Definition at line 259 of file beats.h.

Member Function Documentation

◆ to_double()

double Temporal::DoubleableBeats::to_double ( ) const
inline

Definition at line 260 of file beats.h.


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