Skip to content

Commit c0d1785

Browse files
committed
gr to gainReduction
1 parent 1340af7 commit c0d1785

File tree

5 files changed

+5
-5
lines changed

5 files changed

+5
-5
lines changed

src/deluge/dsp/master_compressor/master_compressor.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -78,7 +78,7 @@ void MasterCompressor::render(StereoSample* buffer, uint16_t numSamples) {
7878
} while (++thisSample != bufferEnd);
7979
//for LEDs
8080
//9 converts to dB, quadrupled for display range since a 30db reduction is basically killing the signal
81-
gr = std::clamp<int32_t>(-reduction * 9 * 4, 0, 127);
81+
gainReduction = std::clamp<int32_t>(-reduction * 9 * 4, 0, 127);
8282
}
8383

8484
//output range is 0-21 (2^31)

src/deluge/dsp/master_compressor/master_compressor.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@ class MasterCompressor : public Compressor {
3535
void render(StereoSample* buffer, uint16_t numSamples);
3636
void updateER();
3737
float calc_rms(StereoSample* buffer, uint16_t numSamples);
38-
uint8_t gr;
38+
uint8_t gainReduction;
3939
q31_t threshold;
4040
q31_t shape;
4141
q31_t ratio;

src/deluge/gui/views/arranger_view.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2881,7 +2881,7 @@ void ArrangerView::graphicsRoutine() {
28812881
if (modKnobMode == 4 && editingComp) { //upper
28822882
counter = (counter + 1) % 5;
28832883
if (counter == 0) {
2884-
uint8_t gr = AudioEngine::mastercompressor.gr;
2884+
uint8_t gr = AudioEngine::mastercompressor.gainReduction;
28852885
//uint8_t mv = int(6 * AudioEngine::mastercompressor.meanVolume);
28862886
indicator_leds::setKnobIndicatorLevel(1, gr); //Gain Reduction LED
28872887
//indicator_leds::setKnobIndicatorLevel(0, mv); //Input level LED

src/deluge/gui/views/session_view.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1920,7 +1920,7 @@ void SessionView::graphicsRoutine() {
19201920
if (modKnobMode == 4 && editingComp) { //upper
19211921
counter = (counter + 1) % 5;
19221922
if (counter == 0) {
1923-
uint8_t gr = AudioEngine::mastercompressor.gr;
1923+
uint8_t gr = AudioEngine::mastercompressor.gainReduction;
19241924
//uint8_t mv = int(6 * AudioEngine::mastercompressor.meanVolume);
19251925
indicator_leds::setKnobIndicatorLevel(1, gr); //Gain Reduction LED
19261926
//indicator_leds::setKnobIndicatorLevel(0, mv); //Input level LED

src/deluge/model/song/song.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -140,7 +140,7 @@ Song::Song() : backedUpParamManagers(sizeof(BackedUpParamManager)) {
140140
masterCompressorRelease = releaseRateTable[5] << 2;
141141
masterCompressorThresh = ONE_Q31;
142142
masterCompressorRatio = ONE_Q31 >> 1;
143-
AudioEngine::mastercompressor.gr = 0.0;
143+
AudioEngine::mastercompressor.gainReduction = 0.0;
144144

145145
dirPath.set("SONGS");
146146
}

0 commit comments

Comments
 (0)