ardour
|
#include <beats_frames_converter.h>
Public Member Functions | |
BeatsFramesConverter (TempoMap &tempo_map, framepos_t origin) | |
framepos_t | to (Evoral::Beats beats) const |
Evoral::Beats | from (framepos_t frames) const |
Public Member Functions inherited from Evoral::TimeConverter< Evoral::Beats, framepos_t > | |
TimeConverter () | |
TimeConverter (framepos_tob) | |
virtual | ~TimeConverter () |
framepos_t | origin_b () const |
void | set_origin_b (framepos_to) |
Private Attributes | |
TempoMap & | _tempo_map |
Additional Inherited Members | |
Protected Attributes inherited from Evoral::TimeConverter< Evoral::Beats, framepos_t > | |
framepos_t | _origin_b |
Converter between beats and frames. Takes distances in beats or frames from some origin (supplied to the constructor in frames), and converts them to the opposite unit, taking tempo changes into account.
Definition at line 39 of file beats_frames_converter.h.
|
inline |
Definition at line 42 of file beats_frames_converter.h.
|
virtual |
Takes a duration in frames and considers it as a distance from the origin supplied to the constructor. Returns the equivalent number of beats, taking tempo changes into account.
Implements Evoral::TimeConverter< Evoral::Beats, framepos_t >.
Definition at line 49 of file beats_frames_converter.cc.
|
virtual |
Takes a positive duration in beats and considers it as a distance from the origin supplied to the constructor. Returns the equivalent number of frames, taking tempo changes into account.
Implements Evoral::TimeConverter< Evoral::Beats, framepos_t >.
Definition at line 34 of file beats_frames_converter.cc.
|
private |
Definition at line 51 of file beats_frames_converter.h.