how to make a list with notenames?

Mar 3, 2008 at 12:23am

how to make a list with notenames?

I want to output a list with random generated midinotes, but displayed as notenames, not as midinumbers (I want to use th list for an ‘acustic’ composition). I made a coll with a list of notenames (in the coll object). How do I do the lookup of it. I always get in the coll where I want to store the random list a bunch of zeros.

max v2;
#N vpatcher 77 44 1290 1014;
#P origin 0 -196;
#P window setfont “Sans Serif” 9.;
#P window linecount 1;
#N vtable 128 10 59 220 226 0 128;
#P newobj 485 518 32 196617 table;
#N coll names;
#P newobj 664 578 57 196617 coll names;
#P newex 664 558 30 196617 pack;
#P newex 634 533 40 196617 unpack;
#N coll ;
#T flags 1 0;
#T 0 C0;
#T 1 C#0;
#T 2 D0;
#T 3 D#0;
#T 4 E0;
#T 5 F0;
#T 6 F#0;
#T 7 G0;
#T 8 G#0;
#T 9 A0;
#T 10 A#0;
#T 11 B0;
#T 12 c1;
#T 13 c#1;
#T 14 D1;
#T 15 D#1;
#T 16 E1;
#T 17 F1;
#T 18 F#1;
#T 19 G1;
#T 20 G#1;
#T 21 A1;
#T 22 A#1;
#T 23 B1;
#T 24 C2;
#T 25 C#2;
#T 26 D2;
#T 27 D#2;
#P newobj 634 513 53 196617 coll;
#P newex 100 613 58 196617 random 87;
#P message 634 371 33 196617 set 0;
#P button 71 614 15 0;
#P newex 71 636 88 196617 0 + 24;
#P number 72 715 35 9 0 0 256 3 0 0 0 221 221 221 222 222 222 0 0 0;
#P newex 149 760 54 196617 print note;
#P user kslider 71 658 54 0 24 96 31 12 0 128 128 128 128 128 128 255 255 255 0 0 0 0 0 0;
#P number 628 411 35 9 0 0 0 3 0 0 0 221 221 221 222 222 222 0 0 0;
#P button 593 343 15 0;
#N counter 10;
#X flags 0 0;
#P newobj 592 389 66 196617 counter 10;
#P toggle 389 293 17 0;
#P button 422 267 15 0;
#P newex 389 317 52 196617 metro 50;
#P window linecount 0;
#P comment 603 56 100 196617;
#P connect 1 0 11 0;
#P connect 11 0 10 0;
#P connect 13 0 10 0;
#P connect 10 0 7 0;
#P connect 7 0 9 0;
#P connect 1 0 13 0;
#P connect 2 0 3 0;
#P connect 3 0 1 0;
#P connect 6 0 2 0;
#P connect 5 0 4 0;
#P connect 1 0 5 0;
#P connect 4 2 6 0;
#P connect 12 0 4 3;
#P connect 1 0 14 0;
#P connect 14 0 15 0;
#P connect 4 0 16 0;
#P connect 16 0 17 0;
#P connect 15 1 16 1;
#P pop;

#36152
Mar 3, 2008 at 12:40am

Ok, I used the patch in that was in the archives. However, in a further stage I would like to keep the data in the max program. Is that possible (I mean a list or so and not print in the max window)?
Here goes the patch I found

max v2;
#N vpatcher 10 59 398 291;
#P window setfont “Fixedwidth Serif” 18.;
#P newex 119 146 64 1441810 print;
#P newex 119 119 141 1441810 sprintf %s%d;
#P newex 250 92 42 1441810 – 1;
#P newex 250 65 53 1441810 / 12;
#P newex 119 65 53 1441810 % 12;
#P number 119 36 53 18 0 127 4099 22 0 0 0 221 221 221 222 222 222 0 0
0;
#N coll ;
#T flags 1 0;
#T 0 C;
#T 1 C#;
#T 2 D;
#T 3 Eb;
#T 4 E;
#T 5 F;
#T 6 F#;
#T 7 G;
#T 8 Ab;
#T 9 A;
#T 10 Bb;
#T 11 B;
#P newobj 119 92 53 1441810 coll;
#P connect 1 0 2 0;
#P connect 2 0 0 0;
#P connect 0 0 5 0;
#P connect 5 0 6 0;
#P fasten 1 0 3 0 124 60 255 60;
#P connect 3 0 4 0;
#P connect 4 0 5 1;
#P pop;

#123847
Mar 3, 2008 at 4:10am

not sure if that’s what you want, but this way you don’t have to print to the max window…

#P window setfont “Sans Serif” 9.;
#P user textedit 269 261 369 311 32896 3 9 Eb-1;
#P window setfont “Sans Serif” 18.;
#P window linecount 1;
#P message 179 260 86 196626 Eb-1;
#P window setfont “Fixedwidth Serif” 18.;
#P newex 179 206 64 1441810 print;
#P newex 179 179 186 1441810 sprintf set %s%d;
#P newex 310 152 42 1441810 – 1;
#P newex 310 125 53 1441810 / 12;
#P newex 179 125 53 1441810 % 12;
#P number 179 96 53 18 0 127 4099 22 0 0 0 221 221 221 222 222 222 0 0 0;
#N coll ;
#T flags 1 0;
#T 0 C;
#T 1 C#;
#T 2 D;
#T 3 Eb;
#T 4 E;
#T 5 F;
#T 6 F#;
#T 7 G;
#T 8 Ab;
#T 9 A;
#T 10 Bb;
#T 11 B;
#P newobj 179 152 53 1441810 coll;
#P connect 5 0 6 0;
#P connect 5 0 7 0;
#P fasten 5 0 8 0 184 242 274 242;
#P connect 0 0 5 0;
#P connect 4 0 5 1;
#P connect 3 0 4 0;
#P connect 1 0 2 0;
#P fasten 1 0 3 0 184 120 315 120;
#P connect 2 0 0 0;
#P window clipboard copycount 9;

#123848
Mar 5, 2008 at 7:33am

Samuel Van Ransbeeck schrieb:
> Ok, I used the patch in that was in the archives. However, in a
> further stage I would like to keep the data in the max program. Is
> that possible (I mean a list or so and not print in the max window)?
> Here goes the patch I found

If you want to create a list out of several items, look at thresh or [zl
group] in combination with a set to a message box…

Stefan


Stefan Tiedje————x——-
–_____———–|————–
–(_|_ —-|—–|—–()——-
– _|_)—-|—–()————–
———-()——–www.ccmix.com

#123849

You must be logged in to reply to this topic.