I'm new to max msp and have a little question. I'm doing a little experiment with a wii remote to make a air drumkit. I've managed to get some data out of it with OSCulator. And I've also managed to get an actual sound out of it when I use the accelerator from the wiimote. But now I'm willing to do two things.
1. When I get an output of 0.1 I want to get a hi hat sound. That is no problem. But when the output is 0.2 I want to have a differend sound and not the hi hat sound. The problem is that I dont know how to write this in Max. It has to be a kind of if else function but I'm not sure how to do this.
2. An other solution that would be even better is to change the sound when I press (for example) the "A" button of my wiimote. So when I have it unpressed, it wil make sound1 when I move with it. And when I press the A button it wil produce sound2 when i move with it. Notice that I dont want to make a sound when the A button is pushed. I want to trigger the sound the same way as sound1 but by pressing the "A" button it simply has to switch to another sound when moving.
I'm sorry if this is kind of confusing.
This is the code I have so far.
I would really appreciate some more info. I really want to take my maxmsp skills to the next level.
Thanks a lot!