Update mididevice.cpp

Adjust Detune

TX816 goes +/-75 cent and the value 0 tuning should not jump back to 64 according to @Skerjanc
tx812-performance
probonopd 2 weeks ago committed by GitHub
parent c372af5e4d
commit 1b4bb7b320
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
  1. 14
      src/mididevice.cpp

@ -411,16 +411,10 @@ void CMIDIDevice::MIDIMessageHandler (const u8 *pMessage, size_t nLength, unsign
break; break;
case 64: // Master Tuning case 64: // Master Tuning
LOGNOTE("MIDI-SYSEX: Set Master Tuning"); LOGNOTE("MIDI-SYSEX: Set Master Tuning");
if (val == 0)
{ // Scale to -75 to +75 cents (TX816 range)
// 0 to 127, with 0 being no detune effect applied at all m_pSynthesizer->SetMasterTune(maplong(val, 1, 127, -75, 75), mTG);
m_pSynthesizer->SetMasterTune(0, mTG);
}
else
{
// Scale to -99 to +99 cents
m_pSynthesizer->SetMasterTune(maplong(val, 1, 127, -99, 99), mTG);
}
break; break;
default: default:
// Unknown or unsupported parameter // Unknown or unsupported parameter

Loading…
Cancel
Save