Forums > MaxMSP

can't open

October 1, 2008 | 3:03 pm

Hi,

When I populate my ubumenu directly from [opendialog] I can load soundfiles in a [buffer~].

This seems not possible if I give the same path with [folder].

In all case the path seems the same, but with this 2nd method I get the message:

error: buffer~:path/…./file.aif: can’t open

Anyone has an idea?

I want to use [folder] to select only soundfiles in the specified folder.

#P window setfont "Sans Serif" 9.;
#P window linecount 1;
#P message 197 35 33 196617 clear;
#P newex 322 491 50 196617 print;
#P window setfont "Sans Serif" 18.;
#P comment 213 244 64 196626 bad??;
#P window setfont "Sans Serif" 9.;
#N vpatcher 460 63 588 255;
#P outlet 32 74 15 0;
#P inlet 36 41 15 0;
#P connect 0 0 1 0;
#P pop;
#P newobj 394 437 13 196617 p;
#P user ubumenu 134 298 100 196617 0 1 1 0;
#X prefix_set 0 1 append 0;
#P objectname ubumenu;
#P comment 370 50 100 196617 choose a folder;
#P user ubumenu 353 119 100 196617 0 1 1 0;
#X prefix_set 0 1 kyred:/Users/derrickgiscloux/mao/max-drik/1.environnement/Sonore/Modules/Sampleur/MapSamp/sons1/ 0;
#P button 353 49 15 0;
#P newex 394 464 81 196617 prepend replace;
#P newex 394 490 62 196617 buffer~ asd;
#P newex 114 183 30 196617 t s b;
#N vpatcher 460 63 588 255;
#P outlet 32 74 15 0;
#P inlet 36 41 15 0;
#P connect 0 0 1 0;
#P pop;
#P newobj 134 245 13 196617 p;
#P newex 49 112 53 196617 t s s b b;
#P message 134 225 33 196617 clear;
#P newex 134 204 45 196617 onebang;
#P message 122 142 129 196617 types WAVE AIFF AIF Sd2f;
#P newex 114 162 37 196617 folder;
#P newex 139 358 36 196617 zl reg;
#P newex 139 379 70 196617 sprintf %s%s;
#P newex 179 335 30 196617 t b s;
#P newex 353 72 81 196617 opendialog fold;
#P message 438 95 75 196617 autopopulate 1;
#P newex 353 94 83 196617 prepend prefix;
#P user panel 30 79 268 333;
#X brgb 191 191 191;
#X frgb 0 0 0;
#X border 1;
#X rounded 0;
#X shadow 0;
#X done;
#P user panel 323 26 221 142;
#X brgb 191 191 191;
#X frgb 0 0 0;
#X border 1;
#X rounded 0;
#X shadow 0;
#X done;
#P fasten 4 0 12 0 358 93 54 93;
#P connect 9 0 8 0;
#P fasten 12 1 8 0 68 157 119 157;
#P connect 8 0 14 0;
#P fasten 12 2 9 0 82 139 127 139;
#P connect 14 1 10 0;
#P connect 10 0 11 0;
#P connect 11 0 13 0;
#P connect 24 0 20 0;
#P connect 13 0 20 0;
#P fasten 14 0 20 0 119 282 139 282;
#P fasten 5 0 7 0 184 355 144 355;
#P connect 7 0 6 0;
#P fasten 12 0 7 1 54 333 170 333;
#P fasten 12 3 10 1 96 132 174 132;
#P connect 20 1 5 0;
#P connect 5 1 6 1;
#P fasten 16 0 23 0 399 484 327 484;
#P connect 17 0 4 0;
#P connect 4 0 2 0;
#P connect 24 0 18 0;
#P connect 2 0 18 0;
#P fasten 3 0 18 0 443 114 358 114;
#P connect 6 0 21 0;
#P connect 18 1 21 0;
#P connect 21 0 16 0;
#P connect 16 0 15 0;
#P fasten 17 0 3 0 358 67 443 67;
#P window clipboard copycount 25;


October 1, 2008 | 4:01 pm

On 1 oct. 08, at 17:03, Derrick Giscloux wrote:

>
> Hi,
>
> When I populate my ubumenu directly from [opendialog] I can load
> soundfiles in a [buffer~].
>
> This seems not possible if I give the same path with [folder].

It’s probably a symbol issue, when you have spaces in the name of the
file for instance. Make sure you use the symout argument for [sprintf]
and it should work smoothly.

ej


October 1, 2008 | 4:57 pm

Neither symout or no space in the path or soundfile allows me to resolve the strangeness.

any other idea?

#P window setfont "Sans Serif" 9.;
#P window linecount 5;
#P message 340 258 308 196617 ; max launchbrowser http://www.cycling74.com/forums/index.php?t=msg&th=35846&start=0&rid=3975&S=e23d28ce9da5722dc679cd99f80e32e9;
#P window linecount 1;
#P message 197 35 33 196617 clear;
#P newex 322 491 50 196617 print;
#P window setfont "Sans Serif" 18.;
#P comment 213 244 64 196626 bad??;
#P window setfont "Sans Serif" 9.;
#N vpatcher 460 63 588 255;
#P outlet 32 74 15 0;
#P inlet 36 41 15 0;
#P connect 0 0 1 0;
#P pop;
#P newobj 394 437 13 196617 p;
#P user ubumenu 134 298 100 196617 0 1 1 0;
#X prefix_set 0 1 append 0;
#P objectname ubumenu;
#P comment 370 50 100 196617 choose a folder;
#P user ubumenu 353 119 100 196617 0 1 1 0;
#X prefix_set 0 1 kyred:/Users/derrickgiscloux/mao/sons/instruments/ 0;
#P button 353 49 15 0;
#P newex 394 464 81 196617 prepend replace;
#P newex 394 490 62 196617 buffer~ asd;
#P newex 114 183 30 196617 t s b;
#P newex 49 112 53 196617 t s s b b;
#P message 134 225 33 196617 clear;
#P newex 134 204 45 196617 onebang;
#P message 122 142 129 196617 types WAVE AIFF AIF Sd2f;
#P newex 114 162 37 196617 folder;
#P newex 139 358 36 196617 zl reg;
#P newex 139 379 108 196617 sprintf symout %s%s;
#P newex 179 335 30 196617 t b s;
#P newex 353 72 81 196617 opendialog fold;
#P message 438 95 75 196617 autopopulate 1;
#P newex 353 94 83 196617 prepend prefix;
#P user panel 30 79 268 333;
#X brgb 191 191 191;
#X frgb 0 0 0;
#X border 1;
#X rounded 0;
#X shadow 0;
#X done;
#P user panel 323 26 221 142;
#X brgb 191 191 191;
#X frgb 0 0 0;
#X border 1;
#X rounded 0;
#X shadow 0;
#X done;
#P fasten 4 0 12 0 358 93 54 93;
#P fasten 12 1 8 0 68 157 119 157;
#P connect 9 0 8 0;
#P connect 8 0 13 0;
#P fasten 12 2 9 0 82 139 127 139;
#P connect 13 1 10 0;
#P connect 10 0 11 0;
#P connect 11 0 19 0;
#P connect 23 0 19 0;
#P fasten 13 0 19 0 119 282 139 282;
#P fasten 5 0 7 0 184 355 144 355;
#P connect 7 0 6 0;
#P fasten 12 0 7 1 54 333 170 333;
#P fasten 12 3 10 1 96 132 174 132;
#P connect 19 1 5 0;
#P connect 5 1 6 1;
#P fasten 15 0 22 0 399 484 327 484;
#P connect 16 0 4 0;
#P connect 4 0 2 0;
#P connect 23 0 17 0;
#P fasten 3 0 17 0 443 114 358 114;
#P connect 2 0 17 0;
#P connect 6 0 20 0;
#P connect 17 1 20 0;
#P connect 20 0 15 0;
#P connect 15 0 14 0;
#P fasten 16 0 3 0 358 67 443 67;
#P window clipboard copycount 25;


October 1, 2008 | 5:28 pm

On Oct 1, 2008, at 9:57 AM, Derrick Giscloux wrote:

> any other idea?

Judiciously hanging message boxes around allowed me to see what the
problem is (you’ll have to have a bunch of [prepend set], too in Max 4).

Your "bad" menu has a prefix of "append" so file names are all in the
form of appendFileName.aif

-C

Chris Muir
cbm@well.com

http://www.xfade.com


October 1, 2008 | 7:35 pm

pfff!

Yes, of course.
Thank you very much.


Viewing 5 posts - 1 through 5 (of 5 total)