mirror of
https://github.com/ppy/osu.git
synced 2025-01-27 02:32:59 +08:00
Add pitch randomisation to the OsuLogo hover sample
This commit is contained in:
parent
8e6c015856
commit
ef5ed262ca
@ -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();
|
||||
}
|
||||
});
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user