Forums > MaxMSP

folder object: file ordering bug?

June 19, 2008 | 5:28 am

When dealing with numerical tags on files the folder object seems to only look at the first character and orders the file/append output accordingly, for instance the file group:
1.jpg
2.jpg
110.jpg
comes out like this:
1.jpg
110.jpg
2.jpg
is this by design? is there a arg i can pass to get a strict numerical order?
what the deal?
i upgraded so this is in max 5
thanks in advance,
jston


June 19, 2008 | 5:57 am

Quote: jston wrote on Wed, 18 June 2008 22:28
—————————————————-
> is this by design? … what the deal?

It’s doing alphanumeric ordering. Sort of like alphabetical order but where numbers and symbols are treated like letters and have a specific order in the alphabet.

The "letter" 1 *always* comes before 2, so 11 or 1-anything comes before 2. Just like "aa" comes before "b". Actually the term "letter" is misleading, because everything is a number to a computer. Anyway… get the idea?

Definitely not what we want in a lot of cases, but that’s how computers work by default. I don’t think you can change the behavior in Max.


June 19, 2008 | 12:39 pm

This is just how computers order things — poke around on your machine
& you’ll see any set of files the designers want in a particular order
to have leading zeros:

01.jpg
02.jpg
11.jpg

etc.

M

On Jun 19, 2008, at 1:28, justin downs wrote:

>
> When dealing with numerical tags on files the folder object seems to
> only look at the first character and orders the file/append output
> accordingly, for instance the file group:
> 1.jpg
> 2.jpg
> 110.jpg
> comes out like this:
> 1.jpg
> 110.jpg
> 2.jpg
> is this by design? is there a arg i can pass to get a strict
> numerical order?
> what the deal?
> i upgraded so this is in max 5
> thanks in advance,
> jston


June 19, 2008 | 1:15 pm

I’ve got a rack of midi synthesizers and I’d like to make all the synths
in the rack available to either of two computers. I have no need to
access the synths simultaneously from both computers; only to be able to
route either of the computers to any device in the rack. The obvious
solution would be to use a midi patchbay, but no one seems to make them
any more.

Can anyone suggest a solution other than to try to find a used MIDI
patchbay?

Jon


Jon Hallstrom
Dept. of Music, Colby College
5674 Mayflower Hill
Waterville, ME 04901
207-859-5674


June 19, 2008 | 1:42 pm

Surely any balanced (3 conductor) patch bay or
switcher will do – you’ll just have to make up some
midi to bantam/XLR/stereo jack leads. to connect to
it,
cheers
Roger

— Jon Hallstrom wrote:

> I’ve got a rack of midi synthesizers and I’d like to
> make all the synths
> in the rack available to either of two computers.
> I have no need to
> access the synths simultaneously from both
> computers; only to be able to
> route either of the computers to any device in the
> rack. The obvious
> solution would be to use a midi patchbay, but no one
> seems to make them
> any more.
>
> Can anyone suggest a solution other than to try to
> find a used MIDI
> patchbay?
>
> Jon
>
> —
> Jon Hallstrom
> Dept. of Music, Colby College
> 5674 Mayflower Hill
> Waterville, ME 04901
> 207-859-5674
>
>


June 19, 2008 | 3:54 pm

>
>
>> I’ve got a rack of midi synthesizers and I’d like to
>> make all the synths
>> in the rack available to either of two computers.
>> I have no need to
>> access the synths simultaneously from both
>> computers; only to be able to
>> route either of the computers to any device in the
>> rack. The obvious
>> solution would be to use a midi patchbay, but no one
>> seems to make them
>> any more.
>>
>> Can anyone suggest a solution other than to try to
>> find a used MIDI
> > patchbay?

why not send midi from computer1 to computer2 and then to the rack?

kasper

Kasper T. Toeplitz
noise, composition, bass, computer

http://www.sleazeArt.com

http://www.myspace.com/sleazeart


June 19, 2008 | 9:18 pm

> Can anyone suggest a solution other than to try to find a used MIDI
> patchbay?

How about a 2 to 1 MIDI Merger.

http://www.midisolutions.com/prodmrg.htm

Rick Williamson


June 21, 2008 | 3:58 pm

Thanks guys that makes unfortunate sense.
jston


June 26, 2008 | 5:56 pm

you can make small patch that routes the midi from one computer to the
other, then you can choose which synth you want to send where in a
‘host-client’ – like relationship

i can send a patch i use if you want… i just don’t have it with me now

Cheers,

carey

On Thu, Jun 19, 2008 at 10:18 PM, Rick Williamson wrote:
>
>> Can anyone suggest a solution other than to try to find a used MIDI
>> patchbay?
>
> How about a 2 to 1 MIDI Merger.
> http://www.midisolutions.com/prodmrg.htm
>
> Rick Williamson
>


