DIYstompboxes.com

DIY Stompboxes => Building your own stompbox => Topic started by: Fancy Lime on September 11, 2017, 11:28:10 AM

Title: Envelope controlled filter question
Post by: Fancy Lime on September 11, 2017, 11:28:10 AM
Hi everyone,

so I decided it's time to graduate to envelope filters. The very funky kind. Designs goals:

-- Low pass filter with resonant peak (mode 1), band pass (mode 2) and maybe also notch (mode 3, not a priority. Will only be implemented if the design makes it easy to do so).

-- Up and down modes.

-- Full control over Q, range, attack and sensitivity

A natural starting point here seems to be the Mu-Tron III. And since it heavily features in R.G.'s auto-wah article, I even understand whats going on there. However, I would like to avoid optocouplers if possible. Mostly because they are expensive and a bit hard to get. Therefore, I'm leaning toward the filter control methods of the Doctor Q (or Dr. Quack) or Tim Escobedo's Phuncgnosis. Thing is: I don't quite understand the filter control on those. Can someone point me in a direction to learn a little something about:

1) How to design Voltage Controlled Resistors using BJTs. That's what the Dr Q does and applies to a multiple feedback bandpass, if I understand that correctly. Could not find useful material on that (that I understood) but I might have bees searching for the wrong terms.

2) How does the Phuncgnosis filter control work? What are the diodes doing in the filter section? Complete mystery to me at this point. How does the up-and-down control work?

Deadastronaut, you there? Your Phuncgnosis mods seem to improve things. Can you shed some light on this?

Thanks a bunch,
Andy
Title: Re: Envelope controlled filter question
Post by: Mark Hammer on September 11, 2017, 12:03:04 PM
Use of commercial packaged optoisolators is fine to avoid if they are deemed expensive or hard to get.

That said, there are cogent reasons for use LDRs as one's control element.  One of the conundrums of envelope controlled anything is envelope ripple during the decay phase of a plucked note.  As much as we would like to place faith in our envelope-extractors, they are imperfect.  Or, if they are good and smooth, they are not responsive enough for our liking.  One of the things that LDRs do is smooth things out a bit, such that we can aim for a faster response, but not have to suffer the jittery, sputter, ripple that leads many to ask "Why does my <filter> distort?".

A second consideration is that, while getting a bandpass filter to sweep only requires one control element, be it an LDR, bipolar transistor or FET (or diodes in the case of the Phuncgnosis), getting a lowpass with a resonant peak will require two control elements in order to sweep a state variable filter.  And, especially since those elements will not be connected to ground, that points towards use of optocouplers, be they commercial or homebrew.

The other alternative is that one use an entirely different approach, such as PWM of a control element or OTAs.  The MXR Envelope Filter uses the former.  And, while it is a SVF, only one filter mode is used in the stock pedal, even though others are available if one taps at other points.  I've loved that pedal ever since I bought one in '77 or so, mostly because it was for a long time, the only commercially available one that had variable attack time.  Decay time is easy to implement, and while it does play a role in matching the feel of the sweep to a song, attack time is probably more critical for sweep/song matching, and the MXR circuit does a nice job of that.
Title: Re: Envelope controlled filter question
Post by: digi2t on September 11, 2017, 12:31:50 PM
I recently traced out the Frostwave Funk-a-Duck. I can post the schematic if it will help you out. Envelope controlled MS-20 style filter.

No opto's.
Title: Re: Envelope controlled filter question
Post by: Kipper4 on September 11, 2017, 01:09:47 PM
3 modes
Defo with an SVF.

Up down mode things can get messy but no impossible within limits.

Nsl32 are a cheap and cheerful and very useful opto. I couldn't guess how much they would cost in your part of the world, but its probability worth googling.


I'll go find the phungnosis scheme.
Title: Re: Envelope controlled filter question
Post by: Transmogrifox on September 11, 2017, 01:28:31 PM
Quote from: Fancy Lime on September 11, 2017, 11:28:10 AM
1) How to design Voltage Controlled Resistors using BJTs. That's what the Dr Q does and applies to a multiple feedback bandpass, if I understand that correctly. Could not find useful material on that (that I understood) but I might have bees searching for the wrong terms.

The use of a BJT as a variable resistor operates it in saturation where it behaves most like a diode.  A diode exhibits a resistive behavior depending on the current through it.  More current, lower resistance.

This is only true for very small signals as the behavior is very nonlinear and it gets to sounding like distortion when the signal levels are very large.

The MFB filter is well-suited to this use since the voltage across the resistive element can be small.  With the dual-integrator loop of the SVF, the voltage across the device can get relatively large and you end up with distortion.

Quote from: Fancy Lime on September 11, 2017, 11:28:10 AM
2) How does the Phuncgnosis filter control work? What are the diodes doing in the filter section? Complete mystery to me at this point. How does the up-and-down control work?

Phuncgnosis works the same way as the Dr Q, only it uses LED's and uses the envelope detector current to change the small-signal resistance in the LED's.  The up and down control works by swapping polarity of the LED's.  In the down direction, the LED chain is biased ON, and the envelope detector works to shut it OFF (higher resistance).  In the up direction, the LED is biased OFF and the envelope detector works to turn it ON (lower resistance).

As Mark mentioned, PWM is an option.  You could apply the analog switches directly to the Mutron circuit, or just build an MXR filter and take the additional outputs.

Another option is the OTA-based state variable filter.  The LM13700 datasheet has an typical application circuit with low-pass and band-pass outputs.  It has to be extended somewhat to get the high-pass output (and thus notch), but this isn't hard to do.

Basically you replace each integrator stage in the Mutron design with an OTA stage.  The OTA stage is the integrator.





Title: Re: Envelope controlled filter question
Post by: Kipper4 on September 11, 2017, 01:29:12 PM
This phungnosis

http://www.diale.org/escobedo.html

I suppose it's not out of the question to use the charge pumps envelope detector.

Lob a led driver on the end of it. Add attack . Decay pot. A must for me. Attack is upto you.

The up down switch. Not sure if it makes a difference.
Not certain how it works but I guess the diode ladder versus the led provide different bias points in relation to the +input at from.


The mfb filters could be improved with a pot instead of 5M. Or series value and pot..

Rich

Title: Re: Envelope controlled filter question
Post by: Ben Lyman on September 11, 2017, 01:38:33 PM
in my Phuncgnosis the up/down switch works great but when it's in one of the modes (reverse of normal) it adds enough extra noise that it's unbearable with a heavy distortion pedal.
Title: Re: Envelope controlled filter question
Post by: Mark Hammer on September 11, 2017, 02:27:47 PM
If one aims for very fast attack and decay, then there is no practical difference between LDRs and any other sort of control element, since the changes happen too fast for ripple to be audible.  The Guyatone WR-2 Wah-Rocker, that Guthrie Govan uses exceptionally well and expressively, has fast time constants, and sounds ideal.  But if the intent is to have a choice of faster AND slower sweeps, using solid-state devices with slower sweeps shows up their shortcomings - they are TOO responsive to the little ripples in the envelope, and have more time to show it off.

I made myself a clone of the old DOD 440 Envelope Filter, with homebrew dual vactrol, and it sounds very vocal.  A different sort of filter with a pleasant sound.  There was a mod published in DEVICE (posted on my site) that shows how to increase the resonance.  The DOD FX-25 is an OTA-based filter that can provide lowpass and bandpass outputs (though the stock unit only provides bandpass) and comes with variable resonance.  The envelope-extraction lends itself to mods readily.  The bandpass and lowpass outputs have highly discrepant output levels, so any switching between the two requires some compensation for level.  But not bad sounding.  The 440 is smoother-sounding to my ears, though.
Title: Re: Envelope controlled filter question
Post by: Fancy Lime on September 11, 2017, 03:42:47 PM
Boy, that escalated quickly. I mean, that really got out of hand fast.

Thank you so much, everybody! You lost me with the terminology for a bit there. Praised be the almighty Google. Envelope filters are one gargantuan barrel of worms, I'm starting to think. That's going to be so much fun to dive into. Strictly figuratively speaking.

@Transmogrifox
Thanks for the explanations! That makes sense now.

@Kipper4
The NSL-32 is indeed the only optoisolator I can get for a reasonable price. A pair of those would set me back 8€, the price of a 1590B Hammond enclosure in these parts. I can get other optoisolators for 20€ a piece. Or LDRs for 8€ a piece. So nothing I would not pay if necessary but something I'd like to avoid if possible without sacrificing quality.

@Mark
I was dimly aware of there being some sort of "speed-problem" but not of the specifics. Thanks for the clarification!

@All
By popular suggestion I took a good hard look at the LM13700 data sheet. Let me see if I can summarize here: One can use an operational transconductance amplifier (OTA) such as the LM13600 or LM13700 to make a lowpass or bandpass in much the same way the mu-tron does with LDRs and op-amps. Tim Escobedo's "9V MS-20 Sallen-key LP VCF" would be such an example (albeit static). The DOD Fe-25 and Mad Professor Snow White (and Frostwave Funk-a-Duck?) use this principle method.

The MXR Envelope Filter sounds mighty interesting, especially because I agree with Mark that Attack is an important contol to have. Unfortunately getting my hands on a 4066 is not going to happen locally. So, out of sheer convenience, my first attempts are probably going in the direction of a LM13700 based thingamajig, tonally geared toward Mu-Tron and Moogerfooger 101 LP. The big question there: is there a way to control attack at all? I have not seen an attack knob on any of the schematics other than the MXR and I cannot think of an obvious way to do it. One would need a variable resistor that reacts slowly to a trigger signal... aaaaand we're back to LDRs, damn. How else to postpone the rise of the envelope (uh, Rise of the Envelope, nice band name)?

Cheers and thanks,
Andy
Title: Re: Envelope controlled filter question
Post by: ElectricDruid on September 11, 2017, 03:57:44 PM
If you're diving into the barrel of worms, you should have a read around "state variable filters" (SVF). Here's a good start:

http://sound.whsites.net/articles/state-variable.htm (http://sound.whsites.net/articles/state-variable.htm)

Here's the typical schematic, complete with three outputs. You can get a notch by mixing the LP and HP outputs.

(http://sound.whsites.net/articles/st-var-f1.gif)

The gist of this is that R6 and R7 set the cutoff frequency (in association with the two caps of course). At this point you decide how you want to do the actual implementation - you can use OTAs/VCAs to act as the resistors, or you can use LDRs in a vactrol, or you can use a PWM scheme. It's all the same filter, just with different control elements.

Of course, you don't *have* to use a SVF, but for three outputs simultaneously, it can't really be beaten.

HTH,
Tom

PS: Incidentally, about the notch...

http://www.edn.com/design/analog/4437967/Three-op-amp-state-variable-filter-perfects-the-notch (http://www.edn.com/design/analog/4437967/Three-op-amp-state-variable-filter-perfects-the-notch)
Title: Re: Envelope controlled filter question
Post by: Fancy Lime on September 11, 2017, 04:28:31 PM
Hi Tom,

yes, I'm aware of the SVF concept although I did not know its name before starting this here thread. The concept itself and how it works is fairly self explanatory from the Mu-Tron III schematic. Thanks for the links, great to have some additional theory. Need to get some more background to get this thing right.

Andy
Title: Re: Envelope controlled filter question
Post by: Mark Hammer on September 11, 2017, 04:37:42 PM
Quote from: Fancy Lime on September 11, 2017, 03:42:47 PM
The big question there: is there a way to control attack at all? I have not seen an attack knob on any of the schematics other than the MXR and I cannot think of an obvious way to do it. One would need a variable resistor that reacts slowly to a trigger signal... aaaaand we're back to LDRs, damn. How else to postpone the rise of the envelope (uh, Rise of the Envelope, nice band name)?
The general convention is that there will be a small resistance in series with the rectifier output (e.g., 47-330R), followed by an electrolytic cap to ground and often (though not always) a fixed resistor in parallel with the cap.  The small-value resistor determines how quickly the cap will charge up.  The cap also determines how long that charge-up will take.  The series resistor is the bucket used to fill the barrel, and the cap is the barrel.  A smaller resistor provides more current, filling up the barrel faster.  A bigger cap makes for a bigger barrel that takes longer to fill.

The parallel resistor is a hole in the barrel that drains it.  The barrel is leaking anyway, but the hole speeds up the leaking.  Designers will generally trade off series-resistor and cap values to achieve different sorts of charge-up/drain-off speeds.  Although increasing the series resistor will slow down the charge-up, unless there is a suitable buffer stage inserted immediately after the cap, increasing the series resistance beyond a certain point will yield an outcome of very poor sensitivity.  In other words, you can't simply increase Attack time without needing to turn up the Sensitivity.  The MXR unit is one of the few that allow independent Attack-time adjustment.  Although, even there, one can need to turn the Threshold up a smidgen at longest attack times.

I used to "believe" in mucking with the attack resistance, but found that the range of resistances needed to achieve a meaningful range of attack times  was unfeasible, if I followed stock designs.  I had much better luck by simply adding a variable resistance in parallel with the cap, to vary drain-off (decay) times.  It had much less impact on useful sensitivity, but still yielded a pleasing variation in feel without having to change the design very much at all.
Title: Re: Envelope controlled filter question
Post by: digi2t on September 11, 2017, 11:48:21 PM
Here's the Funk-a-Duck;

(https://s26.postimg.org/4bzynlwxx/FAD_schematic_001.jpg) (https://postimg.org/image/4bzynlwxx/)
Title: Re: Envelope controlled filter question
Post by: Fancy Lime on September 12, 2017, 03:45:29 AM
@digi2t
Interesting schematic, thanks! Not awfully obvious to me what does what, though. I'll have a deeper look and compare to the demos on youtube as soon as I find the time.

@Mark Hammer
Thanks for the explanation! The "bucket and barrel network" after the rectifier you are referring to looks something like this in the Mu-Tron.

---330Ω-----------
          |      |
         4µ7   47k
          |      |
          v      -9V

If I'm not mistaken, replacing the 47k to ground with a 100k or so pot (plus maybe a 22k resistor in series with the pot) would act as a Release control (draining the barrel with a spigot), correct? If changing the series resistor (lets call it Rs) has unwanted side effects, I would imagine that this has partially to do with the fact that it forms a voltage divider with the resistor to ground (Rg). If Rs becomes large (increasing attack time), then the peak voltage available at the output of the network goes down, influencing sensitivity. So we want to keep Rs<<Rg in all settings to keep interaction with the sensitivity knob reasonable. Changing the capacitor (within certain margins) on the other hand should have no effect on the output voltage. Have you fiddled with that? A pot for fine tuning Attack would be great but a switch with 2-5 settings that switches between capacitors and allows some discrete Attack values as presets would still be a lot better than nothing. I don't mind have to readjust the Sensitivity after changing Attack and Release, but of course if the interaction is too strong it becomes difficult to find the desired settings.

Also: I'm wondering what would be the effect of adding a second such network right after the first. I mean, for rising voltages, the Rs-C combination acts as a delay from a voltage over time perspective, correct?. The C-Rg combination does the same for falling voltages. So should a second network not have the effect of smoothing out ripples. One may want to design the first one with faster and the second with slower reaction. The effect may be too small to be worth the effort but has anyone actually tried? If it works that may be a bit of an improvement (and nice switchable option) for fast Release times on bass frequencies, where we otherwise get the "space wobble" effect (which can be nice too). Is that worth the try?

Cheers,
Andy
Title: Re: Envelope controlled filter question
Post by: ElectricDruid on September 12, 2017, 04:53:38 AM
Adding a second RC filter combination after the first does do what you think it does, but the losses through the filter start getting serious, since the second stage loads the first stage.

If you think of the 330R/47K as a voltage divider, you're ok, because most of the voltage gets through.

If you stick another 330R/47K across the 47K of the first divider, you've now got basically half of 47K (two 47Ks in parallel) so the output level drops significantly.

In reality it isn't this simple (I've completely ignored the caps, for example) but you get the principle.

But try it. You might have enough signal, or enough sensitivity in the following filter control input.

Tom
Title: Re: Envelope controlled filter question
Post by: Fancy Lime on September 12, 2017, 05:48:02 AM
Hi Tom,

thanks for the clarification. I'll play with that a bit and see what sticks. The values will certainly need major tweaking in this case. I was planning to start with something around 330Ω for Rs1 + Rs2 in series and 47k for Rg1 and Rg2 in parallel to keep close to the original voltage divider values. So the Rs have to becom smaller and the Rg bigger. Maybe equal values (~165Ω and 100k) are a good starting point. We'll see.

I'm not 100% sure but I think the first Rg in such an arrangement may be unnecessary (well, more unnecessary than the additional Rs and C) since it is parallel with the other Rg and only separated from it via a comparatively small resistor.

Cheers,
Andy
Title: Re: Envelope controlled filter question
Post by: Mark Hammer on September 12, 2017, 07:54:40 AM
Your instincts regarding the voltage-dividing properties of Rs/Rg are correct.  But one also needs to be concerned with the current-limiting effect of Rs.  Imagine that the circuit directly drives an LED.  The sort of series resistance required to appreciably increase the charge-up time of the cap would also drastically reduce the current driving the LED, reducing its brightness.

As I hope I conveyed earlier, if there is something else in between the envelope-modifying components (Rs, etc.) and the control element it is driving (as is the case for the MXR Envelope Filter), in order to buffer or otherwise compensate for that current loss, then one can tinker with attack time at will.  But most commercial designs won't do that, largely because it adds parts, cost, space.  One would have to "invent" the added circuitry to adapt to an existing design and insert it.  That's certainly not impossible, but only a small fraction of us here are equipped to do all that on our own.  A great many prefer to hunt for a circuit and accompanying layout that meets their needs and just make that.  That's not wrong, but it means that "I just wish it could do more X" requests will require a bigger step beyond.
Title: Re: Envelope controlled filter question
Post by: Fancy Lime on September 12, 2017, 08:48:17 AM
Hi Mark,

Quote[...] That's certainly not impossible, but only a small fraction of us here are equipped to do all that on our own.

I agree and I sure am not one of them who can do that all on my own. Good thing I'm not alone here, isn't it? Seriously though, I'm not the social type, so the main reason I am on this forum is to exchange ideas. I'm getting really useful input here and I hope to give others some useful ideas too because in my experience, most great ideas are the result of dialog and quite few are a divine afflatus to an isolated genius.


QuoteA great many prefer to hunt for a circuit and accompanying layout that meets their needs and just make that.

Well, not me I don't. I started the whole DIY thing partly to see if I could and partly because I was unhappy with any and all available bass fuzzes at the time. But by now its mostly driven by the quest for something new. The whole cloning and modding is just a way for me to learn how things work before trying to improve on them and making something new. If I just wanted an envelope filter that sounds the way I want it, I'd simply build a Mu-Tron III clone with a few mods and additions, that would get me 95% to what I want. But I'll be damned if I won't try to get those last 5% and stray from the beaten path where it is useful. I'm not a believer in traditions for traditions sake and often interesting things happen when one tries to do things a little differently just to see what happens. That's a big part of the fun of this game for me. Having a good sounding stompbox is nice and all but having developed and built one that is (subjectively) better than the others doing similar things is what I enjoy most. As you said, that's difficult to do alone. And that is exactly what is great about this forum and the support and discussion input I get here. Thanks, I really appreciate that.

Cheers,
Andy
Title: Re: Envelope controlled filter question
Post by: Mark Hammer on September 12, 2017, 10:27:18 AM
It's still DIY if one does hunt down a suitable circuit and layout.  Heck, it's still DIY if you send away for a pre-etched board and parts kit.  It's just a bit more DIY if one DIAYs (A = all) it.  :icon_lol:

Some folks will stick with tradition because there is something they always wanted to own and use, but they either couldn't find one or the price was prohibitive.  I don't fault them for not having an original; I credit them for their good taste.  And most will eventually decide to wander beyond the perimeter of what has already been done.  Sometimes they only think they have wandered outside that boundary.  But that's okay, even if they are repeating something that has already been done to death.  Their heart is in the right place.  Sometimes, folks get possessed by the B.U.M. syndrome (blind urge to mod), purchasing a perfectly decent pedal that resulted from hundreds of hours of R & D, and immediately asking "What mods can I do?".  Again, that may be wasted effort on their part, but their heart is in the right place if they feel it's a good thing to want to go beyond the known.

One of the aspects that has distinguished this forum for the two decades of its existence in various forms/platforms is that folks spend 95% of their effort in collaboratively solving problems, and much less of it either mouthing off or criticizing others for their choices, as can sadly be the case when there is nothing to work on together.  It makes for a much nicer ambiance.  We're glad you found it, and glad we found you, too.
Title: Re: Envelope controlled filter question
Post by: Kipper4 on September 12, 2017, 12:47:17 PM
Here here.
For me this is just my bag. I've built two mutron iii and have parts and pcb for another.
Good luck getting the vcl vactrol for it. Those are getting scarce..

I've been waiting for a topic like this.
I'm too busy doing landscaping in the garden to make pedals until winter arrives. U.K.

Maybe I can learn some about the implementation and use of OTA's.
Bring it on.

Mark Hammer, Dino, Tom. These guys are the best. I've learn so much from them.

There's a very helpful magazine PDF about OTA's on the internet somewhere.
I'll look it up for ya.

Rich.
edit
Would'nt you know it i cant find the magazine article on the net. I'll dig mine out and send it to you asap.

Did I say already R.G Keens Technology of the auto wah should help you with knowing what does what in an envelope filter.
Title: Re: Envelope controlled filter question
Post by: Kipper4 on September 12, 2017, 02:03:04 PM
Got it.

http://www.idea2ic.com/LM13600/UsingOTAs2.pdf
Title: Re: Envelope controlled filter question
Post by: Fancy Lime on September 12, 2017, 03:48:01 PM
@ Mark
QuoteWe're glad you found it, and glad we found you, too.
The pleasure is all mine, I feel very welcome. This is certainly one of the nicest and most collaborative forums I know. Strange how forums have their own dynamics. Here I feel like I can ask the stupidest questions (although I try not to but that's not the point here) and would still get a polite, helpful and sincere answer. There are other forums where that sort of thing leads to, uhm, distinctly not polite "conversation". Good to be here.

@ Kipper4
Thanks! The article looks very helpful, although I have not read the whole thing yet. R.G.'s Auto-Wah article on Geofex is where I started. I learned a long time ago to first check the usual suspects for "technology of the ..."-type article before diving into a new topic. As I would recommend to anybody. Had that same discussion with R.G. a few days ago on a polarity protection thread.

Back to the topic: I've been thinking about the Attack control problem with the voltage divider a bit. Where did I read about that same problem in a different context? Then it hit me like a ... Hammer. Sorry for the pun. A certain Mark Hammer posted a little piece of circuitry that solves exactly that problem and called it the Stupidly Wonderful Tone Control. By doing the same thing with the envelope network, replacing Rs with a pot (say 500Ω) and dangling C from the wiper should at least lessen the effect that the Attack setting has on the Sensitivity while also keeping the current limiting for the filter control unit constant. has anyone tried this? If not, I will. If it works, the corresponding knob shall be labeled "SWAC".

Progress report on the filter section research: Seems to get lowpass, bandpass and bandstop characteristics, a state variable filter topology by the name of Kerwin-Huelsman-Newcomb (KHN) Biquad Filter is what we want, which also gets us a highpass output thrown in for free. Thats what the Mutron uses, implemented with opamps. I have not been able to find that particular design realized with OTAs. All actual designs I found (like the DOD FX-25 and Mad professor Snow White) all seem to use a different topology. Specifically the one that is mentioned in the application notes of many OTAs. But that only has band- and lowpass outputs, so no way of getting a notchfilter. It should be fairly easy to convert the Mutron filter for use of an OTA by simply replacing the two inverting integrators with respective inverting integrator OTA stages. That must have been done before but I can't find it, so I'll draw up the schematic and try if it works as soon as I find  quiet minute. Maybe a "non-optical Mutron" schematic is something some people might like.

Cheers,
Andy
Title: Re: Envelope controlled filter question
Post by: Transmogrifox on September 12, 2017, 08:34:34 PM
Here's an ASCII schematic for Attack and Release control:
                                                     POT
                                  1N914       ATTACK
[OP AMP OUTPUT]-x------>|----------/\/\/\/--------x
                            |------|<----------/\/\/\/--------|
                                   1N914       RELEASE         |
                                                     POT               |+
                                                                       -----  Capacitor
                                                                       -----
                                                                          |
                                                                          |
                                                                        GND
The forward diode forces the resistance value on the attack pot to be used when the output voltage is higher than the capacitor voltage, setting its charge time.

When the op amp output gets lower than the capacitor voltage then it must discharge through the release pot, which allows you to set the discharge time.

This is a bit simplified because you would usually want a current limiting resistor in the op amp output to keep things happy when one of the pots is set to 0 resistance.

This circuit also assumes the voltage coming from the op amp output is already rectified and reasonably filtered (to a minimum attack/release time).  A peak detector with minimum release time would be appropriate pre-conditioning.

In either case this solves the voltage divider problem.


Title: Re: Envelope controlled filter question
Post by: Fancy Lime on September 13, 2017, 10:16:49 AM
@Transmogrifox
Hmm, interesting idea. Certainly worth a try.


As for the idea to use a Stupidly Wonderful Tone Control like arrangement for the Attack: OF COURSE someone had thought of that already. The Lovetone Metball seems to do exactly that, according to some cryptic forum descriptions, although I could not find a schematic of it. From what I understand the Meatball is pretty much a Mutron that had the living bejeezus modded out of it.
Title: Re: Envelope controlled filter question
Post by: Transmogrifox on September 13, 2017, 08:00:55 PM
Quote from: Fancy Lime on September 13, 2017, 10:16:49 AM
From what I understand the Meatball is pretty much a Mutron that had the living bejeezus modded out of it.
In other words the Meatball uses a state variable filter...and that's where the similarity to the Mutron ends.
Title: Re: Envelope controlled filter question
Post by: Fancy Lime on September 14, 2017, 02:46:35 AM
Quote from: Transmogrifox on September 13, 2017, 08:00:55 PM
In other words the Meatball uses a state variable filter...and that's where the similarity to the Mutron ends.

It also uses a precision rectifier for envelope tracking and optocouplers to control the SVF. I found the schematic in the meantime. So the concept is identical with that of the Mutron. One could even mod an existing Mutron to be functionally almost identical to the Meatball by adding a bunch of switches to switch capacitors and connections and some pots to replace resistors. Don't get me wrong, I'm not trying to downplay the design of the Meatball or anything. It seems to be a great sounding very versatile envelope filter from what I can tell (only watched some demos, never had a chance to play it myself) and that's what design is about (as opposed to invention). Adding knobs and switches in all the obvious places is one thing but to make the whole thing and the additional settings sound good and have useful ranges is what distinguishes a good design from an unusable Mutation by Blind Urge to Mod (BUM). Just saying, from a concept perspective, it is a descendant of the Mutron, isn't it? One could say it is a member of the wider Mutron family. May also be convergent evolution, of course, although that seems a bit unlikely considering how well known the Mutron is.

Cheers,
Andy
Title: Re: Envelope controlled filter question
Post by: Mark Hammer on September 14, 2017, 08:28:02 AM
The number of descendants of swept SVFs is substantial, so I wouldn't take anything away from the Meatball.  And if you look up the Mu-tron III on the effectsdatabase, you'll see that the "family tree" is quite extensive.  One of my first 3 pedal purchases, in 1977 or so, was a Fernandes Funky Filter ($25, new) that was a repackaged and rebranded Mu-Tron.  That said, the Meatball is a hyper-modded Mu-tron III....which is not a bad thing.

If you look in Craig Anderton's Electronic Projects for Musicians book from the early 80's, it also shows a project to adapt a state-variable filter to envelope control.  The Ibanez AF9 Autofilter is also a Mu-Tron clone.
(http://files.effectsdatabase.com/gear/pics/fernandes_fr-3f_001.jpg)

Title: Re: Envelope controlled filter question
Post by: Transmogrifox on September 15, 2017, 04:24:05 PM
The SVF envelope controlled filters are all in the same family of effects in the sense that the designs use a similar principle.

It is unclear to me whether the Mutron was the reference design and these others are variants, or if it's just because the SVF is a well-understood (well-studied) filter topology it stands on its own as the origin for this type of design.

In other words, designers could independently come to a very similar circuit topology without ever having reverse-engineered the competition.

Case in point : When I was in college learning about the biquad filter designs I was envisioning an envelope-controlled filter without ever having known there was ever such a thing as a "Mutron".  At the time I didn't know much of anything about guitar effects except that I had a Digitech RP-20 Valve that made some really cool sounds, and also a few distortion pedals.  The rest was pure invention as far as I was concerned -- only to find out the same things were invented before I was even born.  Ignorance really is bliss.  It was a nice feeling to think I was really creating some new things before I discovered my schematics would have been considered a (poorly designed) knock-off of some well-known guitar effect.

If I were to make a guess I would tend to think there is an analog synthesizer circuit that might be credited as the pioneer in using a state-variable topology in a VCF...from there it is a natural extension of the concept to apply the same type of filter to other types of musical instruments.  More likely than not, the guitar-oriented variants would be a stripped-down implementation of a more full-featured implementation (synth players like LOTS of knobs).  Several makers in the pool of competition could have easily come to the same conclusions independently.

I'm sorry if I have belabored this point beyond what is due.  I got to going and couldn't stop myself :)

The main point I think we all agree upon is that the Mutron designs and many others share a lot in common so you can start with about any one of them as a reference design and end up in the same place by "modding the bejeezus out of it".
;)
Title: Re: Envelope controlled filter question
Post by: PRR on September 15, 2017, 11:58:22 PM
> the same things were invented before I was even born.

"The ancients are stealing our inventions!"

If you live long enough, you will realize that there is very little new in audio.

The State Variable was studied in the 1940s or before. At that time it was expensive; practical analog computers used simpler less-universal filter schemes. $50 op-amps were a revolution, and $2 op-amps the sky exploded with SVF ideas.

Many old ideas are "ahead of their time"; you can do that, but why would you want to?? The concepts and techniques of musical sound-bending lagged behind filter theory.
Title: Re: Envelope controlled filter question
Post by: ElectricDruid on September 16, 2017, 06:41:00 AM
Quote from: Fancy Lime on September 12, 2017, 03:48:01 PM
Progress report on the filter section research: Seems to get lowpass, bandpass and bandstop characteristics, a state variable filter topology by the name of Kerwin-Huelsman-Newcomb (KHN) Biquad Filter is what we want, which also gets us a highpass output thrown in for free. Thats what the Mutron uses, implemented with opamps. I have not been able to find that particular design realized with OTAs. All actual designs I found (like the DOD FX-25 and Mad professor Snow White) all seem to use a different topology. Specifically the one that is mentioned in the application notes of many OTAs. But that only has band- and lowpass outputs, so no way of getting a notchfilter. It should be fairly easy to convert the Mutron filter for use of an OTA by simply replacing the two inverting integrators with respective inverting integrator OTA stages. That must have been done before but I can't find it, so I'll draw up the schematic and try if it works as soon as I find  quiet minute. Maybe a "non-optical Mutron" schematic is something some people might like.

Often the "data sheet" version of the filter uses the two inputs of the OTA to provide the inverting action that is needed for some of the feedback paths. This saves an op-amp, but means you lose the highness output (and therefore the possibility of a notch). However, you can always add it back in. If you look at the ESP pages SVF layout, the differential mixer stage can be added ahead of the two integrators, and then you get a highness output.

It's just tempting, if you're using OTAs, to use the +/-ve inputs and save the op-amp. Especially if you're a 1980's pedal designer with your boss breathing down your neck and muttering about costs! ;)

HTH,
Tom
Title: Re: Envelope controlled filter question
Post by: Fancy Lime on September 17, 2017, 02:04:44 PM
Alright, I adapted the Mu-trons SVF for use with a LM13700 OTA.

(https://s26.postimg.org/mrmjtoltx/SVF.png) (https://postimg.org/image/mrmjtoltx/)

I'll try that with manual frequency control first before hooking it up to an envelop follower.

If someone spots errors, please let me know. the buffers are simplified in the schematic, in real life they need a 5.1k or something to V-, but I wanted to keep the schematic readable.

Cheers,
Andy
Title: Re: Envelope controlled filter question
Post by: ElectricDruid on September 19, 2017, 05:51:34 AM
I was messing with a filter very much like this the other day. It worked fine, except I was getting terrible thumping at the low end (control feedthrough?). It was ok if you pushed the filter frequency higher up into the upper audio range, but then you don't get that nice low-end "quack" that you want from these type of things.
Does anyone have any experience to share with controlling control feedthrough with these LM13700 filters?

Thanks,
Tom
Title: Re: Envelope controlled filter question
Post by: Fancy Lime on September 19, 2017, 06:02:27 AM
Could that have to do with AC in the control voltage? Have you played with the values of the resistors that go into the control terminals? I was wondering why it is that all practical designs seem to have one resistor before each control terminal and after they split from the control voltage source (thus separating the control terminals), whereas the application notes all have one resistor before the split (thus having the control terminals directly connected). Which way did you go here? Have you tried the respective other? I would imagine that allowing the control terminals to talk to each other may cause unwanted side effects in a real-world circuit.

Andy
Title: Re: Envelope controlled filter question
Post by: Mark Hammer on September 19, 2017, 08:36:54 AM
Swept filters generally become most interesting and attractive when there is some resonance added.  If the sweep starts low, especially for a lowpass filter, the additional gain provided by that resonance can make the bass particularly obnoxious.  FL is correct in that starting the sweep up higher avoids the thump, but loses the appeal.  I adapted the DOD FX-25 for a bass-player friend, so that it was lowpass, rather than the stock bandpass.  It also had an annoying thump at the bottom of the sweep.  I wonder if there was some way to have the resonance co-vary with the sweep.  That is, at the low end of a lowpass sweep, the resonance is reduced, only increasing as the corner frequency does.  In some respects, that would be a job for a SVF that has both voltage controlled corner/center frequency AND resonance.
Title: Re: Envelope controlled filter question
Post by: Fancy Lime on September 19, 2017, 09:50:37 AM
Hmm, interesting thought. The resonance pot on the FX-25 and its cousins controls the negative feedback of the bandpass stage. So by replacing this negative feedback, which is allpass as things are now, with a lowpass negative feedback in such a way that the resonance pot only affects the high frequencies but lows are always passed through to the inverting input, should have the desired effect. Might be worth a try. An appropriately sized cap between the 22k feedback resistor and the resonance pot might be all it takes, if I'm not mistaken. Maybe a resistor in series with the cap, too.

Andy
Title: Re: Envelope controlled filter question
Post by: Fancy Lime on September 19, 2017, 10:03:37 AM
No, now I see it. What I just proposed won't work. One would need to replace the resonance pot with a fixed resistor (10k or so) and put the resonance pot (100k log) from the new cap to ground.
Title: Re: Envelope controlled filter question
Post by: Fancy Lime on September 19, 2017, 12:08:45 PM
There is another thing I was wondering about in the FX-25:

It uses a half-wave rectifier to fill a 22µ cap (which goes to ground) with the positive half wave. So one would assume that with no signal, the cap is empty and the control line to the OTA should sit close to ground. Yet the cap does not have a resistor parallel to ground that would do that but has a 1M going to V+. Is that correct? I've been wrecking my brain but I cannot figure out how this would possibly work. Seems to me that with no signal the control line (as per the schematic) sits at V+ and when there is signal it goes more positive. That can't be right. I must be looking at this the wrong way. Can someone explain?

I'm trying to modify the envelope follower such that it can be switched from up to down mode, which should be possible by turning around the diodes and adjusting the idle voltage at the 22µ cap. But for that I should probably understand how the whole thing works. If that 1M resistor went to ground I would think I understand but as it is...

Thanks,
Andy
Title: Re: Envelope controlled filter question
Post by: Transmogrifox on September 19, 2017, 12:42:02 PM
The OTA control inputs sink current, which discharges the cap through the respective 10k resistors. 

The 1M resistor sets the minimum cut-off frequency.  If it weren't there the filter would go almost silent on low signal levels.

In the end that node with the 22uF cap probable sits at around 0.6V when there is no input signal.
Title: Re: Envelope controlled filter question
Post by: Fancy Lime on September 19, 2017, 01:00:38 PM
Thanks! I see, that complicates any attempt to make a down mode. May explain why most OTA based ECFs have no down mode and the Boss FT-2 has such a complicated envelope section.

If the resistance between the cap and the OTA works as the drain, adding a pot there would be a decay control, would it not? That would probably also change other thing, wouldn't it?

Replacing the 1M resistor with a pot would make a Range control, right. That would definitely be interactive with a potential decay control. But hey, you need a pilot license for a dynamic filter of a certain complexity anyway...  :icon_wink:

BTW there is a youtube video with a FX-25 with a "synth mode". By the sound of it I would assume that that simply disconnects the 22µ cap, making the filter follow the dynamics instantly for the full-on ripple effect, we normally want to avoid. However, I could not find anything to verify or falsify this. Does anyone know. Great option for some space funk.

Cheers,
Andy
Title: Re: Envelope controlled filter question
Post by: Transmogrifox on September 19, 2017, 08:30:35 PM
It would be a little bit complicated to modify an existing FX-25B to use a reverse mode, but when designing from the ground-up you can add a second rectifier path that works in reverse -- just reverse the diodes.  The you can switch between the rectifier that pulls down, or the one that pushes up.

The switch function would switch to the second rectifier.  The second rectifier output side would have another lower-valued resistor to Vcc to pull up to your max range, or maybe a transistor configured as a constant-current source so you still get the same time constant against the capacitor for attack and release times (the 10k resistors going to the CV inputs dominate the release time constant).

I don't see it as being particularly more complicated than what you have to do with a Vactrol.

As for your comment about range control, replacing the 1M resistor with a pot wouldn't change the decay time very much until it got close to 10k.

About decay control, you would get a change in decay time by putting a pot in series with the 10k resistors to the OTA CV inputs, but you would also change the max range of the filter.  This is the control that would be notably interactive.
Title: Re: Envelope controlled filter question
Post by: menome on September 23, 2017, 10:02:52 AM
http://sound.whsites.net/articles/st-var-f1.gif

SFV Filter-

"r6 and r7 set the cutoff frequency"  which of these would you replace with a pot if equal value to adjust cutoff frequency, or would one be cutoff, and the other resonance?
Title: Re: Envelope controlled filter question
Post by: Kipper4 on September 23, 2017, 11:30:26 AM
I guess it depends on which output you use.

Read further down here.

http://sound.whsites.net/articles/state-variable.htm


Then look at some other SVF autowah schematics.

In the sabrotone version here replace the ldrs with a dual pot. To change the corner freqauncies.


http://www.sabrotone.com/?attachment_id=3192



Title: Re: Envelope controlled filter question
Post by: ElectricDruid on September 23, 2017, 03:18:43 PM
Quote from: menome on September 23, 2017, 10:02:52 AM
http://sound.whsites.net/articles/st-var-f1.gif

SFV Filter-

"r6 and r7 set the cutoff frequency"  which of these would you replace with a pot if equal value to adjust cutoff frequency, or would one be cutoff, and the other resonance?

You'd replace *both* of them with pots - e.g. a dual pot is required, like Kipper mentioned in the Sabrotone pedal. The resonance is controlled by the feedback paths through R3 and R5. You can make one of those variable. Since the integrator stages U2 and U3 are inverting, the Bandpass feedback is out-of-phase and acts to *damp* the resonance, whereas the Lowpass output is in-phase and acts to increase the resonance. This is worth pointing out since it means the control works the opposite way around depending if you use R3 or R5 as the resonance control.

HTH,
Tom
Title: Re: Envelope controlled filter question
Post by: menome on September 23, 2017, 03:51:07 PM
may i interject, and mention a problem im having with a ratted-out eh microsynth.  first off, the trigger (input gate) slider pot is physically broken, it does not glide smoothly thru the range, im not sure where its stuck, but no matter how low i turn down the output of the source, all the way down to near nothing, it sounds distorted- especially inn the square wave.  Is that just the result of a wide open trigger gate or physically intermittent connection in the pot, or should i examine anywhere else in particular in the circuitry while changing the pot?  Otherwise, id change the pot, put it back together, and then, possibly, take it apart again and test every resistor, and examine every cap for swelling.