From b66bb7c8395ad6d036bd59f00038ea7d21685aad Mon Sep 17 00:00:00 2001 From: Viper Date: Tue, 24 Dec 2024 00:09:18 +0000 Subject: [PATCH] fix something --- mod.json | 2 +- src/StaticClasses.hpp | 2 -- 2 files changed, 1 insertion(+), 3 deletions(-) diff --git a/mod.json b/mod.json index 8993bc2..22fdbf0 100644 --- a/mod.json +++ b/mod.json @@ -140,7 +140,7 @@ }, "sfx-semitone": { "name": "Pitch of the sounds", - "description": "Determines the pitch of click/release sounds using semitone. The Default semitones is set 0 (2 semitones = 1 Octave)", + "description": "Determines the pitch of click/release sounds using semitones. The Default semitones is set 0 (2 semitones = 1 Octave)", "type": "int", "default": 0, "min": -6, diff --git a/src/StaticClasses.hpp b/src/StaticClasses.hpp index 010f1fe..68fcd5c 100644 --- a/src/StaticClasses.hpp +++ b/src/StaticClasses.hpp @@ -66,11 +66,9 @@ class SoundCache { if (semitone < 0) { semitone = std::pow(2,semitone); // fix negtive octave } else { - semitone+=1; } pitchShifterDSP->setParameterFloat(FMOD_DSP_PITCHSHIFT_PITCH, semitone); // semitone is half a octave - FMODAudioEngine::sharedEngine()->m_system->update(); } ~SoundCache() {