MSP vector to list

Jul 30, 2012 at 2:01pm

MSP vector to list


I’m trying to convert each full synchronized vector from an MSP object into a list. The vector is coming from fft~, and I need band data for each frame. Right now, I’m going through the intermediate step of jit.catch~ -> jit.spill. However, jit.catch doesn’t seem to be able to grab each frame in sync to the fft~ output (I’ve tried all 4 modes, too).

Any clues? Or a better way to do this?


Jul 30, 2012 at 3:03pm

Maybe try poking the signal into the matrix with count~ and jit.poke~? Here’s a quick example I wrote, and it seems to work. (I’m assuming a signal vector size of 64 and a FFT size of 512, so you’d need to include some safeguards for when those numbers are different. In the example, I’m just using another count~ as the signal to record, as a way of checking its correctness.)

– Pasted Max Patch, click to expand. –
Jul 31, 2012 at 12:15am

There’s an object called vsnapshot~ here:


You must be logged in to reply to this topic.