Skip to content

Commit

Permalink
correct led calculation
Browse files Browse the repository at this point in the history
  • Loading branch information
m-m-adams committed Nov 9, 2023
1 parent b94fcd9 commit f2aa443
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions src/deluge/dsp/master_compressor/master_compressor.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -94,8 +94,8 @@ void MasterCompressor::render(StereoSample* buffer, uint16_t numSamples, q31_t v

} while (++thisSample != bufferEnd);
//for LEDs
//9 converts to dB, quadrupled for display range since a 30db reduction is basically killing the signal
gainReduction = std::clamp<int32_t>(-(reduction) * 9 * 4, 0, 127);
//4 converts to dB, then quadrupled for display range since a 30db reduction is basically killing the signal
gainReduction = std::clamp<int32_t>(-(reduction)*4 * 4, 0, 127);
//calc compression for next round (feedback compressor)
rms = calc_rms(buffer, numSamples);
}
Expand Down
4 changes: 2 additions & 2 deletions src/deluge/model/song/song.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -2671,7 +2671,7 @@ int32_t Song::getCurrentPresetScale() {
// If we're here, must be this one!
return p;

notThisOne: {}
notThisOne : {}
}

return 255;
Expand Down Expand Up @@ -4560,7 +4560,7 @@ Instrument* Song::changeInstrumentType(Instrument* oldInstrument, InstrumentType
return NULL;
}

gotAnInstrument: {}
gotAnInstrument : {}
}

// Synth or Kit
Expand Down

0 comments on commit f2aa443

Please sign in to comment.