I think this would be super easy for you all to implement, because it is already all over the place: I just want a process that outputs a buffer with the FFT in it. Bin channels by M frames.
Maybe this exists in Max? I don’t think it does in SC.
I think this would be super easy for you all to implement, because it is already all over the place: I just want a process that outputs a buffer with the FFT in it. Bin channels by M frames.
Maybe this exists in Max? I don’t think it does in SC.
I actually started making this a while ago, although IIRC there wasn’t great enthusiasm for the idea from my colleagues. It foundered on something, so preusmably not super easy. I think the problem might have been about the shape and navigability of the resulting buffer. I’ll dig out what I did and remind myself + start petitioning on your (our) behalf for this to be a thing if the problems seem surmountable.
SC has PV_Record, which records into a 1 channel buffer. It looks like it has 3 pieces of meta-data: frameSize, hopsize, rate (maybe?), and then each frame is written from there laterally. This is real-time. I was hoping for something non-realtime.
I did figure out how to do what I was trying to do without this, but I still think it would be a nice tool to have in the toolbox.
Is that part of some plugin? I don’t see it in my very bare installation. Does it interleave the real / complex (or mag/phase)?
It is in the SC3Plugins, in the JoshUGens:
Source is here:
Prebuilt package is here:
Sam
Thanks for this @spluta - I am on pause this week for Marking joy, but am after real FFT info, thanks for flagging the PV plugins
Cheers. That answers my question (yes, they interleave magnitudes and phases). Looking at as far as I got, it looks like I drew to a halt figuring out a sensible interface (e.g separate mag/phase buffers or not etc.). I’ll revisit when we can.
@spluta, this may do what you want. I made it a while ago; it only operates in the language so is quite slow, but is technically NRT and gets the data you’re looking for. Not that I would put a big long file in it though. Also, currently sums anything to mono because I was just using it for visualization purposes… but it could be modified.
Real nice! It should be easy to do this with NRT server, which would be super fast, but I was having a hard time getting it to save a buffer that wasn’t the audio record buffer…and then I got distracted by something else.
if @weefuzzy does not send one before you’re done, you can try to hack my buffer NRT stuff here:
super quick super simple and completes the very incomplete docs on how to do NRT buffer stuff