From 656f139145a6810407426bce7e8cd5f218a1cbaa Mon Sep 17 00:00:00 2001 From: Holger Wirtz Date: Wed, 20 May 2020 15:26:56 +0200 Subject: [PATCH] Raising loudness. --- MicroDexed.ino | 2 +- dexed.cpp | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/MicroDexed.ino b/MicroDexed.ino index cd67018..e46d902 100644 --- a/MicroDexed.ino +++ b/MicroDexed.ino @@ -694,7 +694,7 @@ void handleControlChange(byte inChannel, byte inCtrl, byte inValue) #else*/ dexed_level[instance_id]->gain(pseudo_log_curve(mapfloat(map(inValue, 0, 0x7f, 0, configuration.dexed[instance_id].sound_intensity), SOUND_INTENSITY_MIN, SOUND_INTENSITY_MAX, 0.0, SOUND_INTENSITY_AMP_MAX))); -//#endif + //#endif if (LCDML.FUNC_getID() == LCDML.OTHER_getIDFromFunction(UI_func_sound_intensity)) { LCDML.OTHER_updateFunc(); diff --git a/dexed.cpp b/dexed.cpp index 88e0116..8b613fc 100644 --- a/dexed.cpp +++ b/dexed.cpp @@ -150,7 +150,7 @@ void Dexed::getSamples(uint16_t n_samples, int16_t* buffer) { //sumbuf[i + j] += static_cast(signed_saturate_rshift(audiobuf.get()[j] >> 4, 24, 9)) / 0x8000; //sumbuf[i + j] += static_cast(signed_saturate_rshift(audiobuf.get()[j] >> 5, 24, 9)) / 0x8000; - sumbuf[i + j] += static_cast(signed_saturate_rshift(audiobuf.get()[j], 32, 13)) / 0x8000; + sumbuf[i + j] += static_cast(signed_saturate_rshift(audiobuf.get()[j], 32, 12)) / 0x8000; //sumbuf[i + j] += static_cast(audiobuf.get()[j] / 0x8000); audiobuf.get()[j] = 0; }