MSP vector to list


    Jul 30 2012 | 2:01 pm
    Hi,
    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?
    Thanks,
    Eric

    • Jul 30 2012 | 3:03 pm
      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.)
    • Jul 31 2012 | 12:15 am
      There's an object called vsnapshot~ here: http://cnmat.berkeley.edu/downloads