multiple load into buffer


    Apr 22 2006 | 1:06 pm
    Haven't managed to find any references to this, so it's probably not
    possible, but just in case ...
    Is there a way to load a series of files one after the other into a
    buffer~ - ie append each new file to the end of the previous one, so
    that I can create a new single audio file out of a series of smaller
    ones?
    thanks
    David

    • Apr 22 2006 | 4:13 pm
      if you are recording sound into the buffer it's easy. For loading from disc the method goes something like this.
      load sound #1 into buffer A
      load sound #2 to buffer B
      copy sound #2 to buffer A (after sound #1)
      This can be achieved using peek~ you will probably want to keep track of the different file regions using a coll.
      My only example of this if buried in a big patch so i can't post an example right now.
    • Apr 26 2006 | 9:47 am
      David Stevens wrote:
      > Haven't managed to find any references to this, so it's probably not
      > possible, but just in case ...
      >
      > Is there a way to load a series of files one after the other into a
      > buffer~ - ie append each new file to the end of the previous one, so
      > that I can create a new single audio file out of a series of smaller ones?
      Should be possible, but I'd use two buffers~, as loading into the buffer
      will need some time. One is playing, one is loading...
      Another attempt is sfplay~ as you can predefine cues, these cues can be
      played immediately... (I'd try it with sfplay~...)
      Stefan
      --
      [][] [][][] [][] [][][]
      [][][][][][][][][][][][][][][]
      Stefan Tiedje
      Klanggestalter
      Electronic Composition
      &
      Improvisation
      /~~~~~
      \ /|() ()|
      ))))) )| | |( \
      /// _/)/ )))))
      ___/ ///
      -------------------------x----
      --_____-----------|-----------
      --(_|_ ----|-----|-----()----
      -- _|_)----|-----()-----------
      ----------()------------x-----
      14, Av. Pr. Franklin Roosevelt,
      94320 Thiais, France
      Phone at CCMIX +33-1-57 42 91 09
    • Apr 26 2006 | 3:28 pm
      hi Stefan,
      Leafcutter John pointed me in the right direction, and I eventually
      came up with something that worked without distorting the copied
      buffer. I posted the result, but it's still sitting in email
      purgatory waiting to be approved by the moderator (it was a tad over
      the size limit apparently).
      thanks
      David
    • Apr 27 2006 | 6:15 am
      instead of peek~ you could also use record~ , and if
      you think the copying is too slow by playpseed you can
      play the edit buffers with 4x speed ...
    • Apr 28 2006 | 8:52 am
      Tried to send this before but was too big. I've removed the
      [waveform~]s so hopefully it'll get through now.
      Thanks for the pointer - here's a version that I got to work without
      distorting - it only loads one extra sound so far, but it should be
      simple to append extra files.
      best
      David
      max v2;