FFT Size change depends on manual reset

Daniel Neshama Itach's icon

I am currently working on a M4L device that utilizes FFT, and I have run into an issue that I was hoping someone could help me with.
Specifically, I have created a variable argument that allows the user to change the FFT Size via a dropdown menu. However, every time I change the FFT Size, the device requires a manual reset for each knob in order for the effect to be audible again.

I am hoping someone can provide me with guidance on how to eliminate this manual reset requirement so that the effect is immediately audible after changing the FFT Size. Any suggestions or tips would be greatly appreciated!

Thank you in advance for your help.

Max Patch
Copy patch and select New From Clipboard in Max.

👽!t W∆s ∆lienz!👽's icon

(hot damn, this'll be a good thread to read, can't wait for the answers... my guess: whatever the solution is, if it exists, you'll need further declicking after it - is there a way to reset the signal-vector size for the entire device, as well as the FFT-size, all at once? try that, if so. that's my quick/unsure-of-myself suggestion 😅)

Roman Thilenius's icon

in max i just restart audio to get that going. in m4l, no idea? you would have to put the FFT into a poly~ i think. (or wasn´t there a better method, which i forgot about? some mesage to pfft maybe?)

Daniel Neshama Itach's icon

I have already put it in a Poly~ object, I am dreaming on switching the pfft size with a knob actually

Roman Thilenius's icon

what about using "mute 0, clear, mute 1" to pfft~ to choose one from several different pfft instances with different fft lenghts and/or hop sizes?

Daniel Neshama Itach's icon

Can you give an example? Do you mean by an object? a massege?
Also the poly~ is a cpu friendly alternative to that as far as I know.

Need to mention im quite new to m4l (2 months)

Daniel Neshama Itach's icon

Solved!
The solution was to send a bang from the live.menu to an "output value" message that is connected to the poly~ connected knobs.
by the way - the solution was found by the simple genius Steven kuhlmann

👽!t W∆s ∆lienz!👽's icon

haha, much more anticlimactic than i had anticipated, but still great to hear it was fairly simple - praise to Steven Kuhlmann! 🙌 (that's some deep/intimate knowledge of M4L UI there)

Roman Thilenius's icon

is steven a son of peter?