# Logic Gates

I got to thinking about logic and about how it might be nice to have some in the ER-301, then I remembered that the envelope probably has a threshold at which it triggers - quick check and it sure does

So, assuming you have a sound source, Linear VCA and Envelope set up as normal, route two separate streams of gates (with some steps having no gate) into two mixer channels prior to your envelope and the following works:

# OR*

Set both Mixer Units to -10dB

0 0 = 0
0 1 = 1
1 0 = 1
1 1 = 1

# AND

Set both Mixer Units to -20dB

0 0 = 0
0 1 = 0
1 0 = 0
1 1 = 1

Itās not too strict as it only works with relatively short envelopes otherwise you hear the pitch change in the tail of the envelope triggered from the previous gate.

This already provides quite a bit of flexibility and is rather fun!

I am pretty sure proper logic functions have already been promised, but this provides a nice little work around in the mean time

• I realise this would work anyway and changes nothing, but not the point heh!
7 Likes

# XOR

0 0 = 0
0 1 = 1
1 0 = 1
1 1 = 0

This took me a little longer to work out heheā¦

For both mixers, after the gate input insert a Linear VCA and set the gate input for that to be the opposite of the mixer channel, set the bias to be 1 and the gain to be -1 to invert the gate!

So for Mixer 1 the input is Gate 1, but then it has a VCA after the input and below the Mixer with input set to Gate 2, bias set to 1 and gain set to -1.

For Mixer 2 the input is Gate 2, but then it has a VCA after the input and below the Mixer with input set to Gate 1, bias set to 1 and gain set to -1.

Both Mixers are set to -10dB

Magic

2 Likes

A bit difficult to wrap my head around since I donāt have my ER-301 yet. But I think I get it conceptually.

Thatās pretty sharp there, @anon83620728.

Hehe, cheers, itās a bit weird, it took a little dose of thinking about. Iāve been wanting to do it for a few days and instinctively knew there must be a way, but I was busy with other stuff and couldnāt crack it until this evening

The one thing I canāt get it to do is respond to no voltage at all, anyone got any ideas?

I wonder i something is possible with a default state of there always being an internal tap tempo unit providing a constant gate? Need to think some more

1 Like

This idea of the tap tempo, or an offset, or actually anything else I tried doesnāt work very well, thereās always some bleed as the VCA closes and opens again. I guess you could get it to work within some pretty tight constraints, but itās already quite constrained and anything more probably wonāt be that much fun!

Going to leave it now, Iām more than happy with the three working logic gates, plenty to have fun with there

If anyone has any bright ideas on how to solve the zero voltage problem Iād love to hear them

This is some mad scientist top level finaggling right here!

3 Likes

very clever, I like it!

2 Likes

That is really well thought out. Love a bit of logic, gotta give this a go.

2 Likes

This sounds very familiar, as an echo from long agoā¦ this is basically the same technique used to build logic gates in silicon from transistors, which are basically just VCAsā¦

1 Like

Cheers everyone

Yes @bgribble, youāre right, which makes me think I am missing something with the other kinds of gates - I havenāt tried again since I last posted, but I have this feeling it should be possible and probably quite simple! Maybe Iāve been overthinking it. I might have another go

Of course this is a totally inefficient way to achieve this functionality, but hey, itās always good fun to push things a little!

Does the 301 have envelopes that can just be triggered? AD/AR maybe? So the gate length is irrelevant? That would give more scope to the envelope shape rather than having to go short to avoid the sustain level changing when gates stop overlapping.

Also (I donāt have one) do you have offset generators in the 301? If so use an offset voltage and then invert your gate input. That will help you work around getting a repose from 0V for other logic types. As you can offset to the binary value 1 (whatever that voltage is) and use an inverted gate alongside that so 0V gate lets the offset through and an inverted gate cancels out the offset. If thereās offset on the device Iām sure you can pipe one in from another module.

1 Like

Hey Ben,

Thank you for this, Iāve tried all these ideas and more, but the problem really comes down to when you have to add together these gates, it gets messy! You could be right though, I might have missed something simple last time around which was making it all go wrong hehe!

I said Iād have another go at some point, but I need to feel it to do it and well, the moment of interest and excitement kinda passed for nowā¦ Iāll have to wait for it to come around again and catch the wind in my sails! My head is full of other things now

I suspected youād have tried all this stuff.

One last thought on it (again just in case it was missed, and Iāve no idea how this works as I donāt have a 301) how about an inverter and offset per CV input. So youāre conditioning these inputs to work the opposite way around. Then mix them both together?

Or you could use an offset from elsewhere in the system and use a VCA inside the 301 to actually let the signal through and mess with it that way too. This could also be inverted at the input to the VCA or the VCAs output (presuming that anyway).

I get the moment of excitement idea, got to run with those things when they happen. Mine can be short lived, really good evening with something then I donāt get round to revisiting for a while. But still for me itās nice being on here and seeing how things are developing.

Sureā¦ just got to remember that this is essentially a hack, Iām quite sure you can do whatever you want using this method, but it might be tricky to get them all working together in a meaningful way.

Iāll definitely revisit your comments next time I get the urge - they are really helpful thank you

You know Iām going to start pestering you to get one hehehe! Imagine an impatient child in the back seat of a long car journeyā¦ āHave you got an ER-301 yet?ā

1 Like

haha well weāll see when that happens. Iām not planning on buying any gear at the minute with the current job situation for me (said publicly I may be loosing some work so trying to make modular / videos work for me more hence a bit more of a push with Patreon etc ā¦ these brackets are another shameless attempt to get people over to www.patreon.com/divkid too ) so kick the back of the drivers seat and keep saying it, Iāll welcome the banter haha.

2 Likes

First post here - my 301 is arriving this week. Relatively new to modular (2yrs) and am intrigued: using your technique, and with regard to or/and, how does a difference in mixer (output?) level yield different results? Happy to be pointed to an external resource. Cheers!

Hey @tomk,

Welcome!! I donāt think being new at something matters too much. I think the idea that you have been doing something a long time and therefore you must know everything is often not true! I know some folks who think they are gods gift, but actually they are quite ignorant on a lot of things, other people who are quite new to something but have the ability to blow my mind - weāre all just different - thatās it

Anyway, this works because thereās a threshold level at which the envelope triggers and the mix of the signals determines the level that gets fed into the envelope trigger.

A higher level on both mixers means that any signal at all will trigger the envelope, a lower level means that the signal only gets high enough to trigger the envelope when both inputs are present.

Lets look at AND and say the envelope trigger level or threshold is a hypothetical 1.5.

If the output of each mixer is 0 or 1 then the envelope threshold is only ever reached when both signals are present:

0 + 0 = 0
0 + 1 = 1
1 + 0 = 1
1 + 1 = 2 i.e. over the envelope trigger threshold of 1.5 so it fires!

I would recommend looking up how Logic gates work, the wikipedia articles are useful, lots to read.

Does this help?

Cheers

Yep this is clear to me, thanks! One other clarification: this technique uses two mixer units, each with unique gate streams, in series on one 301 channel?

Yes, thatās correct!

Enjoy

1 Like

This is a great unit to build if like me youāre only beginning to find your way around the 301. Thanks.

1 Like