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:
parent
8e6c015856
commit
ef5ed262ca
@ -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();
|
||||||
|
}
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user