setMasterVolume is global for all TGs

tx812-performance
probonopd 2 weeks ago committed by GitHub
parent f94edb32d3
commit 734f4a2ad3
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
  1. 2
      src/mididevice.cpp

@ -425,7 +425,7 @@ void CMIDIDevice::MIDIMessageHandler (const u8 *pMessage, size_t nLength, unsign
case 26: // Audio Output Level Attenuator case 26: // Audio Output Level Attenuator
LOGNOTE("MIDI-SYSEX: Set Audio Output Level Attenuator %d to %d", nTG, val & 0x0F); LOGNOTE("MIDI-SYSEX: Set Audio Output Level Attenuator %d to %d", nTG, val & 0x0F);
// Set Master volume (0-99) for the TG. Scale from 0-7 to what Synth_Dexed uses (0-99) // Set Master volume (0-99) for the TG. Scale from 0-7 to what Synth_Dexed uses (0-99)
m_pSynthesizer->setMasterVolume(maplong(val, 0, 7, 0, 1), nTG); m_pSynthesizer->setMasterVolume(maplong(val, 0, 7, 0, 1));
break; break;
case 64: // Master Tuning case 64: // Master Tuning
LOGNOTE("MIDI-SYSEX: Set Master Tuning"); LOGNOTE("MIDI-SYSEX: Set Master Tuning");

Loading…
Cancel
Save