mirror of
https://github.com/Ardour/ardour.git
synced 2026-01-21 21:06:03 +01:00
triggerbox: remove redundant code; set_segment_tempo takes care of this later
This commit is contained in:
parent
563dc9ae21
commit
ad7db33666
1 changed files with 0 additions and 10 deletions
|
|
@ -1477,16 +1477,6 @@ AudioTrigger::estimate_tempo ()
|
|||
|
||||
cerr << name() << " Estimated bpm " << _estimated_tempo << " from " << (double) data.length / _box.session().sample_rate() << " seconds\n";
|
||||
}
|
||||
|
||||
if (!have_segment) {
|
||||
segment.set_extent (_region->start_sample(), _region->length_samples());
|
||||
}
|
||||
|
||||
segment.set_tempo (Temporal::Tempo (_estimated_tempo, 4));
|
||||
|
||||
for (auto & src : _region->sources()) {
|
||||
src->set_segment_descriptor (segment);
|
||||
}
|
||||
}
|
||||
|
||||
const double seconds = (double) data.length / _box.session().sample_rate();
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue