Spectroscope~

Gary Lee Nelson's icon

I have been following a recent thread about capturing a spectrum analysis as
a graphic image. Spectroscope~ makes the sort of image I need but provides
no way to save the image as a jpg or video frame. I already have a patch
that interprets the columns of a jitter frame as a spectrum and plays it via
ioscbank~. (It's available on my max download page.)

I have been generating sonogram analyses with MetaSynth and saving them as
pict files but I would like to do the whole process inside Max.

My algorithm would be...
Load a (mono) sound into a buffer~
Determine the length of the sound with info~
Scale a jit.matrix to match the buffer
Generate sonogram into that jit.matrix

I did search the archive for this but nothing applicable comes up. Any
suggestions?

Cheers
Gary Lee Nelson
Oberlin College
www.timara.oberlin.edu/GaryLeeNelson

jln's icon

I recently thought about doing something like this as well, while wondering if it could be doable to make a patch like the application called Frequency which I just found again in one of my backup disk. I thought it could a nice project to fill my lacuna with FFT and Jitter. However, I did not have the time to look into this yet - and chances are that it won't happen anytime soon. Well, just to say, I'd be interested to read about the solution you'll come with.

Best,
Julien.

Gary Lee Nelson's icon
DonK's icon

Thanks for the patch Jean! It works great.
Now to pick it apart and see what exactly is going on...

Jesse's icon

Thanks for this patch. I've been playing with it for the last few days and it's quite elegant in its simplicity.

Any chance that you'd be willing to point me in the direction of how I would implement a log frequency scale rather than a linear mapping? I've managed to do this in my draw code but I think it would be a lot more efficient to generate this in the MSP portion of the patch...

Thanks for any advice!
Jesse

ndivuyo's icon

I wish I could see this patch....haha

giorgio's icon
giorgio's icon

....found this one, based on an older patch by Oli Larkin

ciao,

g

spectroscope.maxpat
Max Patch
Jean-Francois Charles's icon