better smooth sound

This commit is contained in:
Sergey Chernov 2025-10-13 12:25:38 +04:00
parent c87585693f
commit 21be5ed986

View File

@ -244,7 +244,7 @@ class AdvancedTubaSynth(private val context: Context) {
val result = wave * envelopeValue
// Очень мягкое ограничение на самых низких уровнях громкости
return if (abs(result) < 0.0001) {
return if (abs(result) < 0.001) {
result * (1.0 - exp(-abs(result) * 100.0))
} else {
result