Page 1 of 2

Gate invertor

Posted: Wed Oct 20, 2021 9:48 am
by pauls999
I know this is a simple thing but how do you invert a gate signal, I want to trigger an envelope with a key off signal?

On my real modular i can just use any voltage invertor to do the job but that doesn't seem to work on volatge modular, probably becuase in the digital world its not a control voltage, so how can i do it here, is there a module that does that?

Re: Gate invertor

Posted: Wed Oct 20, 2021 10:45 am
by martb
Like this perhaps?
inv_gate.jpg
inv_gate.jpg (55.14 KiB) Viewed 7754 times

Re: Gate invertor

Posted: Wed Oct 20, 2021 1:02 pm
by ColinP
A NAND gate with both inputs tied together is an invertor.
invertor.png
invertor.png (180.98 KiB) Viewed 7744 times

Re: Gate invertor

Posted: Wed Oct 20, 2021 1:17 pm
by huggermugger
ColinP wrote: Wed Oct 20, 2021 1:02 pm A NAND gate with both inputs tied together is an invertor.
Cool, this works as well as the other. But can you explain how this patch creates the DC offset that martb''s solution requires?

Re: Gate invertor

Posted: Wed Oct 20, 2021 1:17 pm
by pauls999
Nope, The attenuvertor doesn't work, It invertes the gate signal to -5v but does not trigger the gate input. :-(

Re: Gate invertor

Posted: Wed Oct 20, 2021 1:23 pm
by pauls999
Yes, the boolian logic does work, Thank you Colin P :-)

Re: Gate invertor

Posted: Wed Oct 20, 2021 1:29 pm
by huggermugger
They both work equally well. Don't forget to add the DC offset to the Attenuverter and set it to minimum. This brings the inverted gate up into the correct range (0V to +5V. (inverting alone makes it go from 0V to -5V)

Re: Gate invertor

Posted: Wed Oct 20, 2021 1:39 pm
by ColinP
Here's another neat thing you can do with the Boolean Logic module.

It's called an SR Flip-Flop and is a one bit memory. Pressing alternate buttons (or using gates or triggers) flips it into the opposite state - hence the term flip flop.

S stands for Set and R stands for Reset.
SR Flip-Flop.png
SR Flip-Flop.png (320.3 KiB) Viewed 7735 times

Re: Gate invertor

Posted: Wed Oct 20, 2021 1:46 pm
by ColinP
Huggermugger is correct, martb's solution works. It's just that the NAND gate solution seems simpler to me because logic design was a hobby of mine back in the 1970's.

Re: Gate invertor

Posted: Wed Oct 20, 2021 1:54 pm
by ColinP
huggermugger wrote: Wed Oct 20, 2021 1:17 pm
ColinP wrote: Wed Oct 20, 2021 1:02 pm A NAND gate with both inputs tied together is an invertor.
Cool, this works as well as the other. But can you explain how this patch creates the DC offset that martb''s solution requires?
You don't need a DC offset. It's just pure Boolean logic.

The NAND gate (like the NOR) gate has functional completeness. You can construct an entire computer with just NAND gates.