Selecting Window Types to Load into Buffer
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!
use select 0, select 1, select 2, and so on, instead of == 1, == 2, and so on, and replace the numbers by a bang
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.
----------begin_max5_patcher---------- 655.3ocyW00iiBBE8Y6uBBI6aca.Dcrax7v76XyjMzVZG1nnQvLcmIy+8EQo eLosRas19BFtd8x4btGHxmiBfyxWyUPvu.+FDD74nf.an5.AsyCfYr0ySYJa ZvLtRwVwgiadWASO+Mgb0eJ4y0M0gjDNAMFjDUOhII1GlQvqseyxboVxx315 8Rofk5plrJSHS4Z6RQ1FLuR6hh2oHJwG1hfIl0nIrXgsp4y96OCQtx1745+U vaPHDBds9MeMZT8vXOotj+totthp4qsDFVTJj5SoGzns5QHsdjfNe4.eP4.4 sbPRfW.mqx3xpMT1nfslkMn+PDFYIYXSmGgtVFKz7r1kEpMYKWkZ7e.335Ac Iqf+gnJaSjUrJkxjEby5sujE5uj8zQcP1VtwHMtmMSJqaZInjWjxlyA+PMgI Vtra6ULpY6VT+5u7e6Fg12a2pxlwKcE07JQloKuSC7.hAMtl9Tq+KB0uRg67 HShNj3u5fi6xJMy3quLgZVkVmKOgEo0UfwgNE4a5xYXD1kSjixoKmLGaeAOE f6lhSw1SdhuzNO4jcdOZygmVR56iKd9YPX2pR7TqpD0upxYX9omz7eaL8Iw2 BO+zGGKeCAu6Ndzf63IcJJ2cCO9NX3o2DCexiigm9PX3G9S36VSt69c+s6Vn ASExuesSK4piuuFoxqJm6pl6+LAaY3BtRKjLsvr2XaR028Cf2jzahEK3xcuu TlXQQtAbsffDQmDYtiFw96iHraxQ5j8JVMWLa2j5DqWKldZOo4HXhNnXB6iN U+uUCIlh8ASmoNEEU6rhaNoNj5lbsPE6CTQOfxG9xkuoQ8k54ERGVwKzGHQF VLg7.SSGTH4iJMrGt5yFwq4XLyjuF8e.V1v79. -----------end_max5_patcher-----------
The select object fixed it. Thanks for the help!
here you have what I think that might work in your situation
Yep got it! Thanks again guys!
Forums > MaxMSP