Selecting Window Types to Load into Buffer

Simon's icon

Hey,

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!

Tiago Morgado's icon

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

Luke Hall's icon

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.

lh

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

Simon's icon

The select object fixed it. Thanks for the help!

Tiago Morgado's icon

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

Simon's icon

Yep got it! Thanks again guys!