Forums > MaxMSP

Selecting Window Types to Load into Buffer

Mar 19 2009 | 8:25 pm


Sorry for what might be a newbie question, haven’t been using MAX/MSP too long…

I was just wondering if someone could solve this problem for me. I want to be able to select from different window types to apply to a synth output.

I was planning on using the max switch object to select between several replace messages that load different ready-made aif window files into the buffer. Here’s a screenshot of the subpatch that takes an input from a umenu and outputs to the buffer.

My main problem is getting the result from the ‘==’ object (1/0) to trigger a message (bang/no bang)… Subpatch included

Thanks a lot! Smile

Mar 19 2009 | 10:49 pm

use select 0, select 1, select 2, and so on, instead of == 1, == 2, and so on, and replace the numbers by a bang

Mar 19 2009 | 10:54 pm

In this case you’d want to use [select 1] after every [==] object which will output a bang from the left outlet after receiving a "1". Another option would be to use [sprintf] to format the options in your [umenu] into the names of your files. Have a look at my examples and if there’s anything you’re not sure about have a look at the object helpfiles to see what is going on.


— Pasted Max Patch, click to expand. —
Mar 19 2009 | 10:55 pm

The select object fixed it. Thanks for the help!

Mar 19 2009 | 10:55 pm

here you have what I think that might work in your situation

Mar 19 2009 | 10:58 pm

Yep got it! Thanks again guys! Smile

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

Forums > MaxMSP