Scale reverb level value from 0-127 to 0-99 (#128)

https://github.com/probonopd/MiniDexed/pull/122#issuecomment-1104745014
pull/127/head^2
probonopd 3 years ago committed by GitHub
parent 574707789d
commit 33ebdcff21
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 2
      src/mididevice.cpp

@ -188,7 +188,7 @@ void CMIDIDevice::MIDIMessageHandler (const u8 *pMessage, size_t nLength, unsign
break; break;
case MIDI_CC_REVERB_LEVEL: case MIDI_CC_REVERB_LEVEL:
m_pSynthesizer->SetReverbSend (pMessage[2], nTG); m_pSynthesizer->SetReverbSend (maplong (pMessage[2], 0, 127, 0, 99), nTG);
break; break;
case MIDI_CC_DETUNE_LEVEL: case MIDI_CC_DETUNE_LEVEL:

Loading…
Cancel
Save