Browse a given directory

Jul 21, 2007 at 1:47pm

Browse a given directory

#32981
Jul 22, 2007 at 10:20am

this works for me:

#P window setfont “Sans Serif” 9.;
#P window linecount 1;
#P newex 143 254 81 196617 prepend replace;
#P newex 143 282 63 196617 buffer~ lala;
#P window linecount 2;
#P comment 89 129 124 196617 write/read a textfile with the path;
#P window linecount 1;
#P newex 24 255 68 196617 prepend open;
#N sfplay~ 2 500000 2 ;
#P newobj 24 283 101 196617 sfplay~ 2 500000 2;
#P button 14 77 25 0;
#N vpatcher 245 268 1169 907;
#P window setfont “Sans Serif” 9.;
#P window linecount 1;
#P newex 225 43 30 196617 sel f;
#P newex 225 23 48 196617 r control;
#P newex 126 288 78 196617 prepend symbol;
#P message 126 325 66 196617 set $1 , bang;
#P newex 126 259 49 196617 tosymbol;
#B color 5;
#P message 126 356 856 196617 “Powerbook:/Users/matthias/Documents/
max dateien/ akute projekte/holliger/gesänge der Frühe/”;
#P newex 212 390 117 196617 print soundfiles_folder:;
#P message 206 168 35 196617 clear;
#P newex 19 97 20 196617 t b;
#B color 5;
#P newex 67 67 48 196617 loadbang;
#B color 5;
#P outlet 126 431 15 0;
#P newex 126 389 76 196617 prepend prefix;
#P newex 126 233 51 196617 route set;
#P window linecount 0;
#P message 100 144 35 196617 line 1;
#P message 15 138 75 196617 write soundfilepath.txt;
#P window linecount 1;
#P newex 126 195 108 196617 text soundfilepath.txt;
#N comlet bang to sel folder;
#P inlet 126 30 15 0;
#P window linecount 0;
#P newex 126 67 74 196617 opendialog fold;
#B color 5;
#P connect 9 0 3 0;
#P fasten 0 0 9 0 131 90 24 90;
#P connect 8 0 4 0;
#P connect 9 0 4 0;
#P connect 1 0 0 0;
#P connect 17 0 0 0;
#P connect 10 0 2 0;
#P fasten 4 0 2 0 105 186 131 186;
#P fasten 3 0 2 0 20 189 131 189;
#P connect 0 0 2 0;
#P connect 2 0 5 0;
#P connect 5 0 13 0;
#P connect 13 0 15 0;
#P connect 15 0 14 0;
#P connect 14 0 12 0;
#P connect 12 0 6 0;
#P connect 6 0 7 0;
#P connect 17 0 10 0;
#P fasten 1 0 10 0 131 56 211 56;
#P connect 12 0 11 0;
#P connect 16 0 17 0;
#P pop;
#P newobj 14 130 64 196617 p folder_sel;
#P user ubumenu 25 221 178 196617 0 1 1 0;
#X setrgb 0 0 0 198 198 198 255 133 25 4 4 4 141 141 141 112 112 112;
#X add 01.aif;
#X add 02.aif;
#X add 03.aif;
#X add 04.aif;
#X add 05.aif;
#X add “alt_02 Titel 02.aif”;
#X prefix_set 0 1 “Powerbook:/Users/matthias/Documents/ max dateien/
akute projekte/holliger/gesänge der Frühe/” 0;
#X pattrmode 1;
#P comment 44 72 124 196617 < sel folder;
#P connect 1 1 5 0;
#P connect 1 1 8 0;
#P connect 8 0 7 0;
#P connect 3 0 2 0;
#P connect 2 0 1 0;
#P connect 5 0 4 0;
#P window clipboard copycount 9;

mit freundlichen Grüßen,

m

#109290
Jul 22, 2007 at 12:22pm

Cheers for your answer.

It seems like ubumenu is the easiest when it comes to browsing files.

I need to use a jit.cellblock though, as I need my loops to be printed in a list for multi selection…

This is wrecking my head.

#109291
Jul 22, 2007 at 3:32pm

hi.
here is another example with 2 jit.cellblock :

