fix incorrect use of TempoMetric API
This commit is contained in:
parent
7dc3db49eb
commit
37332af742
@ -660,8 +660,8 @@ VST3Plugin::connect_and_run (BufferSet& bufs,
|
|||||||
/* loop start/end in quarter notes */
|
/* loop start/end in quarter notes */
|
||||||
|
|
||||||
TempoMap::SharedPtr tmap (TempoMap::use());
|
TempoMap::SharedPtr tmap (TempoMap::use());
|
||||||
context.cycleStartMusic = DoubleableBeats (tmap->metric_at (looploc->start()).quarters_at (looploc->start ())).to_double ();
|
context.cycleStartMusic = DoubleableBeats (tmap->quarters_at (looploc->start ())).to_double ();
|
||||||
context.cycleEndMusic = DoubleableBeats (tmap->metric_at (looploc->end()).quarters_at (looploc->end ())).to_double ();
|
context.cycleEndMusic = DoubleableBeats (tmap->quarters_at (looploc->end ())).to_double ();
|
||||||
context.state |= Vst::ProcessContext::kCycleValid;
|
context.state |= Vst::ProcessContext::kCycleValid;
|
||||||
context.state |= Vst::ProcessContext::kCycleActive;
|
context.state |= Vst::ProcessContext::kCycleActive;
|
||||||
} catch (...) {
|
} catch (...) {
|
||||||
|
Loading…
Reference in New Issue
Block a user