mirror of https://github.com/ppy/osu
Reduce 'cursor-tap' sample playback volume on MouseUp
This commit is contained in:
parent
6673e456c5
commit
1e246bf560
|
@ -140,6 +140,7 @@ private void playTapSample(double baseFrequency = 1f)
|
|||
// Scale to [-0.75, 0.75] so that the sample isn't fully panned left or right (sounds weird)
|
||||
channel.Balance.Value = ((activeCursor.X / DrawWidth) * 2 - 1) * 0.75;
|
||||
channel.Frequency.Value = baseFrequency - (random_range / 2f) + RNG.NextDouble(random_range);
|
||||
channel.Volume.Value = baseFrequency;
|
||||
|
||||
channel.Play();
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue