From 33ebdcff21d068dc1b103def3ad6a92a9f5dc38d Mon Sep 17 00:00:00 2001 From: probonopd Date: Thu, 21 Apr 2022 08:23:30 +0200 Subject: [PATCH] Scale reverb level value from 0-127 to 0-99 (#128) https://github.com/probonopd/MiniDexed/pull/122#issuecomment-1104745014 --- src/mididevice.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/mididevice.cpp b/src/mididevice.cpp index 888c59d..dd9a916 100644 --- a/src/mididevice.cpp +++ b/src/mididevice.cpp @@ -188,7 +188,7 @@ void CMIDIDevice::MIDIMessageHandler (const u8 *pMessage, size_t nLength, unsign break; case MIDI_CC_REVERB_LEVEL: - m_pSynthesizer->SetReverbSend (pMessage[2], nTG); + m_pSynthesizer->SetReverbSend (maplong (pMessage[2], 0, 127, 0, 99), nTG); break; case MIDI_CC_DETUNE_LEVEL: