Sort of Simple Question

rjy211@nyu.edu's icon

Hey everyone,

I'm new to the forum and I understand the whole RTFM idea, and I have. I've taken a class on MAX, designed a rather extensive ear trainer for the computer labs in my program at NYU, and I've just started experimenting with using the Nintendo Wii Remote as an external controller (which is awesome. The patch to use is aka.WiiRemote, if anyone's interested).

However, I've been stumped by something really simple. As part of the ear trainer I've made, I'm trying to allow the user to check and uncheck the intervals that will be played in the interval section of the ear trainer. Then I need to select one from that list at random.

What I need is a way to pick a random number from a list.

I've tried mixing "bag" and "coll," and I've looked into the Alea Max objects (though I can't seem to fid the original Alea, just more specific ones like alea-lin and such).

I have to be overlooking something really obvious. In the "table" help file, it has a Bang labeled random, but I can't figure that out either.

Any suggestions would be greatly appreciated. Thanks

Rob

Mattijs's icon

something like this should do the job:

Max Patch
Copy patch and select New From Clipboard in Max.

Mattijs

Quote: rjy211@nyu.edu wrote on Thu, 12 April 2007 18:13
----------------------------------------------------
> Hey everyone,
>
> I'm new to the forum and I understand the whole RTFM idea, and I have. I've taken a class on MAX, designed a rather extensive ear trainer for the computer labs in my program at NYU, and I've just started experimenting with using the Nintendo Wii Remote as an external controller (which is awesome. The patch to use is aka.WiiRemote, if anyone's interested).
>
> However, I've been stumped by something really simple. As part of the ear trainer I've made, I'm trying to allow the user to check and uncheck the intervals that will be played in the interval section of the ear trainer. Then I need to select one from that list at random.
>
> What I need is a way to pick a random number from a list.
>
> I've tried mixing "bag" and "coll," and I've looked into the Alea Max objects (though I can't seem to fid the original Alea, just more specific ones like alea-lin and such).
>
> I have to be overlooking something really obvious. In the "table" help file, it has a Bang labeled random, but I can't figure that out either.
>
> Any suggestions would be greatly appreciated. Thanks
>
> Rob
----------------------------------------------------

davidestevens's icon

On 12 Apr 2007, at 18:26, Mattijs Kneppers wrote:

>
> something like this should do the job:
>

Or have a look at Karlheinz Essel's RTC Lib (link on maxobjects.com)

david

tatama suomo's icon
(karrrlo)'s icon

>
> What I need is a way to pick a random number from a list.
>

here is another way just with coll, listfunnel and random

Max Patch
Copy patch and select New From Clipboard in Max.