#P window setfont “Sans Serif” 9.;
#P window linecount 1;
#P comment 319 274 62 9109513 files;
#P comment 137 274 62 9109513 folders;
#N vpatcher 15 55 447 620;
#N comlet jitcellblock FILES;
#P outlet 152 504 15 0;
#N comlet from jitcellblock FOLDERS;
#P inlet 209 120 15 0;
#N comlet jitcellblock FOLDERS;
#P outlet 68 281 15 0;
#N comlet drop;
#P inlet 68 28 15 0;
#N comlet open;
#P inlet 25 30 15 0;
#P window setfont “Sans Serif” 9.;
#P newex 155 332 48 9109513 loadbang;
#P message 303 190 40 9109513 clear all;
#P message 179 81 40 9109513 clear all;
#P message 155 356 83 9109513 types WAVE MP3;
#P newex 24 469 65 9109513 prepend set 0;
#P newex 75 418 27 9109513 + 1;
#P newex 24 445 51 9109513 pack i s;
#P newex 24 420 38 9109513 i;
#P newex 24 389 51 9109513 t b s;
#P newex 24 364 67 9109513 route append;
#P newex 24 338 38 9109513 folder;
#P newex 261 164 53 9109513 t b s 0 b;
#P newex 24 307 261 9109513 sprintf %s%s;
#P newex 209 141 62 9109513 unpack 0 0 s;
#P newex 238 56 48 9109513 loadbang;
#P newex 68 248 65 9109513 prepend set 0;
#P message 238 87 59 9109513 types folder;
#P newex 24 56 40 9109513 t l 0 b;
#P newex 119 195 27 9109513 + 1;
#P newex 68 224 51 9109513 pack i s;
#P newex 68 197 38 9109513 i;
#P newex 68 156 51 9109513 t b s;
#P newex 68 56 165 9109513 t b 0 b;
#P newex 68 81 76 9109513 opendialog fold;
#P newex 68 131 67 9109513 route append;
#P newex 68 105 38 9109513 folder;
#P connect 27 0 8 0;
#P connect 8 0 13 0;
#P fasten 2 0 13 0 73 102 29 102;
#P fasten 14 0 13 0 266 301 29 301;
#P connect 22 0 15 0;
#P connect 13 0 15 0;
#P connect 15 0 16 0;
#P connect 16 0 17 0;
#P connect 17 0 18 0;
#P fasten 14 2 18 0 294 412 29 412;
#P lcolor 1;
#P connect 18 0 19 0;
#P connect 19 0 21 0;
#P connect 20 0 18 1;
#P connect 17 1 19 1;
#P connect 26 0 3 0;
#P connect 3 0 2 0;
#P fasten 8 0 0 0 29 102 73 102;
#P connect 2 0 0 0;
#P connect 9 0 0 0;
#P connect 0 0 1 0;
#P connect 1 0 4 0;
#P connect 4 0 5 0;
#P connect 5 0 6 0;
#P connect 6 0 10 0;
#P connect 10 0 28 0;
#P fasten 23 0 28 0 184 271 73 271;
#P connect 18 0 20 0;
#P connect 7 0 5 1;
#P fasten 3 1 5 1 150 185 101 185;
#P lcolor 1;
#P fasten 8 1 5 1 49 189 101 189;
#P lcolor 1;
#P connect 4 1 6 1;
#P connect 5 0 7 0;
#P fasten 21 0 30 0 29 498 157 498;
#P fasten 24 0 30 0 308 491 157 491;
#P connect 25 0 22 0;
#P connect 3 2 23 0;
#P connect 8 2 23 0;
#P connect 29 0 12 0;
#P connect 11 0 9 0;
#P connect 12 2 14 0;
#P connect 14 1 13 1;
#P connect 14 3 24 0;
#P pop;
#P newobj 101 147 188 9109513 p browse_folders;
#P user jit.cellblock 279 183 446 268 139 9 1 127 266 17 0 1 1 0 0 0 1 0 1 0
0 0 223 223 223 0 0 0 0 0 0 191 191 191 0 0 0 255 190 193 1 1 1 0 4 0 0 0;
#P user jit.cellblock 101 183 276 267 139 9 1 127 266 17 0 1 1 0 0 0 1 0 1 0
0 0 223 223 223 0 0 0 0 0 0 191 191 191 0 0 0 255 190 193 1 1 1 0 4 0 0 0;
#P button 101 103 15 0;
#P user dropfile 120 103 301 125 0;
#P user panel 121 103 180 22;
#X brgb 173 244 255;
#X frgb 181 181 181;
#X border 1;
#X rounded 0;
#X shadow 0;
#X done;
#P comment 101 84 140 9109513 open / drop main folder;
#P connect 3 0 6 0;
#P connect 6 0 4 0;
#P connect 2 0 6 1;
#P fasten 4 0 6 2 106 278 94 278 94 132 284 132;
#P connect 6 1 5 0;
#P window clipboard copycount 9;

Best.

#109292
Jul 22, 2007 at 7:22pm

Cheers guys.

Here’s my solution. It might interest a few people on the forum.

#P window setfont “Sans Serif” 9.;
#P window linecount 1;
#P newex 455 381 65 9109513 prepend set 0;
#P newex 386 171 45 9109513 loadbang;
#P button 455 156 15 0;
#P comment 455 137 97 9109513 open / drop folder;
#P message 386 194 62 9109513 types WAVE;
#P newex 506 301 27 9109513 + 1;
#P newex 455 357 41 9109513 pack i s;
#P newex 455 302 38 9109513 i;
#P newex 455 276 51 9109513 t b s;
#P newex 455 176 165 9109513 t b 0 clear;
#P newex 455 199 76 9109513 opendialog fold;
#P newex 455 251 67 9109513 route append;
#P newex 455 225 38 9109513 folder;
#P user jit.cellblock 274 347 362 498 3 9 2 4 72 15 0 1 1 0 1 0 0 0 1 17 17 17 239 239 239 99 99 99 0 0 0 191 191 191 0 0 0 255 255 0 1 0 1 0 4 0 0 0;
#P connect 6 0 7 0;
#P connect 6 0 8 0;
#P connect 5 1 7 1;
#P fasten 4 1 6 1 537 298 488 298;
#P lcolor 1;
#P connect 8 0 6 1;
#P connect 7 0 13 0;
#P connect 5 0 6 0;
#P connect 2 0 5 0;
#P connect 1 0 2 0;
#P connect 9 0 1 0;
#P connect 3 0 1 0;
#P connect 4 0 3 0;
#P hidden connect 11 0 4 0;
#P connect 12 0 9 0;
#P fasten 13 0 0 0 460 410 390 410 390 332 279 332;
#P fasten 4 2 0 0 614 243 279 243;
#P window clipboard copycount 14;

Cheers

JC

#109293

You must be logged in to reply to this topic.