Skip to content

Commit

Permalink
Scale more CCs
Browse files Browse the repository at this point in the history
  • Loading branch information
probonopd committed Apr 21, 2022
1 parent 75e2970 commit 3f60ba0
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/mididevice.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -196,19 +196,19 @@ void CMIDIDevice::MIDIMessageHandler (const u8 *pMessage, size_t nLength, unsign
break;

case MIDI_CC_RESONANCE:
m_pSynthesizer->SetResonance (pMessage[2], nTG);
m_pSynthesizer->SetResonance (maplong (pMessage[2], 0, 127, 0, 99), nTG);
break;

case MIDI_CC_FREQUENCY_CUTOFF:
m_pSynthesizer->SetCutoff (pMessage[2], nTG);
m_pSynthesizer->SetCutoff (maplong (pMessage[2], 0, 127, 0, 99), nTG);
break;

case MIDI_CC_REVERB_LEVEL:
m_pSynthesizer->SetReverbSend (maplong (pMessage[2], 0, 127, 0, 99), nTG);
break;

case MIDI_CC_DETUNE_LEVEL:
m_pSynthesizer->SetMasterTune (pMessage[2], nTG);
m_pSynthesizer->SetMasterTune (maplong (pMessage[2], 0, 127, -99, 99), nTG);
break;

case MIDI_CC_ALL_SOUND_OFF:
Expand Down

0 comments on commit 3f60ba0

Please sign in to comment.