Spectral information in a table
hi there Maxers,
for a data mining work project I have to hack together something that will play an audio clip and export spectral information every second.
I chose Max for it, since its so easy to prototype and test solutions in it.
I went through the tutorials, and checked the fft reference and can get a lot of the stuff working already, but Im missing a way to output spectral info into a table (numbers, that we have to crunch later) instead of visual.
id be very greatful for any tips or tricks
be well !
Forgotten the name of the object. Could be jit.catch.
How about turning the audio into a jitter matrix and then putting that into jit.spill to turn it into a list.
If you want your [jit.matrix] data as a file, check-out [jit.fprint].
thank you so much for the help Jean-Francois and ANDRO.
So you guys think the FFT module isnt for this ? Im gonna look into the jit.fprint and jit.spill for the matrix
cheers!
You do need some sort of fft~ or pfft~ first, of course. The idea is sound -> FFT -> how do you store the data? One way is to store the fft data in a buffer~ (using for instance poke~) and export the values, another way is to store it in a jit.matrix (for instance with jit.catch~ or jit.poke~), and export with jit.fprint. Since you seem to get the values, we were just commenting on how to export them to a table.
hey guys...
it's been a while since I wrote back to this topic, as other work had focus. Now I need to return to my initial issue explained in the topic, and have hit several walls again.
What Andro and Jean Francois explained above has all worked great in terms of dumping data to a list,, but turns out the implementation of the FFT I've done was wrong. Browsing through the tutorials, would I even need to do a FFT to get spectral data ? Could I just use capture~ ?
To recap quickly, every 2 seconds of an audio clip I need to get freq bins/bands and the corresponding energy value at that bin.
all the best and happy holidays !