Page 1 of 1

small useful gadgets

Posted: Sun Jun 09, 2013 1:55 pm
by tester
There was a "tradition" on SM forum, to share gadgets, so here it is. Small - but useful tools.

- circular counter: useful for making multi-mode buttons, switched back and forth with right/left mouse click
- time limiter: useful for making time limited demo apps (it uses it's own counter, not windows time signature)
- multi-function button: left/right click, left/right click-and-hold - useful for multi-mode switches and reseters

More to come. Maybe. ;-)

Re: small useful gadgets

Posted: Mon Jun 10, 2013 7:31 pm
by Drnkhobo
Thanks man! :D :D

Just a question, when you hold-click, is it supposed to increase the count for both (short-click & long-click)?

It does on my machine & thought it strange ( unless u want it that way ) ;)

Re: small useful gadgets

Posted: Mon Jun 10, 2013 8:20 pm
by tester
Generally this one is raw one (not updated yet).

Single "just click" can be combined with standard on/off routne (or multiple values via circular counter), and left/right mouse actions can be combined with each other to produce some quick resets or blocking options. When you hold click (left or right) - it sends second delayed separate trigger, that can be used for some cross-resetting/activating of multiple switches. Also - you can change the Ldo/Rdo into Lup/Rup (thus - trigger would be sent after mouse release instead of click). All click types are separate from each other in terms of sending triggers, that why you have 4 outs.

Ah, I see what you mean. Yeah, that's very simple 4-way clicker. This could be modified by using Lup/Rup and some time based blockers. Generally I did not extended it that way, because I use hold-clicks in situation, when right click always acts as reset anyway, so no big deal there, 1 trigger more or less.

Re: small useful gadgets

Posted: Mon Jun 10, 2013 11:40 pm
by tester
I just realized that I use circular counters (multi-option buttons) with no preset, so here is an example on how to connect the preset in order to store the values of your choice.

Notice, that this button is not bi-directional; but what is important, is that little feedback module, that receives info from preset, and sets then the counter to correct initial state. If you decide to play with it - remember that a lot inside depends on correct connection order.

Amount of triggers sent from output you can limit with "changed" prim.

Re: small useful gadgets

Posted: Tue Jun 11, 2013 12:34 am
by philter5
thx for sharing tester. :)

Re: small useful gadgets

Posted: Tue Jun 11, 2013 1:06 am
by tester
...and simple stream based pan (input in 0-1 range) for good night. ;-)

For green version - just exchange prims into green ones.

Re: small useful gadgets

Posted: Sun Jun 16, 2013 4:01 pm
by tester
As requested - multifunctional button with L/RDo and L/RUp combined with mouse hold. First version sends trigger on click, second version - on release. Long click (mouse hold) sends trigger through secondary outputs. One minor change from previous version - only one timer is used for both clicks. I guess this limits a little bit fast random clicking - or not. :-)

p.s.: it's possible to include a bunch of gestures too, like click'n'moveup, clic'n'moveleft (range, speed) and so on, so one button can have very many functions. I'm not sure about using dbclick (not tested), probably this will depend on trigger order (to block regular clicks). How many functions are you able to implement (keeping the button simple)? ;-)

Re: small useful gadgets

Posted: Tue Jun 25, 2013 2:07 am
by tester
Depending on what you do, some operations in your app may require additional confirmation, to avoid accidental clicking, that results in long loads, loosing data, and... sometimes crashing. This one just re-sends trigger if you click "yes".