1
0
mirror of https://github.com/ppy/osu.git synced 2026-05-17 09:22:34 +08:00

Add pitch randomisation to the OsuLogo hover sample

This commit is contained in:
Jamie Taylor
2022-04-15 20:32:41 +09:00
Unverified
parent 8e6c015856
commit ef5ed262ca
+8 -2
View File
@@ -283,9 +283,15 @@ namespace osu.Game.Screens.Menu
this.Delay(early_activation).Schedule(() =>
{
if (beatIndex % timingPoint.TimeSignature.Numerator == 0)
sampleDownbeat.Play();
{
sampleDownbeat?.Play();
}
else
sampleBeat.Play();
{
var channel = sampleBeat.GetChannel();
channel.Frequency.Value = 0.95 + RNG.NextDouble(0.1);
channel.Play();
}
});
}