mirror of
https://github.com/Ardour/ardour.git
synced 2025-12-17 04:06:26 +01:00
Temporal: remove last (?) double-based method
This commit is contained in:
parent
f328fdc56a
commit
3eac6ac7dc
1 changed files with 0 additions and 12 deletions
|
|
@ -288,18 +288,6 @@ public:
|
||||||
int32_t _beats;
|
int32_t _beats;
|
||||||
int32_t _ticks;
|
int32_t _ticks;
|
||||||
|
|
||||||
/* this needs to exist because Evoral::Sequence is templated, and some
|
|
||||||
* other possible template types cannot provide ::from_double
|
|
||||||
*/
|
|
||||||
|
|
||||||
friend class Evoral::Sequence<Beats>;
|
|
||||||
explicit Beats (double beats) {
|
|
||||||
double whole;
|
|
||||||
const double frac = modf (beats, &whole);
|
|
||||||
|
|
||||||
_beats = whole;
|
|
||||||
_ticks = frac * PPQN;
|
|
||||||
}
|
|
||||||
};
|
};
|
||||||
|
|
||||||
/* Only contexts that really, absolutely need a floating point representation
|
/* Only contexts that really, absolutely need a floating point representation
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue