Unique buffer~ names inside poly~s, etc.

May 11, 2006 at 11:04pm

Unique buffer~ names inside poly~s, etc.

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.

#25932
May 12, 2006 at 12:34am

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

#76984
May 12, 2006 at 4:38am

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

#76985
May 13, 2006 at 10:25pm

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

#76986
May 15, 2006 at 7:52pm

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

#76987
May 15, 2006 at 8:03pm

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)

#P window setfont “Sans Serif” 9.;
#P window linecount 1;
#P newex 584 39 48 196617 loadbang;
#P newex 584 162 73 196617 zl join;
#P newex 647 141 61 196617 zl group 32;
#P newex 647 122 31 196617 + 97;
#P newex 647 102 58 196617 random 26;
#P newex 647 81 40 196617 Uzi 32;
#P newex 584 141 61 196617 zl group 32;
#P button 584 60 15 0;
#P newex 584 122 31 196617 + 65;
#P newex 584 184 40 196617 itoa;
#P newex 584 102 58 196617 random 26;
#P newex 584 81 40 196617 Uzi 32;
#P newex 584 214 87 196617 print bufferName;
#P newex 496 52 62 196617 prepend set;
#P connect 11 0 12 1;
#P connect 10 0 11 0;
#P connect 9 0 10 0;
#P connect 8 0 9 0;
#P connect 6 0 2 0;
#P fasten 6 0 8 0 589 78 652 78;
#P fasten 4 0 0 0 589 206 566 206 566 44 501 44;
#P connect 4 0 1 0;
#P connect 12 0 4 0;
#P connect 7 0 12 0;
#P connect 5 0 7 0;
#P connect 3 0 5 0;
#P connect 2 0 3 0;
#P connect 13 0 6 0;
#P window clipboard copycount 14;

best

kasper


Kasper T. Toeplitz
noise, composition, bass, computer

http://www.sleazeArt.com

#76988

You must be logged in to reply to this topic.