June 30, 2008 | 1:21 am

Thanks Carey,

It sounds like what you’re talking about is routing data from Max to Max
. What I (or rather my students) need to be able to do is to access
the synths from any application in a fairly straightforward manner.

I ultimately solved the problem by putting TRS plugs on one end of some
MIDI cables and then used them to set up patchpoints between each
computer’s midi interface and the synths via my patchbay. Now my
students can simply patch between a computer and any of the synths.
It’s rather lo-tech, but it works nicely.

I am however curious to know how you route the data between the
computers (ethernet?) and would therefore love to look at the patch even
though the other problem is solved.

Thanks!

Jon

carey dodge wrote:
> you can make small patch that routes the midi from one computer to the
> other, then you can choose which synth you want to send where in a
> ‘host-client’ – like relationship
>
> i can send a patch i use if you want… i just don’t have it with me now
>
> Cheers,
>
> carey
>
> On Thu, Jun 19, 2008 at 10:18 PM, Rick Williamson wrote:
>
>>> Can anyone suggest a solution other than to try to find a used MIDI
>>> patchbay?
>>>
>> How about a 2 to 1 MIDI Merger.
>> http://www.midisolutions.com/prodmrg.htm
>>
>> Rick Williamson
>>
>>
>
>


Jon Hallstrom
Dept. of Music, Colby College
5674 Mayflower Hill
Waterville, ME 04901
207-859-5674


June 30, 2008 | 3:23 pm

Hi Jon,

Here is the patch. It is Max4 but should open fine in Max5. It is
rough but did what i needed it to do. It was also an audio tester for
a show i was working on just to make sure all the hardware was working
ship-shape before the show. It also has some idiosyncrasies as i was
automating parameters with midi knobs and faders on the fly but I
think you can understand the basic principal. You could set it up
more intuitively with a better GUI, some more gate and/or route
objects or use a matrix object and have all your midi devices
accessible to any program using max as a virtual hub or router. One
thing you have to always be aware of is that your midi setup in max
can cause some confusion especially if you start using presets and
such.

#P window setfont "Sans Serif" 9.;
#P number 123 20 35 9 0 0 0 3 0 0 0 221 221 221 222 222 222 0 0 0;
#P window linecount 1;
#P message 105 39 48 196617 set 1 $1;
#P message 143 81 26 196617 145;
#P user meter~ 108 83 126 174 50 0 168 0 103 103 103 255 153 0 255 0 0
217 217 0 153 186 0 12 3 3 3 3;
#P user gain~ 78 85 24 100 158 0 1.071519 7.94321 10.;
#P newex 78 57 40 196617 adc~ 1;
#P newex 78 230 40 196617 dac~ 8;
#P newex 290 295 29 196617 gate;
#B color 5;
#P toggle 376 233 45 0;
#P message 228 138 14 196617 2;
#P window setfont "Sans Serif" 20.;
#P comment 241 86 115 196628 KEYBOARD;
#P window setfont "Sans Serif" 9.;
#P message 211 138 14 196617 1;
#P newex 184 98 30 196617 t b b;
#P newex 176 263 32 196617 print;
#B color 5;
#P newex 277 325 43 196617 midiout;
#B color 5;
#P newex 220 231 37 196617 midiin;
#B color 5;
#P newex 184 60 48 196617 loadbang;
#P user umenu 270 194 100 196647 1 64 210 0;
#X add "AU DLS Synth 1";
#X add "to MaxMSP 1";
#X add "to MaxMSP 2";
#X add "from MaxMSP 1";
#X add "from MaxMSP 2";
#P newex 270 170 45 196617 midiinfo;
#B color 5;
#P message 270 146 14 196617 1;
#P user umenu 130 195 100 196647 1 64 211 0;
#X add "from MaxMSP 1";
#X add "from MaxMSP 2";
#X add "to MaxMSP 1";
#X add "to MaxMSP 2";
#P newex 130 170 45 196617 midiinfo;
#B color 5;
#P message 183 146 20 196617 0;
#P toggle 19 256 60 0;
#P user gain~ 26 85 24 100 158 0 1.071519 7.94321 10.;
#P newex 26 57 39 196617 noise~;
#P newex 26 230 40 196617 dac~ 1;
#P number 106 260 35 9 0 0 0 3 0 0 0 221 221 221 222 222 222 0 0 0;
#P message 112 288 39 196617 set $1;
#P connect 23 0 24 0;
#P connect 23 0 25 0;
#P connect 27 0 23 0;
#P connect 28 0 27 0;
#P connect 16 1 6 0;
#P connect 16 1 9 0;
#P connect 16 0 17 0;
#P connect 16 0 19 0;
#P connect 13 0 15 0;
#P fasten 13 0 21 1 225 271 314 271;
#P connect 12 0 26 0;
#P connect 12 0 16 0;
#P connect 9 0 10 0;
#P fasten 9 0 20 0 278 164 381 164;
#P connect 5 0 2 0;
#P connect 5 0 22 0;
#P connect 0 0 2 0;
#P connect 1 0 0 0;
#P connect 20 0 21 0;
#P connect 21 0 14 0;
#P fasten 11 1 14 0 365 218 282 218;
#P fasten 19 0 11 0 233 190 275 190;
#P connect 10 0 11 0;
#P connect 8 1 13 0;
#P fasten 6 0 7 1 188 165 170 165;
#P fasten 17 0 8 0 216 190 135 190;
#P connect 7 0 8 0;
#P connect 24 0 22 0;
#P connect 26 0 24 0;
#P connect 4 0 2 0;
#P connect 3 0 4 0;
#P window clipboard copycount 29;

