-
Notifications
You must be signed in to change notification settings - Fork 260
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
Support SF2.04 absolute value modulators #1391
Comments
Hi, I'm sorry if I misunderstood something, but reading the SF spec isn't this just Math.abs of the value?
Square root of squared value is just abs of that value. So making: /* it's as simple as that: */
return (fluid_real_t) mod->amount * v1 * v2; this: if(mod-> trans == 2) return fabs((fluid_real_t) mod->amount * v1 * v2);
return (fluid_real_t) mod->amount * v1 * v2; would implement it? Or am I reading the SFspec incorrectly? |
Yes, that's also my understanding. I'm just wondering what would be the purpose / use-case behind this. |
Implementing this would require to introduce a new field in the fluid_mod struct, which should also be modifiable via the API. Such an API change to the modulator API should be considered together with feature #1355. |
Here's a test soundfont: NOTE: Rename .zip to .sf2, zip is so github will accept this |
It works exactly like the I described above (tested on polyphone and spessasynth) |
Related discussion
--
Is your feature request related to a problem?
Fluidsynth doesn't support absolute value modulator transforms. In fact, it actively disables them during loading:
fluidsynth/src/sfloader/fluid_defsfont.c
Lines 1651 to 1658 in ce97c6d
Describe the solution you'd like
SF2.04 8.3:
Describe alternatives you've considered
--
Additional context
--
Please upvote this issue if you're lacking this functionality.
The text was updated successfully, but these errors were encountered: