Unique buffer~ names inside poly~s, etc.

public's icon

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
slicker?

thanks.

ethan.

Andrew Pask's icon

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.

-A

Roald Baudoux's icon

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

public's icon

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

-
-
-
ethan winn
-
-
public@destratify.com
-
-
-

n z's icon

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.

nic

Kasper's icon

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)

Max Patch
Copy patch and select New From Clipboard in Max.

best

kasper

--
Kasper T. Toeplitz
noise, composition, bass, computer
http://www.sleazeArt.com