Skip to content

Commit

Permalink
Scale reverb level value from 0-127 to 0-99
Browse files Browse the repository at this point in the history
  • Loading branch information
probonopd committed Apr 21, 2022
1 parent 5747077 commit c4ec757
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/mididevice.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down

0 comments on commit c4ec757

Please sign in to comment.