Unique buffer~ names inside poly~s, etc.

    May 11 2006 | 11:04 pm
    I'm sure this has been gone over, but I can't find the answer online
    so: how can you specify unique buffer names to use inside patchers
    you want to easily copy and paste to duplicate or use within poly~
    subpatches? Like a poster I found online, I tried the pluggo "---
    name" syntax without luck. I'm guessing there is some loadbang
    trickery that would do, and perhaps there is something native or

    • May 12 2006 | 12:34 am
      The way I do it is to just make one big ass buffer~ outside the poly~ and use thispoly~ to create a recording start offset which is unique to each voice.
    • May 12 2006 | 4:38 am
      I am not sure to understand exactly what you want but you can select a
      different buffer in each voice of a poly quite easily using the number
      of the voice (given by thispoly~) and sprintf to build the name of the
      buffer to choose.
      Roald Baudoux
    • May 13 2006 | 10:25 pm
      Thanks Andrew and Roald,
      Clever solution, Andrew, but I think I'm going to go with Roald's
      sprintf, it's kind of slick and will require less puzzling when
      trying to work with poke's and the like.
      ethan winn
    • May 15 2006 | 7:52 pm
      It sounds like you have a really similar issue to one that I had not very
      long ago. I was basically trying to find out how to duplicate subpatches
      that had buffers. Someone on this list told me to look into #0 naming,
      which helped a lot. Try page 418 of the Max Tutorials and Topics manual
      under the heading : # in object and message boxes. That's where I found my
      answer and it's even more native and slick than sprintf, since that requires
      an extra object.
    • May 15 2006 | 8:03 pm
      what i do is creating a random name at loadbang and then (with set)
      name the buffer and the objects accessing it (peek~, index~ etc)
      Kasper T. Toeplitz
      noise, composition, bass, computer