mirror of
https://github.com/Ardour/ardour.git
synced 2025-12-07 15:25:01 +01:00
temporal: removed #if 0'ed old code
This commit is contained in:
parent
374283cc3f
commit
a89108c9af
1 changed files with 1 additions and 28 deletions
|
|
@ -2316,36 +2316,9 @@ Temporal::BBT_Argument
|
||||||
TempoMap::bbt_at (Temporal::Beats const & qn) const
|
TempoMap::bbt_at (Temporal::Beats const & qn) const
|
||||||
{
|
{
|
||||||
TempoMetric metric (metric_at (qn));
|
TempoMetric metric (metric_at (qn));
|
||||||
superclock_t ref (std::min (metric.tempo().sclock(), metric.meter().sclock()));
|
return BBT_Argument (metric.reftime(), metric.bbt_at (qn));
|
||||||
return BBT_Argument (ref, metric.bbt_at (qn));
|
|
||||||
}
|
}
|
||||||
|
|
||||||
#if 0
|
|
||||||
samplepos_t
|
|
||||||
TempoMap::sample_at (Temporal::Beats const & qn) const
|
|
||||||
{
|
|
||||||
return superclock_to_samples (metric_at (qn).superclock_at (qn), TEMPORAL_SAMPLE_RATE);
|
|
||||||
}
|
|
||||||
|
|
||||||
samplepos_t
|
|
||||||
TempoMap::sample_at (Temporal::BBT_Time const & bbt) const
|
|
||||||
{
|
|
||||||
return samples_to_superclock (metric_at (bbt).superclock_at (bbt), TEMPORAL_SAMPLE_RATE);
|
|
||||||
}
|
|
||||||
|
|
||||||
samplepos_t
|
|
||||||
TempoMap::sample_at (timepos_t const & pos) const
|
|
||||||
{
|
|
||||||
if (pos.is_beat()) {
|
|
||||||
return sample_at (pos.beats ());
|
|
||||||
}
|
|
||||||
|
|
||||||
/* somewhat nonsensical to call this under these conditions but ... */
|
|
||||||
|
|
||||||
return pos.superclocks();
|
|
||||||
}
|
|
||||||
#endif
|
|
||||||
|
|
||||||
superclock_t
|
superclock_t
|
||||||
TempoMap::superclock_at (Temporal::Beats const & qn) const
|
TempoMap::superclock_at (Temporal::Beats const & qn) const
|
||||||
{
|
{
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue