mirror of
https://github.com/osukey/osukey.git
synced 2025-08-06 16:13:57 +09:00
Apply frequency adjust to channel rather than sample for safety
This commit is contained in:
@ -279,14 +279,16 @@ namespace osu.Game.Screens.Edit.Timing
|
|||||||
{
|
{
|
||||||
stick.FlashColour(overlayColourProvider.Content1, beatLength, Easing.OutQuint);
|
stick.FlashColour(overlayColourProvider.Content1, beatLength, Easing.OutQuint);
|
||||||
|
|
||||||
if (clunk != null)
|
Schedule(() =>
|
||||||
{
|
{
|
||||||
Schedule(() =>
|
var channel = clunk?.GetChannel();
|
||||||
|
|
||||||
|
if (channel != null)
|
||||||
{
|
{
|
||||||
clunk.Frequency.Value = RNG.NextDouble(0.98f, 1.02f);
|
channel.Frequency.Value = RNG.NextDouble(0.98f, 1.02f);
|
||||||
clunk.Play();
|
channel.Play();
|
||||||
});
|
}
|
||||||
}
|
});
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user