Toggle confusion

jamesson's icon
Max Patch
Copy patch and select New From Clipboard in Max.

The mousestate portion of the lcd help patch has this fascinating thing

How is it that the toggle "continues to send" a bang without external input? I thought only metro and uzi did this?

Moreover, why doesn't clicking or banging the message do the same thing?

In fact, lcd seems to behave in an interesting manner in this general sense. If I send "getsize" with no connection at the right outlet, and then connect the right outlet at a later point, I get output!

AaronMButler's icon

Toggle isn't sending bangs, it's replacing the variable in the message with a 1 or 0. If you create two messages (idle 1) and (idle 0), then you'll be able to click them and get the same behavior as the toggle.

jamesson's icon

Ah, so. Thank you for enlightening me.