How I can fade the cut off frequency level of an LPF filter? #872
Unanswered
dortamiguel
asked this question in
Q&A
Replies: 1 comment 1 reply
-
The LPF node was never designed to do smooth transitions like that. I think your best bet might actually be to have two LPFs and then do a cross-fade between the two. The complication is that you won't be able to do that easily with any of the stock nodes. You would need to implement a custom node and do it yourself (there is a |
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
I will like to be a be able to smoothly fade the cutt off frequency of an lpf node.
I'm trying already to do this by manually calling
ma_lpf_node_reinit
every 1 millisecond with an updatedcutoffFrequency
value, but so far the result I got is not good. In the following video you can see how some noise appears when the cut off changes very fast.Kapture_2024-07-15_at_21.18.53.mp4
This is how the implementation I have looks like
This is how I'm loading every sound so I can have a global low pass filter
I have an update function that will detect if the cut_off_frequency has changed
Finally in another thread I update audio.cut_off_frequency listening for changes
Beta Was this translation helpful? Give feedback.
All reactions