im getting my hands back on maxmsp after a long absence. im still running 4.6.3 on OSX 10.5.8. while trying to use an old patch i had written a long time ago for live performances, i noticed a bug but i cannot figure it out. any help mucho appreciated!
here is the problem:
1. I put samples inside folders, and the folders inside a main folder. For example '808' and '909' folders containing drum samples, inside a main 'drum kits' folder.
2. I want to drag and drop the main folder ('drum kits') on a dropfile area, so that the subfolders are listed in an ubumenu. This is very easy to do, since it's in the help patch for the ubumenu object (the subpatch for the prefix settings).
3. Here is where the problem starts: now I want that whenever I select one of the subfolders in the first ubumenu, for example I select '909' with the mouse, then I want that the samples inside it get listed inside a second, different, ubumenu.
I used to do this operation using
-- a simple 'message' object which stored the main folder path at the moment it was sent to the first ubumenu
-- then the subfolder name (outputted by the first ubumenu) was added using the sprintf object which allowed me to combine the two messages (the main folder path + the subfolder name) so that it becomes a subfolder path.
It used to work fine, but today it doesn't, and I don't understand why. Comparing the outputs of the two ubumenus (the one for the mainfolder, and the one for the subfolders) using print objects give me exactly the same message in the Max window, but the second ubumenu doesn't understand it when it comes out of the sprintf object? The only explanation I can imagine would be that sprintf gives a special format to the message, so that ubumenu cannot read it anymore??
Here is the test patch: