I am making a SF2 library with Polyphone, it works relatively ok but I have problems with filters, I am not able to set the envelope and velocity together.
For example, I can get the envelope to control the filter and it works great.
I can also set the key ON velocity to regulate the filter, it works great.
However if I want to set both, it does not work correctly, as it cuts off lower if key ON velocity is lower, so if the filter is at 100hz when the key ON velocity is at 127 the filter cuts at 100hz, but if the key ON velocity is 35 the filter cuts at 20hz.
Any ideas?
Need help with SoundFont filters
-
- KVRist
- 247 posts since 5 May, 2020
Please post a trivial example sfz file. For example, rather than using waveforms, use a built-in waveform like "sample=*square". Map only one region; keep it simple.
Are you expecting the results to be additive? That is, you increase cutoff frequency using an envelope, and you also increase cutoff frequency based on velocity, so you want the two effects to be additive, right? (Makes sense to me, though I don't think I've ever tried it.)
In areas like this, you might get different results using different sfz players (e.g., using Sforzando rather than Polyphone.)
Are you expecting the results to be additive? That is, you increase cutoff frequency using an envelope, and you also increase cutoff frequency based on velocity, so you want the two effects to be additive, right? (Makes sense to me, though I don't think I've ever tried it.)
In areas like this, you might get different results using different sfz players (e.g., using Sforzando rather than Polyphone.)
-
- KVRist
- 247 posts since 5 May, 2020
Oops, I just noticed you're asking about sf2 rather than sfz. It'll be easier to answer if you switch to sfz, because then you can post the details.
-
- KVRer
- 13 posts since 30 Jul, 2009 from Madison, WI, USA
Sounds like you're wanting the velocity to modulate the amount the envelope affects the filter instead? If so, be sure to set your "Note-On velocity" modulator's destination to "Mod env -> filter (c)". Then, lower or delete the value in the spreadsheet view for "Mod env -> filter (c)" so that the velocity modulator has more control over this value.
