Wiiremote bang routing problem

Nick Donovan's icon

Hi, I'm sending data from a wii remote buttons (included below is the subpatch 'buttons' from where I'm sending but I keep getting a problem in my main patcher where if I press the - or + button (or any bang, from any button, for that matter when using the receive vol- or receive vol+ object)... unsure what to do. I have put switches in place but I'm sure this is pointless and unnecessary now... any ideas?

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

Steven Miller's icon

What exactly is the problem you're having - what do you expect to happen and what is happening instead? Hard to help you debug if we don't know what you're trying to accomplish.

cap10subtext's icon

Looks like the problem is with your send/receive, check your max window and you'll see "extra arguments for message "send"" which means volume up and volume down won't perform as expected. Send/receive only accept 1 argument, that's the name that connect the send and receive. The moment you add a space it becomes 2 arguments.

Try vol_up and vol_down instead.

Regardless of whether this solves your problem:

*****Check your max window******

even if you don't understand the messages at first, they will tell you what's wrong and you can communicate the problem.

Nick Donovan's icon

Really helpful, thank you very much
N

Nick Donovan's icon

Unfortunatly the vol_up argument didn't solve the issue - my max window is giving me this and my hunch is that the problem is in the zeros that buttons share (the + button starts with the 4096 and the - button starts with 16) and the problem, just to remind you, is that both buttons are sending a bang message that is shared even though the send and receives are labeled differently... I just want the buttons to have a different bang message sent from the sub patch into the main patch and not to influence each other so that - I CAN USE + and - TO ADJUST VOLUME ON THE WIIREMOTE.
The max window reads:

print: 4096
print: 0
print: 0
print: 0
print: 0
print: 16
print: 0
print: 0

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

here is the subpatcher again if needed:

Luke Hall's icon

Try placing a [sel 16] and a [sel 4096] before the appropriate [send] objects so that they will trigger a bang rather than just sending the number values.

lh

Nick Donovan's icon

That's the one - thanks very much Luke