Dumb question

Mar 27, 2006 at 2:37pm

Dumb question

Hello all
Here is a newbie question.
The dialog object does not allow the user to select mutiple files.
Or…
It’s on the first lesson in the tutorial… or
I do not know how to do a search on this board.

Seriously, I can’t find any info regarding that. Am I the only one that needs to be able to do choose more then one file?

Grateful for any help.

Best regards
/Lasse

#25084
Mar 27, 2006 at 4:09pm

maybe this:

max v2;
#N vpatcher 10 59 501 456;
#P window setfont “Sans Serif” 9.;
#P newex 316 312 51 196617 buffer~ q;
#P newex 229 311 51 196617 buffer~ q;
#P newex 124 308 51 196617 buffer~ q;
#P newex 30 306 51 196617 buffer~ q;
#P newex 115 38 45 196617 loadbang;
#P message 128 273 95 196617 replace qwe.aif;
#P newex 128 246 95 196617 prepend set replace;
#P message 322 273 95 196617 replace uio.aif;
#P newex 322 246 95 196617 prepend set replace;
#P message 225 273 95 196617 replace rty.aif;
#P newex 225 246 95 196617 prepend set replace;
#P message 31 273 95 196617 rty.aif;
#P newex 31 246 95 196617 prepend set replace;
#P newex 31 212 302 196617 unpack n n n n;
#P newex 31 120 94 196617 dialog Enter Name;
#B color 5;
#P toggle 115 93 15 0;
#P button 31 41 15 0;
#P newex 31 189 60 196617 prepend set;
#P comment 194 115 134 196617 qwe.aif rty.aif uio.aif;
#B color 7;
#P comment 47 41 41 196617 1. bang;
#P comment 195 86 121 196617 2. copy and paste green text below into dialog box;
#P fasten 4 0 6 0 36 112 36 112;
#P fasten 6 0 3 0 36 140 27 140 27 185 36 185;
#P connect 3 0 7 0;
#P connect 7 0 8 0;
#P connect 8 0 9 0;
#P connect 16 0 5 0;
#P connect 5 0 6 1;
#P connect 7 1 14 0;
#P connect 14 0 15 0;
#P connect 7 2 10 0;
#P connect 10 0 11 0;
#P connect 7 3 12 0;
#P connect 12 0 13 0;
#P pop;

#73411
Mar 27, 2006 at 7:01pm

Lars Viklund wrote:
> Hello all Here is a newbie question. The dialog object does not allow
> the user to select mutiple files. Or… It’s on the first lesson in
> the tutorial… or I do not know how to do a search on this board.

Not as dumb as it seems. I think it never came up as an issue.
The opendialog doesn’t do it, though I think it could be enhanced to
allow multiple selections and then just dumps them out succesively.
(Feature request)

Of course we are in Max land, there is a solution for all kinds of
problems: Just some ideas, which are not necessarily a newbies beginning
task, but still possible:

Build your own opendialog, with either jit.cellblock, LCD…
Have a look into Java/Javascript, there might be a function which will
allow it (sorry I don’t know it, but there are some geeks out there who
might know)

keep on Maxin’

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

#73412
Mar 27, 2006 at 7:53pm

Thank’s for your respons.
Yes, we are in “Max land” and I like that. Max is a tool that is very different from anything else I have come across. I like that.

I will try to do a Java thing. I was planning on learn how to write externals in Java anyway.

Still, I’m a little confused. I am doing a batch conversion app using Max/MSP. If someone else is supposed to be able to use that prog, the first thing to consider is how the user will choose the files for the batch job.
Has that not been done before?
Strange.

/Lasse

#73413
Mar 28, 2006 at 9:38am

In most cases where I would want a batch job, I’d just fill a folder
with the stuff I want to process, and then use dropfile, the folder
object or ubumenu to do the whole folder.
The need of clicking on several objects to select them is not the most
convenient way thinkable.
People who want batchprocessing are very lazy … ;-)
I am always annoyed with ProTools, which does allow multiple selections,
but does not allow drag and drop, to be forced to select every f..ng
file to import it finally.

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

#73414
Mar 29, 2006 at 1:54pm

Stefan
Thank you for your respons.
Yes, it is easy to fill ubumenu with filenames that way.

But…
How do I dump out the items, one by one whithout clicking on them?
Stuck again.

This is probably not what Max is made for but anyway….

Any help is appreciated.

/Lasse

#73415
Mar 29, 2006 at 2:13pm

On 29-Mar-2006, at 15:54, Lars Viklund wrote:
> How do I dump out the items, one by one whithout clicking on them?

Send messages to the ubumenu object?

————– http://www.bek.no/~pcastine/Litter/ ————-
Peter Castine +–> Litter Power & Litter Bundle for Jitter

iCE: Sequencing, Recording & |home | chez nous|
Interface Building for |bei uns | i nostri|
Max/MSP Extremely cool http://www.castine.de

http://www.dspaudio.com/

#73416
Mar 29, 2006 at 8:34pm

Peter
I don

#73417
Mar 29, 2006 at 9:36pm

>I can do a lot of things with messages but I have not been able to
>figure out how to dump out the list with messages.

Are you looking for something like this?

/Jakob

max v2;
#N vpatcher 278 178 906 590;
#P origin 0 -6;
#P window setfont “Sans Serif” 9.;
#P number 214 167 35 9 0 0 0 3 0 0 0 221 221 221 222 222 222 0 0 0;
#P window linecount 1;
#P hidden message 166 189 14 196617 0;
#P hidden newex 166 167 38 196617 sel 11;
#P hidden button 338 40 15 0;
#P hidden newex 497 74 50 196617 del 1000;
#P hidden newex 497 21 48 196617 loadbang;
#P hidden newex 497 50 50 196617 del 4000;
#P hidden newex 338 73 29 196617 t \\;
#P hidden newex 353 114 40 196617 uzi 12;
#P newex 182 240 62 196617 prepend set;
#P window linecount 0;
#P message 182 271 256 196617 ;
#P window linecount 1;
#P newex 182 218 61 196617 zl group 12;
#P hidden newex 214 45 60 196617 loadmess 1;
#P hidden toggle 214 79 15 0;
#P hidden newex 214 114 58 196617 metro 200;
#P newex 259 218 62 196617 prepend set;
#P window linecount 0;
#P message 259 250 73 196617 ;
#P window linecount 1;
#N counter 0 0 23;
#X flags 0 0;
#P hidden newobj 214 140 77 196617 counter 0 0 23;
#P user ubumenu 214 193 100 196617 0 1 1 0;
#X add what;
#X add about;
#X add using;
#X add numbers;
#X add ?;
#X add ?;
#X add ?;
#X add ?;
#X add ?;
#X add ?;
#X add ?;
#X add ?;
#X add 1;
#X add 2;
#X add 3;
#X add 4;
#X add 5;
#X add 6;
#X add 7;
#X add 8;
#X add 9;
#X add 10;
#X add 11;
#X add 12;
#X prefix_set 0 0 0;
#P hidden connect 1 0 16 0;
#P hidden connect 16 0 17 0;
#P connect 0 1 7 0;
#P hidden fasten 11 0 9 0 343 267 187 267;
#P connect 7 0 9 0;
#P connect 9 0 8 0;
#P hidden connect 6 0 5 0;
#P hidden fasten 17 0 5 0 171 257 159 257 159 72 219 72;
#P hidden connect 5 0 4 0;
#P hidden connect 10 0 1 0;
#P hidden connect 4 0 1 0;
#P hidden connect 1 0 18 0;
#P connect 18 0 0 0;
#P connect 0 1 3 0;
#P hidden fasten 11 0 3 0 343 215 264 215;
#P connect 3 0 2 0;
#P hidden fasten 12 0 11 0 502 70 343 70;
#P hidden connect 15 0 11 0;
#P hidden fasten 14 0 10 0 502 102 358 102;
#P hidden connect 13 0 12 0;
#P hidden connect 12 0 14 0;
#P pop;

#73418
Mar 29, 2006 at 10:00pm

On 29-Mar-2006, at 22:34, Lars Viklund wrote:
> I can do a lot of things with messages but I have not been able to
> figure out how to dump out the list with messages.

One approach, hardwired and quick’n'dirty:

#P window setfont “Sans Serif” 9.;
#P window linecount 1;
#P newex 282 219 32 196617 print;
#P button 207 155 15 0;
#P newex 207 177 40 196617 Uzi 4;
#P user ubumenu 237 199 100 196617 0 1 1 0;
#X add a;
#X add b;
#X add c;
#X add d;
#X prefix_set 0 0 0;
#P connect 0 1 3 0;
#P connect 1 2 0 0;
#P connect 2 0 1 0;
#P window clipboard copycount 4;

If you’re populating the ubumenu dynamically you’ll need to first
send a count message and patchcord the result to Uzi’s right inlet.

> Maybe it is not possible.

You’re going to have to try harder than this to find something Max
can’t do.

————– http://www.bek.no/~pcastine/Litter/ ————-
Peter Castine +–> Litter Power & Litter Bundle for Jitter

iCE: Sequencing, Recording & |home | chez nous|
Interface Building for |bei uns | i nostri|
Max/MSP Extremely cool http://www.castine.de

http://www.dspaudio.com/

#73419
Mar 29, 2006 at 10:25pm

#73420
Mar 29, 2006 at 10:35pm

Hi Lars,
I have a strange suspicion that you are using some extended characters
in your file names that max is not recognizing appropriately. Just a
hunch…

AB

#73421
Mar 30, 2006 at 2:10am

Lars,
Just to back you up, I’ve intermittently experienced this same behavior
in ubumenu. I don’t use any extended ASCII. I have had problems
reproducing the error, so I haven’t submitted a report. I get those
ugly codes preceded by a #.

Also, here was my solution to your problem:
#P button 23 36 15 0;
#P window setfont “Sans Serif” 9.;
#P message 120 151 198 196617;
#P window linecount 1;
#P newex 120 132 14 196617 _;
#P newex 120 113 46 196617 zl group;
#P newex 23 76 49 196617 t b count;
#P newex 73 76 27 196617 – 1;
#P newex 167 113 61 196617 route count;
#P newex 43 57 40 196617 uzi;
#P user ubumenu 73 95 105 196617 0 1 1 0;
#X prefix_set 0 1 ./ 0;
#P comment 41 37 100 196617 bang means do it.;
#P connect 9 0 5 0;
#P connect 5 0 6 0;
#P connect 1 1 6 0;
#P connect 7 0 8 0;
#P connect 6 0 7 0;
#P connect 5 1 1 0;
#P connect 4 0 1 0;
#P connect 2 2 4 0;
#P connect 3 0 2 0;
#P connect 1 2 3 0;
#P window clipboard copycount 10;

#73422
Mar 30, 2006 at 8:27am

jim altieri wrote:
> I don’t use any extended ASCII. I have had problems reproducing the
> error, so I haven’t submitted a report. I get those ugly codes
> preceded by a #.

It looks exactly like a 8.3 format file. Are you using a DOS formatted
drive? Then its showing the “real” file name, Windows uses a bad hack to
show longer names, don’t know how.
Best is to switch to a proper file system.

> Also, here was my solution to your problem:

Don’t post “solutions” which use 3rd party objects to newbie advice, it
will complicate the issue… ;-)

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

#73423
Mar 30, 2006 at 9:26am

Stefan
It is not a file system problem.

I think it has to do with the cryptation of Apples iTune MPEG4.

If you look at those files they present themselfs as a unspecified type (00 00 00 00).
If I change type to m4p they show up Ok.

My hack works on all files that shows a “proper” type.
What I still don’t understand is why this unspecified file type makes the filename show up like that in Max.

#73424
Mar 30, 2006 at 2:03pm

On 30-Mar-2006, at 0:25, Lars Viklund wrote:
> 03 The House, The Str#D4EAB.m4a

I hate to say this, but there has been much misleading advice on this
thread so far.

If you dig around the list archives, you will find that essentially
all Max/MSP/Jitter externals are limited to 31-character file names,
at least on Mac OS. If you pass *any* filename longer than 31 chars
to *any* external object, the name will be “mangled” to 31 chars,
giving something that remains a unique identifier that HFS+ can map
to the long file name.

You will have to live with this behavior until such time as the Max
file API is updated for longer file names. Or use shorter file names.

Many older programs exhibit this behavior.

Ha det bra,
Peter

————– http://www.bek.no/~pcastine/Litter/ ————-
Peter Castine +–> Litter Power & Litter Bundle for Jitter

iCE: Sequencing, Recording & |home | chez nous|
Interface Building for |bei uns | i nostri|
Max/MSP Extremely cool http://www.castine.de

http://www.dspaudio.com/

#73425
Mar 30, 2006 at 4:46pm

Tack Peter
I thought it was something like that. I was hoping that it should not be that serious but anyway…

Now that I know, I can go on and try to do that part in JS.
It has been very educational to dig around with this.

Thank you all for your kind help.

/Lasse

#73426

You must be logged in to reply to this topic.