1
0
mirror of https://github.com/ppy/osu.git synced 2024-11-11 17:07:38 +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
parent 8e6c015856
commit ef5ed262ca
No known key found for this signature in database
GPG Key ID: 2ACFA8B6370B8C8C

View File

@ -283,9 +283,15 @@ namespace osu.Game.Screens.Menu
this.Delay(early_activation).Schedule(() => this.Delay(early_activation).Schedule(() =>
{ {
if (beatIndex % timingPoint.TimeSignature.Numerator == 0) if (beatIndex % timingPoint.TimeSignature.Numerator == 0)
sampleDownbeat.Play(); {
sampleDownbeat?.Play();
}
else else
sampleBeat.Play(); {
var channel = sampleBeat.GetChannel();
channel.Frequency.Value = 0.95 + RNG.NextDouble(0.1);
channel.Play();
}
}); });
} }