From: <sv...@op...> - 2024-11-01 15:38:33
|
Author: sagamusix Date: Fri Nov 1 16:38:20 2024 New Revision: 22048 URL: https://source.openmpt.org/browse/openmpt/?op=revision&rev=22048 Log: [Fix] GT2: Tremolo and Vibrato could not be disabled. Modified: trunk/OpenMPT/soundlib/Load_gt2.cpp Modified: trunk/OpenMPT/soundlib/Load_gt2.cpp ============================================================================== --- trunk/OpenMPT/soundlib/Load_gt2.cpp Fri Nov 1 16:03:06 2024 (r22047) +++ trunk/OpenMPT/soundlib/Load_gt2.cpp Fri Nov 1 16:38:20 2024 (r22048) @@ -1123,7 +1123,7 @@ events.push_back(InstrumentSynth::Event::GTK_EnableTremolo(true)); break; case 0x84: // 84: Tremolo Off - events.push_back(InstrumentSynth::Event::GTK_EnableTremolo(true)); + events.push_back(InstrumentSynth::Event::GTK_EnableTremolo(false)); break; case 0x85: // 85: Set Tremolo Width events.push_back(InstrumentSynth::Event::GTK_SetVibratoParams(std::max(chunk.ReadUint8(), uint8(1)), 0)); @@ -1136,7 +1136,7 @@ events.push_back(InstrumentSynth::Event::GTK_EnableVibrato(true)); break; case 0xA4: // A4: Vibrato Off - events.push_back(InstrumentSynth::Event::GTK_EnableVibrato(true)); + events.push_back(InstrumentSynth::Event::GTK_EnableVibrato(false)); break; case 0xA5: // A5: Set Vibrato Width events.push_back(InstrumentSynth::Event::GTK_SetVibratoParams(std::max(chunk.ReadUint8(), uint8(1)), 0)); |