From d1054489b5bc3418f287e5c59759d593eac0b338 Mon Sep 17 00:00:00 2001 From: saladplainzone Date: Fri, 11 Feb 2022 20:09:39 -0800 Subject: [PATCH] DJ School: Fixed Playback Speed not playing well with Offsets Added in a new bit to the offset fixes that accounts for song pitch --- Assets/Scripts/Games/DJSchool/DJSchool.cs | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/Assets/Scripts/Games/DJSchool/DJSchool.cs b/Assets/Scripts/Games/DJSchool/DJSchool.cs index 888e0876..a5f2f3fb 100644 --- a/Assets/Scripts/Games/DJSchool/DJSchool.cs +++ b/Assets/Scripts/Games/DJSchool/DJSchool.cs @@ -93,7 +93,7 @@ namespace RhythmHeavenMania.Games.DJSchool MultiSound.Play(new MultiSound.Sound[] { new MultiSound.Sound(sounds[0], beat), - new MultiSound.Sound(sounds[1], beat + 1f - 0.030f/Conductor.instance.secPerBeat), + new MultiSound.Sound(sounds[1], beat + 1f - (0.030f/Conductor.instance.secPerBeat)*Conductor.instance.musicSource.pitch), new MultiSound.Sound(sounds[2], beat + 2f), }); @@ -120,7 +120,7 @@ namespace RhythmHeavenMania.Games.DJSchool MultiSound.Play(new MultiSound.Sound[] { new MultiSound.Sound("djSchool/andStop1", beat), - new MultiSound.Sound("djSchool/andStop2", beat + .5f - 0.1200f/Conductor.instance.secPerBeat), + new MultiSound.Sound("djSchool/andStop2", beat + .5f - (0.1200f/Conductor.instance.secPerBeat)*Conductor.instance.musicSource.pitch), new MultiSound.Sound("djSchool/oohAlt", beat + 1.5f), }); @@ -161,8 +161,8 @@ namespace RhythmHeavenMania.Games.DJSchool new MultiSound.Sound(sounds[0], beat), new MultiSound.Sound(sounds[1], beat + .25f), new MultiSound.Sound(sounds[2], beat + .5f), - new MultiSound.Sound(sounds[3], beat + 1f - 0.0500f/Conductor.instance.secPerBeat), - new MultiSound.Sound(sounds[4], beat + 2f - 0.070f/Conductor.instance.secPerBeat), + new MultiSound.Sound(sounds[3], beat + 1f - (0.0500f/Conductor.instance.secPerBeat)*Conductor.instance.musicSource.pitch), + new MultiSound.Sound(sounds[4], beat + 2f - (0.070f/Conductor.instance.secPerBeat)*Conductor.instance.musicSource.pitch), }); BeatAction.New(djYellow, new List()