dear maxers,
i've looked on the forum archives and found nothing that directly
addresses this in an obvious way. but my searching skills are pretty poor,
so i may have missed something.
i am wanting to write/have a patch or abstraction, that finds all aiffs
in a file hierarchy, not just in the immediate folder, but in all folders
(within folders etc.) from that given immediate folder.
i tried the obvious approach from a lisp programmer's point of view, using
recursion--not within a patch, but calling a patch from the same
patch--and was a little shocked to find that it is "not permitted." quite
disappointing. my students, many of them "course 6" (eecs), were a little
surprised too. the recursive patch was elegant, aside from the fact it
didn't work.
i can think of a solution: an internal loop, with a record being kept of
which level i'm at and an index for each level (my lisp impulse is to keep
it in a list, but i guess an array of some kind might be more idiomatic).
the rest is nuts-and-bolts [folder] checking, first for "AIFF" then for
"fold" and then populating a umenu with the append message keyword. then
working down the foler hierarchy. i guess that's the iterative solution.
but before i work more on this, i was wondering if there was an external
or an object that does this already, lurking somewhere out there. i'm not
a student looking for an easy fix; i'm a lecturer, as stressed as my
students as the semester comes to a close. we focus around 60% on
composition and 40% on programming, and at this end of the semester, i'd
like to keep it more compositional.
thanks for any help, or hints.
peter
music and theater arts, MIT
new intel g5, newish g5 ppc, older g4/ 10.4.8/ 4.6.2
ps. i'd prefer to avoid jitter, but if that provides an easy solution, i'd
be interested. my students all have max, but none has jitter, just the
school computers, and me.