poly~ problem

Apr 20, 2006 at 3:21am

poly~ problem

can anyone tell me a good way to dynamically label a buffer in a poly object? obviously i cant use the same name for multiple instances, so i need a way to define a unique buffer name for each instance

any ideas?

#25525
Apr 20, 2006 at 6:13am

like that?

max v2;
#N vpatcher 41 44 641 444;
#P window setfont “Sans Serif” 9.;
#P window linecount 1;
#P newex 120 120 72 196617 buffer~ fred0;
#P window linecount 0;
#P message 62 120 50 196617;
#P window linecount 1;
#P newex 62 92 97 196617 sprintf set fred%ld;
#P newex 62 47 48 196617 loadbang;
#P newex 62 68 52 196617 thispoly~;
#P connect 1 0 0 0;
#P connect 0 0 2 0;
#P connect 2 0 3 0;
#P fasten 2 0 4 0 67 116 125 116;
#P pop;

hans w. koch
im krahnenhof 11
d-50668 koeln
+49-221-554902
http://www.hans-w-koch.net

#75229
Apr 22, 2006 at 5:20am

> Am 20.04.2006 um 05:21 schrieb John:
>> can anyone tell me a good way to dynamically label a buffer in a poly
>> object? obviously i cant use the same name for multiple instances, so
>> i need a way to define a unique buffer name for each instance

hans w. koch wrote:
> like that?

or easier if you don’t care about the name itself, let it begin with #0
like #0buffername , Max will replace the #0 with a unique number.

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

#75230

You must be logged in to reply to this topic.