I was wondering if there is an equivalent to BufSTFT but with melbands? Meaning could I store on a buffer the melbands information and have access to them as with bins and phases on BufSTFT?
Hey,
Yes thank you very much, that is exactly what I ment!! For some reason I missed it completely.
I have two more questions that are probably as naive as the first one but would be really helpfull for me if answered
On the FluidBufSTFT there is the option of “resynth” on a buffer. Is there an equivalent to that for FluidBufMelbands so I can resynthesize the audio from the melbands straight to a buffer?
FluidMelbands can run in real time, is the equivalent to that the “FluidSTFTPass”? If yes is there a way I could in real-time manipulate/have access to the bins as you could do lets say with the PVUgens in SC?
You can’t. Mel is a ‘compression’ format - it analyses the energy per band. You can roughly resynthesise, a bit like a vocoder would do, but it is very imperfect. There is an example in the help file.
You can have access to the magnitude of each band in real time. It is a lot less than PV and ‘destructive’
I recommend reading our learn material on Mel to see if that helps? Learn FluCoMa
if not, keep asking questions, and we’ll try to make it clearer.
Thank you for clarifying things!
I had already read the mel link you provided and was really helpful.
From reading again my second question I realised that my phrasing was a bit confusing.
What I wanted to ask (in the second question) was more about the STFT.
Is the realtime version of “FluidBufSTFT” the “FluidSTFTPass”? If yes how do you access in realtime the bins (as you would in PV)?
In the “FluidBufSTFT” help you show an example which is really straight forward, but from the “FluidSTFTPass” helpfile I cant understand how to access them…
haha, sorry for the confusion, I must be missing some technicalities and propably this confuses the whole thing!
If I understood correclty “FluidBufSTFT” performs the stft on a whole audio file that is stored somewhere in the computer, which after analysing the file, all the mags and phases of all frames are stored in 2 buffers in which you can access and do whatever you want on the bins/frames (as shown on the helpfile), which is great.
Is there a way of performing stft in real time on an audio that is being played and be able to manipulate the bins at the same time? I referred to the PV ugens because they do this with FFT and for example with PV.collect you can make the desired manipulations on the bins of the current frame. Would it be possible to perform stft with the fluid objects on a signal that is currently beeing played? And if yes how would I access the bins on the current frame that is beeing processed? Does this make sense?
actually it is on a buffer. it can be filled with a file, but also real time recording. it is a normal SuperCollider (or Max/Pd) buffer.
indeed.
Actually, they do the same thing. A STFT is a short-term FFT, window by window. In SuperCollider, you can have access to all bin values and manipulate them. they are the same as bufSTFT would give you on a buffer.