only produce a single bang, depending on conditions

Leila Gillespie's icon

I am trying to produce a single bang depending on the position on the mouse but it produces many repetitive bangs. Can someone help :) I tried the one bang object but cant seem to figure out how it would help here. See patcher for more details!

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

Max Gardener's icon

You might do well to look at the change object.

Jean-Francois Charles's icon

[if ... then bang]... Interesting, I've never though of that. Maybe something like this:

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

Bill 2's icon

The [decode] object... Interesting, I've never heard of that. Will check it out - merci JFC. :-)

Floating Point's icon

jfc don't really need all that logic in your patch; can be simplified:

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

Roman Thilenius's icon

110: points FP to the [select] object
110: lolz
*** 110 has left the chat ***

Jean-Francois Charles's icon

@FP Nice indeed!
@110 you could use [sel] indeed, then with [change]:

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

Roman Thilenius's icon

now we are ready to add a [screensize] to the [scale]

Leila Gillespie's icon

Thx for the help!