Cheers,

Carey

On Mon, Jun 30, 2008 at 2:21 AM, Jon Hallstrom wrote:
> Thanks Carey,
>
> It sounds like what you’re talking about is routing data from Max to Max .
> What I (or rather my students) need to be able to do is to access the
> synths from any application in a fairly straightforward manner.
> I ultimately solved the problem by putting TRS plugs on one end of some MIDI
> cables and then used them to set up patchpoints between each computer’s midi
> interface and the synths via my patchbay. Now my students can simply patch
> between a computer and any of the synths. It’s rather lo-tech, but it
> works nicely.
>
> I am however curious to know how you route the data between the computers
> (ethernet?) and would therefore love to look at the patch even though the
> other problem is solved.
>
> Thanks!
>
> Jon
>
> carey dodge wrote:
>>
>> you can make small patch that routes the midi from one computer to the
>> other, then you can choose which synth you want to send where in a
>> ‘host-client’ – like relationship
>>
>> i can send a patch i use if you want… i just don’t have it with me now
>>
>> Cheers,
>>
>> carey
>>
>> On Thu, Jun 19, 2008 at 10:18 PM, Rick Williamson
>> wrote:
>>
>>>>
>>>> Can anyone suggest a solution other than to try to find a used MIDI
>>>> patchbay?
>>>>
>>>
>>> How about a 2 to 1 MIDI Merger.
>>> http://www.midisolutions.com/prodmrg.htm
>>>
>>> Rick Williamson
>>>
>>>
>>
>>
>>
>
> –
> Jon Hallstrom
> Dept. of Music, Colby College
> 5674 Mayflower Hill
> Waterville, ME 04901
> 207-859-5674
>
>


June 30, 2008 | 3:25 pm

oh yeah and i routed the data via midi and audio cables but you could
just as easily route it with netsend, netreceive or maxhole or osc
or…

On Mon, Jun 30, 2008 at 2:21 AM, Jon Hallstrom wrote:
> Thanks Carey,
>
> It sounds like what you’re talking about is routing data from Max to Max .
> What I (or rather my students) need to be able to do is to access the
> synths from any application in a fairly straightforward manner.
> I ultimately solved the problem by putting TRS plugs on one end of some MIDI
> cables and then used them to set up patchpoints between each computer’s midi
> interface and the synths via my patchbay. Now my students can simply patch
> between a computer and any of the synths. It’s rather lo-tech, but it
> works nicely.
>
> I am however curious to know how you route the data between the computers
> (ethernet?) and would therefore love to look at the patch even though the
> other problem is solved.
>
> Thanks!
>
> Jon
>
> carey dodge wrote:
>>
>> you can make small patch that routes the midi from one computer to the
>> other, then you can choose which synth you want to send where in a
>> ‘host-client’ – like relationship
>>
>> i can send a patch i use if you want… i just don’t have it with me now
>>
>> Cheers,
>>
>> carey
>>
>> On Thu, Jun 19, 2008 at 10:18 PM, Rick Williamson
>> wrote:
>>
>>>>
>>>> Can anyone suggest a solution other than to try to find a used MIDI
>>>> patchbay?
>>>>
>>>
>>> How about a 2 to 1 MIDI Merger.
>>> http://www.midisolutions.com/prodmrg.htm
>>>
>>> Rick Williamson
>>>
>>>
>>
>>
>>
>
> –
> Jon Hallstrom
> Dept. of Music, Colby College
> 5674 Mayflower Hill
> Waterville, ME 04901
> 207-859-5674
>
>


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