Optical soundtrack reader

    Mar 29 2013 | 6:13 pm
    I'm trying to recreate an optical soundtrack reader in Jitter. I've used max for quite a while but only just starting using jitter, but essentially I want to convert video/images to sound by recreating the technique used in optical soundtrack reading.
    In theory I should be able to do this by splitting each frame into 1764 rows( at 44100 sample rate) and by taking the average brightness of each of these rows and transposing this to 1 to -1 an audio signal can be output.
    So this reading of 1764 rows has to occur within 40ms, added to a buffer and output.
    To do this Im looking for advice on how to: - Split video into a grid of 1764 rows, I'm using rgb2luma so all videos will only have 1 plane. I was thinking I could convert all videos to have a height resolution of 1764 and then read through each row, but this could be really processor heavy and I'm not sure how to do this? - Read row of cells as one to obtain average brightness easily, rather than having to cycle through and add each cell individually, as this would not work as quick as required. - any other objects, techniques or tutorials that could be useful for me to look at.

    • Apr 07 2013 | 9:09 pm
      I'm not sure if you've already looked at jit.peek~ - that might be what you're looking for, or maybe you can work from that?
      Other objects that might help if you do need to unroll the matrix - jit.spill and jit.iter ... but hopefully that wouldn't be necessary.
      Other objects that might be randomly useful: jit.catch~ jit.graph, jit.poke~, jit.buffer...
      Hope that helps, -Amy
    • Apr 08 2013 | 7:00 am
      Something like this?? Should be a good start... This is from the always amazing Jitter Recipes Books (Book 1, recipe 11):