-
Notifications
You must be signed in to change notification settings - Fork 259
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
Select soundfont samples by frequency instead of midi note numbers #932
Select soundfont samples by frequency instead of midi note numbers #932
Conversation
For detuned channels it might be better to use another key for Soundfont sample selection giving better approximations for the pitch than the original key. Example: play key 60 on 6370 Hz => use tuned key 64 for sample selection This feature is only enabled for melodic channels. For drum channels we always select Soundfont samples by key numbers.
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.
Wow, much simpler than I expected. And I clearly hear the difference. Nice job, thanks! Some tiny nit-picks below.
@mawe42 Do we need a unit test for it? Or is it simple enough?
I agree, very clean and simple implementation. Great job!
I would say no unit test needed. If something goes wrong in these codepaths, the effect will probably be very noticeable. And testing it would probably be quite difficult to do in a clean way... |
Kudos, SonarCloud Quality Gate passed! |
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.
Ok then, ready to go. Thank you!
For detuned melodic instruments we want to select soundfont samples by pitch instead of midi keys.
See issue #926.