-
Notifications
You must be signed in to change notification settings - Fork 289
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
音量域調整機能 #1901
The head ref may contain hidden characters: "\u30DC\u30EA\u30E5\u30FC\u30E0\u88DC\u6B63\u6A5F\u80FD"
音量域調整機能 #1901
Conversation
src/sing/domain.ts
Outdated
export function isValidGuideVolumeScale(guideVolumeScale: number) { | ||
return ( | ||
Number.isInteger(guideVolumeScale) && | ||
guideVolumeScale <= 20 && | ||
guideVolumeScale >= -20 | ||
); | ||
} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
結構大きめ。いろんなキャラ試した感じ15あれは十分そうだけど、まあ大きめにしてみています。
src/store/singing.ts
Outdated
frameAudioQuery: FrameAudioQuery | ||
) => { | ||
frameAudioQuery.volume = frameAudioQuery.volume.map((value) => { | ||
return value * Math.pow(10, guideVolumeScale / 20); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
frameAudioQuery.volume
の単位は振幅です。
guideVolumeScale
の単位はdBということにしているので*= 10^(n/20)
で良いはず。
こちらの機能がないとリリースできないキャラがいるので、ちょっと申し訳ないのですがレビューなしでもマージさせていただこうと思います! |
1057c1e
to
cad7ef6
Compare
width: 50px; | ||
width: 55px; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
5文字になった方に合わせたのでちょっと横を長く
ちょっともしかしたら実装ミスあるかもなのですが、緊急よりということでマージさせていただきます 🙇 |
内容
ガイドで生成された歌い方の音量を、ハミング合成する前にデシベル単位で大きくしたり小さくしたりできます。
一部のキャラクターで音量が小さいことが問題だったので、大きくできるようにしたという文脈です。
の解決プルリクエストです。
パラメーターの名称はこちらに合わせました。
関連 Issue
resolve #1870
その他