DIYstompboxes.com

DIY Stompboxes => Building your own stompbox => Topic started by: Mr. Lime on March 01, 2024, 03:06:16 AM

Title: Standalone Envelope Detector for Guitar Signal?
Post by: Mr. Lime on March 01, 2024, 03:06:16 AM
I'm looking for a circuit like the Copilot FX Autodialer pedal.

A simple envelope detector to connect with the CV inputs of other pedals.
Usually the CV inputs asks for a 0-5V range.


Does anybody have good experience with a certain circuit?


Zorg FX has a documentaion of their envelope filter which describes how the trigger works.
https://www.zorgeffects.com/images/Manuels/Love_Philter_Technical_Data_Eng.pdf (https://www.zorgeffects.com/images/Manuels/Love_Philter_Technical_Data_Eng.pdf)

Looks like it's a good idea using a full wave rectifier to reduce ripple. I like the idea of having an extra input for an expression pedal but a simple circuit that tracks the guitar signal well would be sufficient.
Sensitivity, Attack and Decay controls might be useful but also a limiter (diode at output with 5V treshold?)to protect the other pedals.
As the Zorg effect is driving a vactrol, it's probably not optimised for the direct voltage feed.

Looking forward to suggestions!  :)
Title: Re: Standalone Envelope Detector for Guitar Signal?
Post by: StephenGiles on March 01, 2024, 08:53:23 AM
An idea I had some years ago (possibly more like an obsession!!) was to use the EH Space Drum front end to drive a VCF, the reason being that only the initial peak of the CV is input level dependent, and as a result the CV is almost entirely ripple free. I never got it to work as I wanted unfortunately - thoughts?
Title: Re: Standalone Envelope Detector for Guitar Signal?
Post by: Mark Hammer on March 01, 2024, 01:05:58 PM
What makes a "good" envelope follower depends on what you're using it to drive.  If the control element is a little sluggish, as can be true of LDRs, half-wave rectifiers can do a decent-enough job.  If the control element is fast and responsive, then full-wave rectification, and maybe even double rectification, is needed to eliminate audible envelope.
Title: Re: Standalone Envelope Detector for Guitar Signal?
Post by: ElectricDruid on March 01, 2024, 07:38:14 PM
I know that some highly-regarded compression circuits use that "double compression" technique, but I've never understood conceptually how it's supposed to help. It feels a bit like "well, it worked the first time, so it should work better if we do it again, right?". But of course, that's not really true.
Full-wave rectification is better than half-wave because if the envelope of a signal is loud, then the negative peaks are likely to be loud as well as the positive peaks. Flipping negative peaks up then gives a signal which is easier to smooth and still provides a good overall conceptualisation of the envelope shape (of course, depending on the waveform, they may not be the same level, but it's still bound to be better than nothing).
Once you've done that, I don't see where the benefit is supposed to come from. Any further rectification is not taking *peaks* of the waveform, but rather flipping up what used to be the *zero crossings* of the waveform. That doesn't seem to me to add anything o the envelope information (since every waveform has zero crossings the same) so I don't understand it.
I'd be pleased to be educated as to why it's actually really useful, if anyone's got any ideas. Thanks.

Tom
Title: Re: Standalone Envelope Detector for Guitar Signal?
Post by: Mark Hammer on March 01, 2024, 08:36:06 PM
I've got a whole folder of envelope-follower/rectifier schematics.  Many of them apply some lowpass filtering to the rectified result, in order to provide some more smoothing.  But of course, that raises the matter of "How fast and responsive do you need it to be?".  One may need something very fast for a limiter, but can tolerate something slower for a noise gate, or in the case of a number of bucket-brigade circuits (CE-1, A/DA Flanger) fading out wet path clock noise when one stops playing.

That said, it's not an impossible task to provide several parallel outputs of a basic FWR circuit with different degrees and rolloffs of lowpass filtering to suit different objectives.
Title: Re: Standalone Envelope Detector for Guitar Signal?
Post by: PRR on March 01, 2024, 10:17:23 PM
Quote from: ElectricDruid on March 01, 2024, 07:38:14 PMFull-wave rectification is better than half-wave because if the envelope of a signal is loud, then the negative peaks are likely to be loud as well as the positive peaks.

Mostly + and - are same size; only advantage is reduced ripple. But several sounds, particularly male vocal sounds, are asymmetric enough to matter. Enough that AM transmitters (AM supports asymmetric modulation) have routinely supported phase-flip, as well as full-wave detection in limiters.
Title: Re: Standalone Envelope Detector for Guitar Signal?
Post by: Mr. Lime on March 02, 2024, 04:10:53 AM
Quote from: Mark Hammer on March 01, 2024, 01:05:58 PMWhat makes a "good" envelope follower depends on what you're using it to drive.  If the control element is a little sluggish, as can be true of LDRs, half-wave rectifiers can do a decent-enough job.  If the control element is fast and responsive, then full-wave rectification, and maybe even double rectification, is needed to eliminate audible envelope.

I'd like to feed the detector with electric guitars, maybe even basses.
Thanks for the hint with double rectification. A circuit that looks promising I think is this (ditching the last compensation stage):

(https://i.postimg.cc/JtLn2D6B/Bild-2024-03-02-093830323.png) (https://postimg.cc/JtLn2D6B)


(https://i.postimg.cc/Q9SRmyYm/Bild-2024-03-02-093842148.png) (https://postimg.cc/Q9SRmyYm)

Looks like the Fullwave x2 output is quite smooth compared to the single retified output.


What efeects should be driven with it? Mainly I think of my Behringer (Mutron clone) Dual Phaser, my Threeway chorus or filter/wah wah pedals.

I also thought about feeding Tom's StOMPLFO, similar like my Drolo Moon Rabbit phaser does.
This would probably be the most advanced approach since the envelope detector could be used to control the frequency or the offset of the STOMPLFO.

Looking at the circuit, I think I would have to add an input buffer, a sensitivity pot and a gain stage to take use of the 5V headroom. I guess ~850mV is the maximum output swing (peak) of a typical bass/guitar pickup, but the average should be around 50-80mV.

So how would you guys calculate the needed amplification of the gain stage?
Take a minimum signal of 10mV and a stage with a gain of 500x?
Or is a gain of 200x sufficient?
Where would you place a diode to cut the high peaks?

Title: Re: Standalone Envelope Detector for Guitar Signal?
Post by: Mr. Lime on March 02, 2024, 05:47:32 AM
What do you guys think about the Doepfer A 119 module?
 https://doepfer.de/a119.htm (https://doepfer.de/a119.htm)

Would it suit the requirements?
I can't find information about the voltage output range but this thing would be a cheap alternative. The PSU seems wierd for the pedal board..
Title: Re: Standalone Envelope Detector for Guitar Signal?
Post by: Mark Hammer on March 02, 2024, 07:27:33 AM
Harry Bissell's envelope follower, previously brought up on the forum several times, is pretty dang good (though apparently not perfect).

Here's a nice discussion.  https://lookmumnocomputer.discourse.group/t/bissell-envelope-follower/4666/3

Some 22 years back Harry came up from the Detroit area, to Ottawa, for a little DIY synth summit in my basement, prompted by Osamu Hoshuyama's year in residency here as visiting scholar at one of the local universities.  Among the many delights Harry brought was his self-designed guitar processor.  I call it "processor", rather than synth, because it used a hex pickup, but processed fuzzed versions of the individual strings, individually, with VCFs and VCAs for individual strings.  Fantastically responsive, with no audible lag, and precious little ripple.  More involved than most, but well worth it.
(https://modwiggler.com/forum/userpix2/10917_bissel_1.jpg)
Title: Re: Standalone Envelope Detector for Guitar Signal?
Post by: Mr. Lime on March 02, 2024, 07:51:11 AM
In the Modwiggler forum a guy compared the Doepfer with the Bissel circuit and it looks like the Doepfer offers the smoother envelope:
Link (https://modwiggler.com/forum/viewtopic.php?t=101058&postdays=0&postorder=asc&start=330)

Quotei've done a quick comparison between the Bissell and a modded Doepfer A-119 (lowered the 100nF filter cap to 47nF).

source material is a TR-606 snare drum, as seen on the first image.

the second picture shows both the Bissel (top) and A-119 (bottom) envelopes. Bissel is nice and snappy while the Doepfer looks more like a camel's hump... keep in mind that an unmodded A-119 would smooth out even more of the attack portion!

(https://i.postimg.cc/gn6510rf/Bild-2024-03-02-134940751.png) (https://postimg.cc/gn6510rf)
Title: Re: Standalone Envelope Detector for Guitar Signal?
Post by: ElectricDruid on March 02, 2024, 08:59:47 AM
Quote from: Mr. Lime on March 02, 2024, 07:51:11 AM(https://i.postimg.cc/gn6510rf/Bild-2024-03-02-134940751.png) (https://postimg.cc/gn6510rf)

That looks to me like the Doepfer module just uses much heavier filtering on the envelope. So yes, it'll be smoother, but you also lose more detail and have much more lag.
Title: Re: Standalone Envelope Detector for Guitar Signal?
Post by: Mark Hammer on March 02, 2024, 01:21:26 PM
Bear in mind that Harry's search for an optimal envelope extractor was principally for use with guitar. Doepfer's would be a more general-purpose circuit.  And while it is always possible to strap on a slew limiter to "smooth out" an envelope, an unsmoothed envelope can only be as fast as it can be.

I really have to build one of those.
Title: Re: Standalone Envelope Detector for Guitar Signal?
Post by: Mr. Lime on March 03, 2024, 03:43:02 PM
Some comments from Harry himself can be found in this thread: Making a generic envelope follower (https://www.diystompboxes.com/smfforum/index.php?topic=37679.40)

Looks like PCB, Kit or preassembled Eurorack can be purchased from Australia here:
Elby Designs (https://www.elby-designs.com/)

A open source project with SMD parts:
http://wiki.midibox.org/doku.php?id=envelope-follower-bissel-based (http://wiki.midibox.org/doku.php?id=envelope-follower-bissel-based)

Title: Re: Standalone Envelope Detector for Guitar Signal?
Post by: Mr. Lime on January 21, 2025, 05:30:09 PM

It's been a while and the Bissell envelope follower has still not arrived.
Meanwhile I still come back to the same topic whenever I think of potential modulation effects I would love to build.

So I was looking at the Chewborg Filter design (a DIY project from freestompboxes) and thought that this looks promising. Still I'm not sure about the STOMPLFO implementation. If the Range/Offset part would be ditched, I guess a sensivity control after the input buffer would be needed. The  On the other hand, why not leave Range and Tune stay?
Would the Tune act like an Offset control when connected to regulated +5V instead? Also I guess the gain could be raised a litte.

(https://i.postimg.cc/PPbHwJfk/Envelope-Stomp-LFO.jpg) (https://postimg.cc/PPbHwJfk)

WHat do you guys think? Feed the Offset Input with CV or with the buffered output after Attack/Decay?
Title: Re: Standalone Envelope Detector for Guitar Signal?
Post by: Mr. Lime on January 23, 2025, 08:04:44 AM
Two pedals that basically do something similar are:

a) Fairfield Conflict of Interest (https://fairfieldcircuitry.com/products/conflict-of-interest)
b) Copilot FX Autodialer (https://reverb.com/item/11653060-copilot-fx-autodialer-envelope-to-expression-pedal-exp)

So the Autodialer seems to act as a expression pedal, offering a TRS input with a 50k pot. I guess this would be an option to control a LDR pot with an envelope following LED. The LDR pot than varies the 5V going into the STOMPLFO.

Fairfield goes the other way and provides 0-7V CV.
(https://fairfieldcircuitry.com/cdn/shop/files/ENV-Gut.jpg?v=1715189619&width=713)