Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Analysis: Add support for overriding variable/constant BPM on a per-track basis #10931

Merged
merged 11 commits into from
Oct 5, 2022
Prev Previous commit
Next Next commit
AnalyzerBeats: Respect AnalyzerTrack::Options::useFixedTempo
  • Loading branch information
fwcd committed Oct 4, 2022
commit 19b3cd7942a77b0f483e1a5f14bc94ffe3223628
3 changes: 2 additions & 1 deletion src/analyzer/analyzerbeats.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,8 @@ bool AnalyzerBeats::initialize(AnalyzerTrack track,
return false;
}

m_bPreferencesFixedTempo = m_bpmSettings.getFixedTempoAssumption();
m_bPreferencesFixedTempo = track.getOptions().useFixedTempo.value_or(
m_bpmSettings.getFixedTempoAssumption());
m_bPreferencesReanalyzeOldBpm = m_bpmSettings.getReanalyzeWhenSettingsChange();
m_bPreferencesReanalyzeImported = m_bpmSettings.getReanalyzeImported();
m_bPreferencesFastAnalysis = m_bpmSettings.getFastAnalysis();
Expand Down