ardour
Public Member Functions | Protected Attributes | List of all members
ARDOUR::Meter Class Reference

#include <tempo.h>

Inheritance diagram for ARDOUR::Meter:
ARDOUR::MeterSection

Public Member Functions

 Meter (double dpb, double bt)
 
double divisions_per_bar () const
 
double note_divisor () const
 
double frames_per_bar (const Tempo &, framecnt_t sr) const
 
double frames_per_grid (const Tempo &, framecnt_t sr) const
 

Protected Attributes

double _divisions_per_bar
 
double _note_type
 

Detailed Description

Meter, or time signature (beats per bar, and which note type is a beat).

Definition at line 65 of file tempo.h.

Constructor & Destructor Documentation

ARDOUR::Meter::Meter ( double  dpb,
double  bt 
)
inline

Definition at line 67 of file tempo.h.

Member Function Documentation

double ARDOUR::Meter::divisions_per_bar ( ) const
inline

Definition at line 70 of file tempo.h.

double Meter::frames_per_bar ( const Tempo tempo,
framecnt_t  sr 
) const

Definition at line 63 of file tempo.cc.

double Meter::frames_per_grid ( const Tempo tempo,
framecnt_t  sr 
) const

Definition at line 50 of file tempo.cc.

double ARDOUR::Meter::note_divisor ( ) const
inline

Definition at line 71 of file tempo.h.

Member Data Documentation

double ARDOUR::Meter::_divisions_per_bar
protected

The number of divisions in a bar. This is a floating point value because there are musical traditions on our planet that do not limit themselves to integral numbers of beats per bar.

Definition at line 81 of file tempo.h.

double ARDOUR::Meter::_note_type
protected

The type of "note" that a division represents. For example, 4.0 is a quarter (crotchet) note, 8.0 is an eighth (quaver) note, etc.

Definition at line 86 of file tempo.h.


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