Why is my filter band moving when adjusting oversampling factor?
-
@HISEnberg the effect is audible yes. it should not be audible since 200hz stays 200hz even when extending the range right?
PS: if there is no other way than oversampling each bands effects, do you know if it would increase CPU load compared to wrapping the whole setup in an oversample container?
-
@Straticah It largely depends on the filter design, but I think the frequency-split template uses one-pole, so each frequency is doubled. So a LPF of 200Hz becomes 400Hz.
Maybe try one of the other filter types in Scriptnode, I am not sure but one of them may be sample rate agnostic. Another alternative is to just process whatever comes after your multiband process with the oversampling. A last alternative would be to compensate for the oversampling, dividing or multiplying the Frequency cutoff by a factor of however much you are oversampling.
So on a LPF, 2x oversample, if your frequency was initially set to 200, it should become 400. Divide the control by 2 to compensate and set it back to 200.
-
Also I am not 100% sure this is exactly what is happening in your situation, but just a semi-educated guess.
-
@HISEnberg yeah makes total sense to me. In my mind samplerate and poles were not directly connected but it seems to be like that. I am not able to use anything else than LW filters unfortunately.
Any experience on reducing CPU impact of oversampling containers?
I would have 4 separate container one for low, mid, high, master softclip.
Hope this is not more of an impact as wrapping the plugin into one.
-
@Straticah Realistically I don't think there is a way of reducing CPU for oversampling, except by using the minimum amount of the oversample container as possible. I think trying to compensate with some math might be a solution.
-
@Christoph-Hart any suggestions to keep the oversampling containers to a minimum while not processing the filters of my example since they behave that way?
-
@Straticah The filter curves are moving but it doesn't change the sound. It seems to be affecting the display only:
HiseSnippet 1868.3oc6YszaiTrEtZmTwSx.bGP73tzKXQ3pQQocd3YDKhyKCQPRrFGBrK2JcWcbOt6pZ5tbRLOVgtRvOAVwVX48evcAhcHgDKQBwFVvt4WvENUWcaWkcmLNdlDDOBRHWm5TU8cNmuyop9LMi4NzjDdLxZtC5EQQVOCtUOln8lsI9LzNagrdN7tjDAMthRzF8hHIITWjk0TugTf0rSiR+6QqsAIfvbnCDgPGx8cnusenuXfzl0eK+ffFDW5A9gZZub8cb3rM4A7t.dlBuHJh3zgbBcOhTsRXzaRRZir9W36uxJ1DWuZd1KYe+ic8bnKUawUWtVUxJ2yyq1h1KujaMukAP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kl99GkDE3KVBcgIroyW.1Fe6RYElGGXFWTzs7nQ2kqORz8S+95O9n629Q+RsOI7aWSkHuAg4VwdP38G+5l+2e3++U0WuqfGB2.jdS9vL2RExbKiChsOZESh6swM.KrKTbrW5inJdYUuzkUTInx3iAjuJ5wTS8pFPx2Vk1ZGZY0gprPiC8kvOzMIZgGF3y5.46ePLbUPOiBbyNyYm74+p7.yeFCbqpFvJBFpCxjXKwKP2OO+8mM7CxoJpeJ46LW544WOtMbCuKbfoKH+JSCNVoqGNFHndNGSOTZtU0+BSZF5pWNCU.XfRbWX4rYvoOOajcVuZV+h5Fg44v.NauPX2fghsoNU3uKJhNHlmeGX112+dMUv8pj6esTYOexghISPkUcSAMRRasqmj1ZWRRa0IIo8jGd0SZq92Is2TIsOZsBRZqc8lzV6uJIsOUMx6bEi2OGd+721Ae+3HEquH92voFynL18G7NwqNbS+H2BA5Haz387di2sZ7jmgrZzvVRYbqzWc9zmX0eoe427V09r0+o0FOSw7wqF1R+2Uh1fy6DRR+t7m3Nm8JpIuM9cImRS6cc52L+Roi83wgUdCJbKhrGU1WR2q+tws60Qic2q22Q.P3fXBKIhmPsM74zP+C3LZhgzgVQ0BWggzsnhtLysVIxPKoqnA3Jzz6V0yEVUWXSByXyfwF6ztxl1jO7mVaaF43.ZKJX4t6m3.NFxPznlcCRnuquqnss9BGHtpt32jD6BwPGiTnoF6lCp26IydlpoeAspalqqF5ei130m79D+zoYmyliwV9xBZayNkF.ozoX7EfbXOR2.QtTybxc4Ldd+1Fv.d.UD6exITy6DJxfVWHHNcFH4Eq+.Z.kjnkm9p0UM6IsAPSluv9J232BiW+SrBtUjERp7mi96O0ez5u+MbFJT+7ONQ5WAC0zqVIMbW42+38Mw+zA2DmQHwIleTVawkELtUpDvtYoeVwr3ckigGJc5vOoKDt54HGGysZjEVcRW3RS5BWdRW3JS5BWcRWXsIcg26wuP4KCx9NDYdB7bolaq9hcK0KkRSYP+FnCqdqL
If you wrap the whole bands filters into one oversampling node, you'll consume less CPU than wrapping each band into separate OS nodes obviously, but there's not way to further decrease the CPU consumption.
Keep in mind that once the node will be compiled, it will consume less CPU that it does in the scriptnode graph. -
@Matt_SF interesting in my compiled build it was indeed audible, i will check your example thank you :)
-
It's a known bug, the oversampling messes up the filter display (by the same factor probably).
It shouldn't affect the sound (haven't checked compiled plugin). The workaround is to duplicate your filter setup in a separate node (could be a modchain node), output these filters to the same external slot, put them into a soft bypass node so that they're not actually using up your CPU and then use them for the display while using the oversampled filters for the actual processing.
Hacky, but it should work.
-
@aaronventure Hacky indeed, but I confirm it works :grinning_face_with_sweat:
-
@Matt_SF @aaronventure if its indeed just visible i might have messed up the dial linking when wrapping into an oversampling container. because in my build it was very audible and unusable.
Will do that again and double check. If its just visual i will not have a problem with that. thank you.
-
-
@Straticah If you have Plugin Doctor app, you can also check it from there. This will give you a better understanding of whether it's affecting your sound or not.
-
Antialiasing gets complex if you want to minimise oversampling.
You have to dig into the research and develop your own filters