rotate buffer content

    Jan 25 2007 | 12:26 pm
    Dear all, how can i give an offset to a soundfile in a buffer like rotate works for lists..i don't think waveform has this feature.. thanks michele

    • Jan 25 2007 | 1:51 pm
      hi michele,
      Do you mean that you want to actually move the data around in the buffer (as opposed to just moving a start pointer within the buffer)? There may be better ways, but you could do this using peek~ and Poke~ and a second buffer. You would start the copy at a certain point inside the buffer, copy to the end and then copy from the beginning to the pointer. I think the easiest way to do this would be to count from 0 to buffer length, and use [+ (start point)] plus one of the objects that wraps number ranges (I think one off the Litter objects does this).
      As a possible start point for this, here's a patch I put together that copies from a selection one buffer, and adds the copy the the end of previously copied material in a second buffer. You'll need tl.uzi from Trond's 3POs.
      (And thanks to Peter C for the 3PO abbreviation - I never thought of that before!!)
    • Jan 25 2007 | 3:29 pm
    • Jan 25 2007 | 4:47 pm
      Thanks a lot! i'll give a look at the patch and the object soon as i can..all the best michele