Auto-setting a Random Range number
Hey people!
I'm just starting to learn max. I just made a sampler with the playback of a random sample from the list using the "random" module. One of the arguments of the "random" module is Range (the number it will generate randomly), can I get this number from "umenu"?
I mean use the number of loaded samples to generate a random number.
Hi. Welcome to the community. Yes, see the example below:
Oh thanks mate! This looks cool!
But now I'm facing a new problem. The thing is, I'm using the "live.drop" object, it allows me to drag and drop multiple files into it, while "dropfile" accepts entire folders, maybe you know a way to combine both of these methods to add all files to "umenu"?
the [ubumenu] object suports "autopopulation" which more or less does that, but you can do it for [umenu], too, though with a bit work.
for example you could use a hidden second instance of umenu where you first store the folder names, and then run through this to fill the main menu visible to the user.
or you could build something like that using the [folder] object somewhere between the dropregion and your menu filling mechanism.