Page 1 of 1

Trigger Toggles and Dual Sample & Hold

Posted: Sun Aug 31, 2014 10:23 pm
by Perfect Human Interface
I kind of wanted these so I made them. As with anything I make, they may not be the most elegant solution but I hope they're useful. :)

The first two modules toggle between two inputs whenever a trigger is received. The second module has two separate trigger inputs-- it will toggle to the top or bottom input depending which is triggered. The final module is like the second, but with sample and hold prims built-in. So it is effectively a two-headed sample and hold (rawr). Hopefully.

They should work with any green input.

Let me know if I did anything stupid. ;) Or brilliant... I'll take that too.

Re: Trigger Toggles and Dual Sample & Hold

Posted: Sun Aug 31, 2014 10:43 pm
by KG_is_back
There are much simpler ways to implement all 3 of them using trigger blocker prims.

Re: Trigger Toggles and Dual Sample & Hold

Posted: Sun Aug 31, 2014 11:27 pm
by Perfect Human Interface
KG_is_back wrote:There are much simpler ways


Oh of course there are. :lol:

People like you are why I gave up programming. Seriously though, thanks. I'll use these simple versions.

Re: Trigger Toggles and Dual Sample & Hold

Posted: Sun Aug 31, 2014 11:40 pm
by Perfect Human Interface
I added the help text and my little GUI indicators because I think they're important for debug/visibility (and they're easy to take out).

Re: Trigger Toggles and Dual Sample & Hold

Posted: Mon Sep 01, 2014 12:18 am
by Perfect Human Interface
I was sure Last Switched didn't work like that. :x I thought the value actually had to be different (as with the "changed" primitive-- the tooltip uses the same wording), not that it just waited for triggers. Of course it's not written in the manual either.

Another thing I wish I had known a long time ago...