Skip to content

Commit

Permalink
remove unneccessary has value
Browse files Browse the repository at this point in the history
  • Loading branch information
daschuer authored Nov 7, 2024
1 parent 4b77bd5 commit 7f7ad44
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/effects/backends/builtin/metronomeeffect.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -137,11 +137,11 @@ void MetronomeEffect::processChannel(

if (shouldSync && hasBeatInfo) {

Check failure on line 138 in src/effects/backends/builtin/metronomeeffect.cpp

View workflow job for this annotation

GitHub Actions / Windows 2019 (MSVC)

syntax error: 'if'

Check failure on line 138 in src/effects/backends/builtin/metronomeeffect.cpp

View workflow job for this annotation

GitHub Actions / Windows 2019 (MSVC)

syntax error: missing ';' before '{'

Check failure on line 138 in src/effects/backends/builtin/metronomeeffect.cpp

View workflow job for this annotation

GitHub Actions / Windows 2019 (MSVC)

'{': missing function header (old-style formal list?)
double beatFractionBufferEnd = *groupFeatures.beat_fraction_buffer_end;
std::optional<GroupFeatureBeatLength> beatLengthAndScratch = groupFeatures.beat_length;
if (!beatLengthAndScratch.has_value() || beatLengthAndScratch->scratch_rate == 0.0) {
GroupFeatureBeatLength beatLengthAndScratch = *groupFeatures.beat_length;
if (beatLengthAndScratch.scratch_rate == 0.0) {
return;
}
double beatLength = beatLengthAndScratch->frames / beatLengthAndScratch->scratch_rate;
double beatLength = beatLengthAndScratch.frames / beatLengthAndScratch.scratch_rate;
const bool needsPreviousBeat = beatLength < 0;
double beatToBufferEndFrames = std::abs(beatLength) *
(needsPreviousBeat ? (1 - beatFractionBufferEnd)
Expand Down

0 comments on commit 7f7ad44

Please sign in to comment.