ardour
|
#include <beats_frames_converter.h>
Public Member Functions | |
DoubleBeatsFramesConverter (TempoMap &tempo_map, framepos_t origin) | |
framepos_t | to (double beats) const |
double | from (framepos_t frames) const |
Public Member Functions inherited from Evoral::TimeConverter< double, 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< double, 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 58 of file beats_frames_converter.h.
|
inline |
Definition at line 61 of file beats_frames_converter.h.
|
virtual |
As above, but with beats in double instead (for GUI).
Implements Evoral::TimeConverter< double, framepos_t >.
Definition at line 68 of file beats_frames_converter.cc.
|
virtual |
As above, but with beats in double instead (for GUI).
Implements Evoral::TimeConverter< double, framepos_t >.
Definition at line 56 of file beats_frames_converter.cc.
|
private |
Definition at line 70 of file beats_frames_converter.h.