Reduce 'cursor-tap' sample playback volume on MouseUp

This commit is contained in:
Jamie Taylor 2022-03-04 20:14:14 +09:00
parent 6673e456c5
commit 1e246bf560
No known key found for this signature in database
GPG Key ID: 2ACFA8B6370B8C8C
1 changed files with 1 additions and 0 deletions

View File

@ -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();
}