sequencer
Public Types | Public Member Functions | Static Public Attributes | List of all members
sequencer::beat_duration Class Reference

#include <beat_duration.hpp>

Public Types

using rep = double
 
using internal_rep = fixed_point_type< ticks_per_unit >
 

Public Member Functions

constexpr beat_duration (rep beats) noexcept
 
constexpr rep to_double () const noexcept
 
constexpr beat_durationoperator+= (beat_duration other) noexcept
 
constexpr beat_duration operator- () noexcept
 
constexpr bool operator< (beat_duration other) const noexcept
 
constexpr bool operator<= (beat_duration other) const noexcept
 

Static Public Attributes

static constexpr auto ticks_per_unit = 1024 * 1024 * 9
 

Member Typedef Documentation

◆ internal_rep

◆ rep

Constructor & Destructor Documentation

◆ beat_duration()

constexpr sequencer::beat_duration::beat_duration ( rep  beats)
inlineexplicitnoexcept

Member Function Documentation

◆ operator+=()

constexpr beat_duration& sequencer::beat_duration::operator+= ( beat_duration  other)
inlinenoexcept

◆ operator-()

constexpr beat_duration sequencer::beat_duration::operator- ( )
inlinenoexcept

◆ operator<()

constexpr bool sequencer::beat_duration::operator< ( beat_duration  other) const
inlinenoexcept

◆ operator<=()

constexpr bool sequencer::beat_duration::operator<= ( beat_duration  other) const
inlinenoexcept

◆ to_double()

constexpr rep sequencer::beat_duration::to_double ( ) const
inlinenoexcept

Member Data Documentation

◆ ticks_per_unit

constexpr auto sequencer::beat_duration::ticks_per_unit = 1024 * 1024 * 9
static

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