DIYstompboxes.com

DIY Stompboxes => Building your own stompbox => Topic started by: Scruffie on May 07, 2009, 10:40:46 PM

Title: Octave Up Achieving... Ideas, Thoughts, Experience & Theory?
Post by: Scruffie on May 07, 2009, 10:40:46 PM
Hey all,

At present I am fiddling with some (Clean) Octave Up ideas (I know it's been done to death and that analogue up octaves can't be done simply and well by even the best of builders which I am certainly not and it will never be a POG, I have one already so I'm covered for that)

But i'd like to know a bit about the theory for my messing and also some particularly innovative or interesting ways that have been used to achieve an octave and why those simple 2 transistor 10component ish style octave pedals work how they do (I notice one major issue with them always seems to be a lack of gain, easily sorted though, just a thought)

I think I have to be quite strict about the cleanness of the octave a bit of fuzz is acceptable, but I don't want some uncrontrolable muck, I know you get the green ringer for modulated octave and lots of octave pedals that create a sort of octave bend if you will (info on why these pedals do these things is welcome for learning, but I don't want to build one) I'd like something where I could choose to stick the fuzz after it to get if the mood takes me any desired octave fuzz tone.

Also the theory of tracking issues would be appreciated.

I realise for a begginer builder such as myself this is asking alot and perhaps I wont understand it all, but I hope to learn from it and keep working till I get something I feel I like out of my design, feel free to discourage me if it really is just to a lost cause to get anything that hasn't been done.

Earthtonesaudio already gave me a couple of good ideas on the 'other' forum, Fundamental nulling, Achieving a smooth sine wave input but some more ideas and some ellaboration is always good.

Thanks for any help & info,
Scruff.

Title: Re: Octave Up Achieving... Ideas, Thoughts, Experience & Theory?
Post by: Taylor on May 07, 2009, 11:09:49 PM
Well, with an analog octave (the usual rectification type anyway), there is no tracking. The negative portion of the waveform is folded up into the positive area, thus doubling the frequency, which gives you a note one octave higher.

Here's a picture that shows that happening:

http://www.rfcafe.com/references/electrical/images/period5.gif

As far as I know, this kind of circuit can't give you a clean octave, but if you can settle for "clean-ish", you might be in luck. There are also some schemes for generating a synthesized note that tracks your original note, but these usually put out a pulse wave or square wave, so that's not really "clean" either. And it doesn't sound anything like your original note. For a note that sounds like your note, but is an octave higher, you need to go digital, and some people don't even feel that sounds enough like your original note.

This can be a fun subject to work on, and I'm brewing up something in this area myself, but for real pragmatism, if you want something that sounds like commercial pitch shifters, you can get it a lot better and cheaper by just buying one. If you want to come up with something new and unusual, though, go for it.
Title: Re: Octave Up Achieving... Ideas, Thoughts, Experience & Theory?
Post by: brett on May 08, 2009, 12:41:55 AM
Hi
after messing with octave quite a bit, I've found that the best octaves offer a pleasant blend of fundamental and octave.  You CAN use a multiplier (e.g. AD633) to get a pure octave, but they aren't particularly popular.  On the other hand, fuzz-octaves such as the Tycho and RM Octavia are quite popular.

One avenue that I haven't tried, but I think would work well, is to build an RM Octavia with a different front end (the front end is an RM "Axis" fuzz IIRC.  Which explains why it's so fuzzy).  I would use an "almost clean" boost at the front.  My choice would be a JFET boost, like the Stratoblaster, set for moderate gain (5 to 10x).

just my 2c
Have a great day.   
Title: Re: Octave Up Achieving... Ideas, Thoughts, Experience & Theory?
Post by: R.G. on May 08, 2009, 12:54:30 AM
Quote from: Scruffie on May 07, 2009, 10:40:46 PM
...i'd like to know a bit about the theory for my messing and also some particularly innovative or interesting ways that have been used to achieve an octave and why those simple 2 transistor 10component ish style octave pedals work how they do
Theory: An octave is a frequency ratio of exactly 2:1. The human ear has some internal affinity for this, for reasons no one has explained, to my knowledge. To make and octave up from a pure tone, you simply double the frequency.

This can and has been done by using electronic multipliers. Put the same signal into both inputs and you get the square of the signal. By exercising some trigonometric theory, one can show that the square of a sine contains just the sine (or cosine, I forget) of twice the frequency. No problem.

Well, there is a problem. Electronic multipliers have errors, drift, expense, need trimming, and so on. Until recently good ones were quite expensive. But that's not the problem. The problem is that no musical instruments produce a pure tone (i.e. a sine wave). A softly blown flute probably comes closest.  But all instruments produce a note which is the sum of a fundamental, some harmonics or near-harmonics of the fundamental, and other junk which is not tonally related to the fundamental. If you do the math, a summation of weighted sine waves plus extras like this, when squared, produces the square of all the components, plus the squares of the sums and differences of each component. These sums-and-differences are one form of intermodulation distortion, where one component modulates another. Sums and differences of frequencies in the original signal are NOT musically related to the fundamental, and sound harsh.

And that *is* the problem. Even perfect squarers can't bypass the intermodulation math. DSPs can, because they can effectively manipulate time, not just the signal voltage at each instant.

I came up with a new technique for squaring that used the square-law nature of FETs to do the squaring. Works, just like multipliers, and has the same issues with intermodulation.

None of the ten-parts octave up circuits do the multiplication thing. What they do is to full-wave-rectify the signal, just like a power supply might. Used on a sine wave, this produces a full wave rectified signal that has a noticeable octave plus a slew of distortion harmonics. Used on a signal with more than just a sine wave, it produces an octave, plus a slew of harmonics, plus intermodulation distortion.

The intermodulation is inherent in the math that describes these processes and cannot be completely avoided. It can only be ameliorated and dealt with.

There is one other octave-up scheme that has the potential to do a pure-sine octave up from any waveform. That's a phase locked loop with a sine wave VCO. A PLL locks onto a frequency by comparing the phase of the signal plus the oscillator of the loop. It forces the oscillator in the (frequency) direction which minimizes phase changes and then differences between the oscillator and the signal. If a PLL's VCO has a square wave output, this can be sent through a digital divider, and the divider output used to compare to the signal. When the loop locks, the VCO is then running the inverse of the divider faster than the signal. So a PLL with a flipflop divider can generate a square wave which is exactly 2x the frequency of the signal it is tracking. (oops, I said "tracking").  It can also be multiplied many times higher than that, and the higher multiple square wave used to divide DOWN to make a digital approximation of a sine wave, which can be very pure, especially compared to the intermodulation of the other techniques.

But the PLL output has two difficulties: it must track, and it has no dynamics, as it's always the same size, not the size of the signal that made it. PLL octaves must have a lot of housekeeping circuitry to (a) determine when the loop is locked, because if it's not locked, a full output, non-signal related sound comes out, and mute when it's not locked, and (b) impress on the output in some way some amplitude changes to follow the original signal.

Notice that tracking comes in two flavors: frequency tracking and amplitude tracking. When the input signal fades out, the loop has nothing to lock to, and jumps around hunting. When the input signal fades out, the loop output doesn't, which is major annoying. "Tracking" is also a problem with rectification and multipliers because as the signal get smaller, they start rectifying or multiplying signal+noise, and if they have any dead zone around zero where nothing happens, the signal sputters in and out of tracking as the signal fades out. You also don't want a PLL tracker/octaver to lock onto a harmonic or near-but-not-quite harmonic in the signal. No multiple notes, as that forces a single-note tracker to make a decision, and it simply can't do that.

Quote(I notice one major issue with them always seems to be a lack of gain, easily sorted though, just a thought)
Gain is easy. Intermod is hard.
QuoteI know you get the green ringer for modulated octave
No, you don't. The green ringer is a simplistic full wave rectifier. If you feed a full wave rectifier two (main) notes simultaneously, it generates an intermod product of both tones. Get the tones right and the modulation can be pleasant under certain conditions. There is no modulation happening inside a green ringer.

Quoteand lots of octave pedals that create a sort of octave bend if you will (info on why these pedals do these things is welcome for learning, but I don't want to build one)
Intermodulation.

QuoteI'd like something where I could choose to stick the fuzz after it to get if the mood takes me any desired octave fuzz tone.
So would everyone else. Welcome to the club.  :icon_biggrin:

QuoteAlso the theory of tracking issues would be appreciated.
See above.

QuoteI realise for a begginer builder such as myself this is asking alot and perhaps I wont understand it all, but I hope to learn from it and keep working till I get something I feel I like out of my design, feel free to discourage me if it really is just to a lost cause to get anything that hasn't been done.
I don't want to discourage you, because we need new people taking up the discipline. However some very smart people, much smarter than me, have tried to do something similar for about half a century now. Worse yet, the underlying math says that non-DSP processes have minimal chances of ever doing what you describe. Maybe zac will pop in with a pep talk about not letting anyone tell you that something can't be done and to keep easter-egging parts until you create your own beautiful reality; I guess that might even happen. But like I said, quite a number of very smart people have tried this for a long time. I personally have been digging out info on how to do clean octaves-up since at least 1972. This is one reason I know the background.

QuoteEarthtonesaudio already gave me a couple of good ideas on the 'other' forum, Fundamental nulling, Achieving a smooth sine wave input but some more ideas and some ellaboration is always good.
"Fundamental nulling" is one way of describing what I did for my FET square-law device, the FET doubler, and Mu-doubler. Since FETs are square-law devices, the distortion they generate tends to be in the form of the square of the signal, and for a sine, that's the octave up. I dreamed up a setup where you feed two FETs equal and opposite signals, tie their outputs together so the amplified signal cancels - that is, fundamental nulling. What is not nulled out is the even-order distortion products where the summing reinforces them. But even a theoretically pure squarer has to cope with the sum-and-difference intermodulation.

The math is what is going to give you problems. Learn the math.


Title: Re: Octave Up Achieving... Ideas, Thoughts, Experience & Theory?
Post by: Cliff Schecht on May 08, 2009, 03:37:47 AM
Meh. The math is easy, it's all of the theory that will get you. I've designed every type of multiplier you can name and while every one of them has intermodulation  (no escaping this!), some still sound more musical than others. The rectifier type multipliers tend to sound very nasally and gatey, both  of which are side effects of using diodes. The nasally sound comes from taking the absolute value of your signal (this is mathematically what a full-wave rectifier does) and the gate type effect is a side effect of using diodes. Germaniums gate less and Schottky's even less than Ge, but the Schottky's are leaky and don't sound that good. Ge's are my favorite for diode-based multipliers.

IC based multipliers tend to sound very bland and, well, perfect. They're great for synth stuff but tend to sound pretty lame as is with a guitar. FET based multipliers (yeah R.G., you aren't the first :)) are my favorite, especially because there is more than one way to use a FET (or FETs) as a multiplier. Diff-amp octave based effects are another favorite because the distortion they produce is oh-so-musical.
Title: Re: Octave Up Achieving... Ideas, Thoughts, Experience & Theory?
Post by: brett on May 08, 2009, 04:58:48 AM
Hi
QuoteGermaniums gate less and Schottky's even less than Ge, but the Schottky's are leaky and don't sound that good. Ge's are my favorite for diode-based multipliers.

Yep.  The gating/signal decay problem can be significant.

There are, however, a couple of things that can reduce the problems.  Take the Neoctavia circuit, which is typical in that it uses a transformer as a phase splitter and Ge transistors as rectifiers. http://www.tonepad.com/project.asp?id=43 (http://www.tonepad.com/project.asp?id=43)

The first thing I wonder about this project is why it uses a step-down transformer (if the primary connects to the op-amp and the secondary to the diodes).  This increases the gating/decay problem.  If I were building this, I'd turn the transformer around the other way.  The op-amp will easily drive the secondary (now the primary), and the output of the primary (that was the secondary) will be larger (3x larger than the other way around).  Gating will be much less.  A transformer with a wider impedance ratio would be even better if it were also reversed (e.g. 42TM021, or even the 42TM017 which reversed gives 11.4x the standard Neoctavia output and only a fraction of the gating).

Another way to reduce gating is to apply a bias voltage to the centre tap of the transformer output.  Apply about 0.3 V to the centre tap for Ge diodes or 0.7 V for Si diodes and there will be little or no gating/decay, because the diodes will conduct even a tiny signal, because the diodes are already conducting to a small degree ((Vbias-Vf)/Output resistance, e.g. (0.3-0.28)/60 = 0.3 mA)

just my 2c...

cheers
Title: Re: Octave Up Achieving... Ideas, Thoughts, Experience & Theory?
Post by: Scruffie on May 08, 2009, 07:54:47 AM
Cheers guys for explaining all that, some very interesting stuff there that's cleared up a few of my misconceptions and has led me to research further into the theory, looks like something i'm gunna have to commit to and put all other projects on hold if I wanna end up with something that atleast is useable.

I'm alright with a bit of nice harmonic distortion on top as long as it sounds smooth and doesn't clutter the signal and i'm also okay with some synthy sounding as long as it's not messy or overly buzzy but I suppose getting a level I find acceptable for myself is gunna be part of the ride.

As you say thought R.G gunna have to learn the math of this all to apply it... shame I only got a C at GCSE... this is gunna inolve alot of learning, I can see why people just buy a POG or use a simple octave fuzz, but I shall pursue this anyway, who knows, might end up with something that doesn't exactly do what i set out to do, but doesn't something nice anyway.

I shall start working with FETs though as I haven't tried that yet and see what I can come up with, shortage of funds is clearly going to be an issue though as I don't have enough spare parts lying around to just stick them in the breadboard if and when needed...

But anyway I shall continue and thanks for all your comments, they have been very useful.
Title: Re: Octave Up Achieving... Ideas, Thoughts, Experience & Theory?
Post by: R.G. on May 08, 2009, 09:26:45 AM
Quote from: Cliff Schecht on May 08, 2009, 03:37:47 AM
... FET based multipliers (yeah R.G., you aren't the first :)) are my favorite, especially because there is more than one way to use a FET (or FETs) as a multiplier.
Oh, I didn't mean I came up with FET based multipliers first at all. What I was referring to was the MOS Doubler, JFET Doubler and Mu Doubler. The central idea is that a single diffamp has as its output two signals, equal and out of phase, each a distorted replica of the input. If you maximize the input by feeding phase-split signals to the gates and cancel the amplified output by connecting the drains, the output signals cancel and what's left is an amplified even order distortion. Only incidentally related to something like the Gilbert Cell.
Title: Re: Octave Up Achieving... Ideas, Thoughts, Experience & Theory?
Post by: Cliff Schecht on May 09, 2009, 04:56:33 AM
Quote from: R.G. on May 08, 2009, 09:26:45 AM
Quote from: Cliff Schecht on May 08, 2009, 03:37:47 AM
... FET based multipliers (yeah R.G., you aren't the first :)) are my favorite, especially because there is more than one way to use a FET (or FETs) as a multiplier.
Oh, I didn't mean I came up with FET based multipliers first at all. What I was referring to was the MOS Doubler, JFET Doubler and Mu Doubler. The central idea is that a single diffamp has as its output two signals, equal and out of phase, each a distorted replica of the input. If you maximize the input by feeding phase-split signals to the gates and cancel the amplified output by connecting the drains, the output signals cancel and what's left is an amplified even order distortion. Only incidentally related to something like the Gilbert Cell.


I only took a quick peek at the schematics last night and obviously didn't catch the gist of what you were doing. Very cool idea though! I suspect the output waveforms look very sawtoothy and that distortion sounding pretty synthy (FETs and BJT's in a diff-amp made some classic synth circuits). It's sort of a bummer that you have to match the FETs for your circuit. I completely understand though, FETs vary all over the map from device to device. How much cancellation do you lose if you don't match them?
Title: Re: Octave Up Achieving... Ideas, Thoughts, Experience & Theory?
Post by: owenjames on May 09, 2009, 08:33:50 AM
Like these guys have said, it is going to be close to impossible to do what you are asking with analogue. I have some tips on getting a more or less clean octave up if you use the octave fuzz approach. While lots use the transformer then full wave rectify route. I feed my signal into two op amps one inverting and one non-inverting. I set the output DC voltage of each op amp at 4.5V, I then place a forward biased diode after each output. I set the DC voltage after the diodes to be 3.8V (for Si diodes) this gets over the gating effect. You then just join both ends together. That gives you a full wave rectified ungated signal.  Put low pass filtering before the op amps with a cuttoff of about 1.2KHz, this allows all notes on the fretboard tro pass through while reducing harmonics as much as possible. put a lowpass filter with a cuttoff of 2.4KHz after the diodes, this smooths out as much of the fuzziness as possible while allowing all notes on the fret board through un affected. Somehting you could try, which i havent done but might work is having 3 or 4 of the above stages in parrallel with different filtering, which are then summed together at the end. So the bass notes get a 300Hz filter then have a 300-600Hz filter then a 600-1200Hz filter so each gets octaved seperatly, this will produce much more cleanness over the whole fretboard, but would require 7 opamps.
Title: Re: Octave Up Achieving... Ideas, Thoughts, Experience & Theory?
Post by: R.G. on May 09, 2009, 09:24:10 AM
Quote from: Cliff Schecht on May 09, 2009, 04:56:33 AM
I only took a quick peek at the schematics last night and obviously didn't catch the gist of what you were doing. Very cool idea though! I suspect the output waveforms look very sawtoothy and that distortion sounding pretty synthy (FETs and BJT's in a diff-amp made some classic synth circuits). It's sort of a bummer that you have to match the FETs for your circuit. I completely understand though, FETs vary all over the map from device to device. How much cancellation do you lose if you don't match them?
Actually, the results are very much like the output of a multiplier, very much a square of the instantaneous input. A sine, for instance, make a very pure sine wave of 2x frequency.

Matching is critical, unfortunately. That's the big problem with it. If you think about it, what this rig produces is zero times the amplified signal, and two times the distortion. The distortion in a JFET is down in the 1-2% range, so you get about 2%-4% of the amplified signal out if the main undistorted signal is cancelled perfectly. Unfortunately, MIS-cancellation by 2-4% can wipe you out, then.  :icon_eek:
Title: Re: Octave Up Achieving... Ideas, Thoughts, Experience & Theory?
Post by: Cliff Schecht on May 09, 2009, 01:46:10 PM
Quote from: R.G. on May 09, 2009, 09:24:10 AM
Quote from: Cliff Schecht on May 09, 2009, 04:56:33 AM
I only took a quick peek at the schematics last night and obviously didn't catch the gist of what you were doing. Very cool idea though! I suspect the output waveforms look very sawtoothy and that distortion sounding pretty synthy (FETs and BJT's in a diff-amp made some classic synth circuits). It's sort of a bummer that you have to match the FETs for your circuit. I completely understand though, FETs vary all over the map from device to device. How much cancellation do you lose if you don't match them?
Actually, the results are very much like the output of a multiplier, very much a square of the instantaneous input. A sine, for instance, make a very pure sine wave of 2x frequency.

Matching is critical, unfortunately. That's the big problem with it. If you think about it, what this rig produces is zero times the amplified signal, and two times the distortion. The distortion in a JFET is down in the 1-2% range, so you get about 2%-4% of the amplified signal out if the main undistorted signal is cancelled perfectly. Unfortunately, MIS-cancellation by 2-4% can wipe you out, then.  :icon_eek:

That's a slim margin for error.. So what if you intentionally mis-match the FETs, say a device with a high gm with a low gm unit? Does the "unbalanced" resulting distortion sound good? I would think that unbalancing the current through each FET (even if perfectly matched) will give some interesting results, especially if you cranked the gain of your diff-amp up (increase the drain resistor or decrease the source resistance?).
Title: Re: Octave Up Achieving... Ideas, Thoughts, Experience & Theory?
Post by: soggybag on May 09, 2009, 05:08:25 PM
Great discussion. The suggestion of applying .3v to the center tap of an inductor based octave (Would you say biasing the center at the diode forward voltage?), reminds me of the Bobtavia. The Bobtavia has a 100K from 9V going to center tap. It uses Si diodes. Maybe you could tune this value to improve sustain and negate splutter?

The Bobtavia is a great project makes a pretty octave, fuzzed up, but sounds great, and you can get all of the parts at RS.
Title: Re: Octave Up Achieving... Ideas, Thoughts, Experience & Theory?
Post by: Cliff Schecht on May 09, 2009, 07:52:15 PM
All you're doing with the center-tap DC trick is literally mixing in a DC component with your incoming signal. You just have to add enough DC to make sure that the lowest voltage the diodes ever see is over one diode drop (0.6-0.7 V Si, 0.3 V Ge, 0.15 Schottky). You could also add a resistive bias network (resistor from V+ to diode anode and one from anode to ground) to keep the diode turned on at all times. Or you can use a perfect rectifier (op amp with diode in the feedback path) to eliminate the diode drop problem completely.. I don't think I've seen the last one done though.
Title: Re: Octave Up Achieving... Ideas, Thoughts, Experience & Theory?
Post by: ACS on May 09, 2009, 09:06:07 PM
Quote from: owenjames on May 09, 2009, 08:33:50 AM
Like these guys have said, it is going to be close to impossible to do what you are asking with analogue. I have some tips on getting a more or less clean octave up if you use the octave fuzz approach. While lots use the transformer then full wave rectify route. I feed my signal into two op amps one inverting and one non-inverting. I set the output DC voltage of each op amp at 4.5V, I then place a forward biased diode after each output. I set the DC voltage after the diodes to be 3.8V (for Si diodes) this gets over the gating effect. You then just join both ends together. That gives you a full wave rectified ungated signal.  Put low pass filtering before the op amps with a cuttoff of about 1.2KHz, this allows all notes on the fretboard tro pass through while reducing harmonics as much as possible. put a lowpass filter with a cuttoff of 2.4KHz after the diodes, this smooths out as much of the fuzziness as possible while allowing all notes on the fret board through un affected. Somehting you could try, which i havent done but might work is having 3 or 4 of the above stages in parrallel with different filtering, which are then summed together at the end. So the bass notes get a 300Hz filter then have a 300-600Hz filter then a 600-1200Hz filter so each gets octaved seperatly, this will produce much more cleanness over the whole fretboard, but would require 7 opamps.

Interesting approach.  Do you have any clips at all?  Would be interesting to compare this to the more common approaches.  Seeing as I'm just intelligent enough to understand this, but not intelligent enough to convert this to a circuit, do you have any schem's that we can breadboard to play with?
Title: Re: Octave Up Achieving... Ideas, Thoughts, Experience & Theory?
Post by: R.G. on May 09, 2009, 09:08:35 PM
Quote from: Cliff Schecht on May 09, 2009, 07:52:15 PM
... Or you can use a perfect rectifier (op amp with diode in the feedback path) to eliminate the diode drop problem completely.. I don't think I've seen the last one done though.
Not commercially. John Hollis' Omnidrive used the two-opamp full wave rectifier and I believe that one of Anderton's circuits did too.

It works as expected.
Title: Re: Octave Up Achieving... Ideas, Thoughts, Experience & Theory?
Post by: R.G. on May 09, 2009, 09:12:39 PM
Quote from: owenjames on May 09, 2009, 08:33:50 AM
... Somehting you could try, which i havent done but might work is having 3 or 4 of the above stages in parrallel with different filtering, which are then summed together at the end. So the bass notes get a 300Hz filter then have a 300-600Hz filter then a 600-1200Hz filter so each gets octaved seperatly, this will produce much more cleanness over the whole fretboard, but would require 7 opamps.
One thing I designed but never had the time or money to build was a filter bank distortion. Three or four bandpass filters per octave for the four octaves of the fundamentals on a guitar. The filters have to be sharp enough to cut out the second harmonic from a string well. That's twelve to sixteen filters, each of which has a full wave rectifier and filter for note detect, as well as its own clipping. It's the logical extension of the Quadrafuzz. Lets you separate out each string, and use logic on the note detects to get rid of harmonics that would confuse things. As you might guess, this would have been ... big...
Title: Re: Octave Up Achieving... Ideas, Thoughts, Experience & Theory?
Post by: Scruffie on May 09, 2009, 10:35:35 PM
Hmm my circuit was slowly creeping towards what I wanted... but I have none of the funds to get into these territorys at the moment and tbh, I really think it has been decided here that just buying digital is easier (even though I already knew that and have a digital octaver) so I guess I shall forefit from what has been said and maybe just run off what i've started into something else if funds permit.

Thanks for all the comments though and keep them coming as i'd still like to hear your ideas, perhaps i'l pick it up again when I get the motivation.
Title: Re: Octave Up Achieving... Ideas, Thoughts, Experience & Theory?
Post by: Taylor on May 09, 2009, 10:49:00 PM
Even when this kind of thread doesn't result in an "aha!" I think they do provide a lot of "hmm...."s, so still pretty fruitful, IMO.

I'm going to reread this page a few times and let all that info swirl aronud in my brain for awhile, and maybe something neat will come out eventually.

One thing that's unfortunate for people like me, who were born in the 80s or later, is that we got used to digital processing before we really knew anything else. My very first effect pedal cost $150, and had 30 effects, including glitch-less pitch shifters that didn't change tone too much. As a result, I didn't really appreciate until much later how much of a "holy grail" this is.

But what's cool about that is that when I listen to imperfect solutions, those imperfections are more charming than irritating.
Title: Re: Octave Up Achieving... Ideas, Thoughts, Experience & Theory?
Post by: brett on May 10, 2009, 01:34:40 AM
Hi
RE: ideal rectifier

QuoteI don't think I've seen the last one done though.

Quite a few of us have done this and been disappointed. 

I forgot to mention above that if you use the guitar signal as the modulator in a ring modulator (especially a dodgy transformer-based one), you get interesting octave results.

You can also use the guitar signal to drive the switch in a balanced modulator.  e.g. drive a 4066 bilateral switch from A to B (and back), where A is a +ve phase signal and B is a -ve phase signal.
Title: Re: Octave Up Achieving... Ideas, Thoughts, Experience & Theory?
Post by: Pedal love on May 10, 2009, 02:18:15 AM
Quote from: Scruffie on May 09, 2009, 10:35:35 PM
Hmm my circuit was slowly creeping towards what I wanted... but I have none of the funds to get into these territorys at the moment and tbh, I really think it has been decided here that just buying digital is easier (even though I already knew that and have a digital octaver) so I guess I shall forefit from what has been said and maybe just run off what i've started into something else if funds permit.

Thanks for all the comments though and keep them coming as i'd still like to hear your ideas, perhaps i'l pick it up again when I get the motivation.

Ya know Scruffie, these guys definitely mean well, but if I listened to everything they said i wolld stay in my room all day with the lights off. You do what your heart tells you. :icon_cool:
Title: Re: Octave Up Achieving... Ideas, Thoughts, Experience & Theory?
Post by: Cliff Schecht on May 10, 2009, 03:39:29 AM
Quote from: brett on May 10, 2009, 01:34:40 AM
Hi
RE: ideal rectifier

QuoteI don't think I've seen the last one done though.

Quite a few of us have done this and been disappointed. 

I forgot to mention above that if you use the guitar signal as the modulator in a ring modulator (especially a dodgy transformer-based one), you get interesting octave results.

You can also use the guitar signal to drive the switch in a balanced modulator.  e.g. drive a 4066 bilateral switch from A to B (and back), where A is a +ve phase signal and B is a -ve phase signal.

I can see why a precision rectifier STILL wouldn't sound any better than a passive transformer/diode octaver circuit. Even with the diodes completely on, you're going to run into that same nasally and distorted frequency-doubled signal.

One of my favorite effects is a ring modulator (true transformer/diode with op amp buffers) being fed by a Whammy. One output of the Whammy (wet) goes to one input, the dry goes to another. As you pitch shift between one octave to the next, you get some fan-frickin-tastic ring-mod results! At the perfect octave up and down, you get a great sounding distorted octave up or down. Very cool stuff - I found the octave down especially powerful for "stoner rock" type stuff where you want those thick, drony sounds. This was actually my very first pedal design (I posted it forever ago) and is still a staple of my pedalboard.
Title: Re: Octave Up Achieving... Ideas, Thoughts, Experience & Theory?
Post by: Pedal love on May 10, 2009, 06:55:02 AM
We should have a contest. The best fwr octave up device that anyone can build. I'm sure a lot of you are game. How about it Aron?
Title: Re: Octave Up Achieving... Ideas, Thoughts, Experience & Theory?
Post by: Scruffie on May 10, 2009, 09:35:20 AM


Ya know Scruffie, these guys definitely mean well, but if I listened to everything they said i wolld stay in my room all day with the lights off. You do what your heart tells you. :icon_cool:
[/quote]

Cheers man, yea I know they mean well infact without there comments I wouldn't know what the hell I was doing! I guess i'l keep at it slowly to get what I can eventually (money seems to be a biggg issue) but it does seem like a hard task to get something close to or exactly right.

Quote from: Pedal love on May 10, 2009, 06:55:02 AM
We should have a contest. The best fwr octave up device that anyone can build. I'm sure a lot of you are game. How about it Aron?

Now that would motivate me, I really like that idea but i'd probably need about 2-3 months to carry on with my circuit annoyingly and I just don't think I can wait that long to see everyone elses lol, so I'd probably have to duck out, or just put the begginings of mine on, but I'd like to see that.
Title: Re: Octave Up Achieving... Ideas, Thoughts, Experience & Theory?
Post by: Taylor on May 10, 2009, 12:44:17 PM
Quote from: Pedal love on May 10, 2009, 06:55:02 AM
We should have a contest. The best fwr octave up device that anyone can build. I'm sure a lot of you are game. How about it Aron?

Er, didn't we just do that?

http://www.diystompboxes.com/smfforum/index.php?topic=75373.0
Title: Re: Octave Up Achieving... Ideas, Thoughts, Experience & Theory?
Post by: Scruffie on May 10, 2009, 12:48:46 PM
So you did ! Didn't see that one, althought that one did allow for fuzzy octaves, not just clean ones. But as my octave progresses I will put it up.
Title: Re: Octave Up Achieving... Ideas, Thoughts, Experience & Theory?
Post by: puretube on May 10, 2009, 05:22:51 PM
"Elektor" magazine published a multiband FWR octup ~20 years ago...
Title: Re: Octave Up Achieving... Ideas, Thoughts, Experience & Theory?
Post by: puretube on May 10, 2009, 05:49:46 PM
Quote from: puretube on May 10, 2009, 05:22:51 PM
"Elektor" magazine published a multiband FWR octup ~20 years ago...

Actually, the "VocoderMan" Homer Dudley did it similarly to that way with toobz, ~72 years ago...  :icon_eek:
(though not for deriving octave-ups, but "just" CV`s...)
Title: Re: Octave Up Achieving... Ideas, Thoughts, Experience & Theory?
Post by: earthtonesaudio on May 11, 2009, 10:39:46 PM
One more for the fuzzy octave stuff:
http://www.geocities.com/tpe123/folkurban/fuzz/dof.gif
A good explanation of the technique with some hints for tweaking:
http://www.maxim-ic.com/appnotes.cfm/an_pk/881
Title: Re: Octave Up Achieving... Ideas, Thoughts, Experience & Theory?
Post by: brett on May 12, 2009, 02:18:39 AM
Hi
I wonder why that circuit has two 1N4148s for clipping/squaring up the output?
Anyone know why? (or have this circuit made up and willing to cut the connections and report the changes?)
cheers
Title: Re: Octave Up Achieving... Ideas, Thoughts, Experience & Theory?
Post by: snap on May 12, 2009, 03:06:13 AM
volume limiting to .7V?
Title: Re: Octave Up Achieving... Ideas, Thoughts, Experience & Theory?
Post by: earthtonesaudio on May 12, 2009, 06:12:53 AM
Quote from: snap on May 12, 2009, 03:06:13 AM
volume limiting to .7V?

That's probably it.  Or perhaps to add some additional harmonics even at heavy filter settings.
Title: Re: Octave Up Achieving... Ideas, Thoughts, Experience & Theory?
Post by: mrslunk on June 27, 2009, 03:39:06 AM
To ressurrect an old thread..
i've read snippets of stuff in the digital land about pitch shifting achieved by modulating a delay line with an lfo...
anyone know much about this technique and whether it's possible using bbd's?
Title: Re: Octave Up Achieving... Ideas, Thoughts, Experience & Theory?
Post by: Taylor on June 27, 2009, 04:23:11 AM
Yeah, it's called vibrato.

If you want real pitch-shifting, where you play a C and out comes a G, that's much, much harder than simply controlling a delay line with an LFO. There is the A/DA Harmonizer, which used BBDs I think. You can read about it here:

http://hammer.ampage.org/files/Device1-4.PDF
Title: Re: Octave Up Achieving... Ideas, Thoughts, Experience & Theory?
Post by: mrslunk on June 27, 2009, 04:33:29 AM
vibrato is modulating with a sinewave or triangle lfo, right?
from what i understood, they (and i can't seem to find the "they" again, it might have been in a dsp book) talked about having a delay line modulated with a ramp up sawtooth.
thanks for the link to the A/DA harmonizer, i'll see if i can find some info and get back
Title: Re: Octave Up Achieving... Ideas, Thoughts, Experience & Theory?
Post by: Taylor on June 27, 2009, 06:45:43 AM
Well, you can have vibrato using any LFO shape. This line of thinking makes sense, because anyone who's play with delays knows that it's possible to pitch shift when the read time and write time are not the same. But there's a difficulty: to shift one octave down, for example, you have to read at half the speed you wrote. For delay pedals, that means slowing the time knob from e.g. 125ms to 250ms. You get a pitch shift and you think, "I just have to do this over and over and I have a pitch shifter". The problem comes because you have to keep turning the delay time longer and longer, and eventually your delay can't go any further; you run out of time.

So you have to get that time back to the short setting. But if you do it the same way you went down, you'll obviously get a pitch shift up, which most people don't want. So you make that upswing as fast as possible. There's your ramp wave, but it's not so much a ramp, more like stairs that suddenly drop off suddenly, or downward stairs ending in a wall. You don't want the ramp part to be linear, because then you have the "been shot with tranquilizer" sound that gradually pitches down. So you want a quick, vertical drop, followed by a plateau, drop, plateau, drop, plateau, several times, then the whole thing goes back up almost instantaneously.

I don't know why digital guys would ever do this, because there are always going to be a ton of artifacts and chirps. There are better and easier ways to do digital pitch shifting - see Whammy. The only reason I see this as being of interest is for analog loyalists, or people who want a challenge, or people who like lots of quirks. I'm the last type, so I'll be eager to hear what you make...  :)
Title: Re: Octave Up Achieving... Ideas, Thoughts, Experience & Theory?
Post by: Taylor on June 27, 2009, 04:36:36 PM
Oops, double post. Was trying to correct some grammar mistakes in the above post (I wrote this right as I went to sleep). Why can't you delete messages here?
Title: Re: Octave Up Achieving... Ideas, Thoughts, Experience & Theory?
Post by: Taylor on June 29, 2009, 05:04:43 PM
Thinking about this further, you can rather easily make a sort of pitch shifter with a much simpler LFO driven delay than what I talked about before. The key is that you have to be willing to have both an upper and lower shifted note.

Using a square wave LFO to control delay, you get alternating up and down shifts, which I believe would each be equal in distance from the original note. By using very fast LFO time, you can get them to sound as if they are both on more or less simultaneously, but with a hard termolo applied to both the up and down shifted notes. What's cool about this approach compared to pitch tracking VCOs (besides polyphony) is that you can have continuously variable shift range, rather than only shifts that are simply number ratios, as in frequency division.

One problem with the PT2399 is that even with an instantaneous change in resistance, the chip has an inherent portamento. Might be a more noticeable problem at high LFO speeds.

I just simmed this in my DSP program - works well. Doesn't sound like a PS-5, but if you want that, why not just buy one?
Title: Re: Octave Up Achieving... Ideas, Thoughts, Experience & Theory?
Post by: Top Top on June 29, 2009, 08:43:45 PM
I read that os mutantes had a guitar with six pickups (one for each string) - what about a six pickup guitar with an analog octave circuit for each string? Wouldn't that fix some of the inter modulation issues?  ;D
Title: Re: Octave Up Achieving... Ideas, Thoughts, Experience & Theory?
Post by: earthtonesaudio on June 29, 2009, 08:49:19 PM
Quote from: Top Top on June 29, 2009, 08:43:45 PM
I read that os mutantes had a guitar with six pickups (one for each string) - what about a six pickup guitar with an analog octave circuit for each string? Wouldn't that fix some of the inter modulation issues?  ;D

Yep.  That's the basis for most "guitar synth" stuff.  I think they're commonly called "hexaphonic" pickups.
Title: Re: Octave Up Achieving... Ideas, Thoughts, Experience & Theory?
Post by: earthtonesaudio on August 24, 2009, 10:46:09 AM
Based on recent experiments, I've found you can also get octave up-ish tones by frequency modulating the audio, then demodulating with a simple high pass or low pass, rather than the normal bandpass or tuned circuit.  By matching the oscillator's center frequency and the filter frequency "just right," you can get it to output the absolute value of the input waveform.  Also, by adjusting the filter parameters you can sort of blend the octave in or out.

However, it's overly complex and doesn't sound very good...   ::)
Title: Re: Octave Up Achieving... Ideas, Thoughts, Experience & Theory?
Post by: Mark Hammer on August 24, 2009, 12:02:26 PM
Looking at the Maxim notes referred to ( http://www.maxim-ic.com/appnotes.cfm/an_pk/881 ), and the Escobedo circuit ( http://www.geocities.com/tpe123/folkurban/fuzz/dof.gif ), and marrying that with RG's early experiments, perhaps it might be suitable to use the DOF with a frequency-divided signal (i.e., several parallel paths for "preferred" frequency groupings/bands), and a delay amount for the "other" XOR input that produces a waveform of desired duty-cycle for that band.  As shown, the delay introduced by the 100k/2nf network will result in a duty-cycle for the resulting octave-up which may be suitable for some notes, but not for others.  This seems like one of those cases where band-splitting and tailored delay for the other XOR input would/could lead to consistent duty-cycle across the spectrum.
Title: Re: Octave Up Achieving... Ideas, Thoughts, Experience & Theory?
Post by: earthtonesaudio on August 24, 2009, 12:45:05 PM
That would be awesome, Mark!

Another approach (which I'm attempting on the breadboard right now) would be to run the signal through two XOR doubling networks, effectively quadrupling the input frequency, then run that signal through a flip flop to divide it back down to the single octave up, but now with 50% duty cycle.
Title: Re: Octave Up Achieving... Ideas, Thoughts, Experience & Theory?
Post by: brett on August 25, 2009, 08:02:48 AM
Hi
While there are lots of octaves out there, this one should be good (minimal gating, variable fuzz/drive).
It is unverified.  Does someone have time to build it?
http://www.aronnelson.com/gallery/main.php?g2_view=core.DownloadItem&g2_itemId=40366&g2_serialNumber=1 (http://www.aronnelson.com/gallery/main.php?g2_view=core.DownloadItem&g2_itemId=40366&g2_serialNumber=1)
The stompswitch pins are 1, 2 and 3 (top to bottom, LHS), 3.4. and 5 (top to bottom, middle) and 7,8 and 9 (top to bottom, RHS).
I'll see if I have a layout somewhere.
cheers
Title: Re: Octave Up Achieving... Ideas, Thoughts, Experience & Theory?
Post by: brett on August 25, 2009, 08:25:19 AM
Hi again
here's a 3PDT-mounted PCB for the Octavium grandis.  It allows plenty of space for an easy build.
*NB*  I haven't tested this design yet (but it SPICEs up nicely.)
http://www.aronnelson.com/gallery/main.php?g2_view=core.DownloadItem&g2_itemId=40374&g2_serialNumber=2 (http://www.aronnelson.com/gallery/main.php?g2_view=core.DownloadItem&g2_itemId=40374&g2_serialNumber=2)
(please excuse and delete the crosshairs.  I should read the DipTrace manual and find out how to avoid them.)

And the corresponding overlay:
http://www.aronnelson.com/gallery/main.php?g2_view=core.DownloadItem&g2_itemId=40371&g2_serialNumber=1 (http://www.aronnelson.com/gallery/main.php?g2_view=core.DownloadItem&g2_itemId=40371&g2_serialNumber=1)

Fingers crossed that it works well.
cheers

Title: Re: Octave Up Achieving... Ideas, Thoughts, Experience & Theory?
Post by: murrayatuptown on May 05, 2010, 10:23:44 PM
Yes, I'll post despite the age (of the post, not me...)

Well, as I read all three pages here, I had answers to thoughts I had about knowledge & experience I did not...

I was reading the data sheet for an SA571 compander in a wireless microphone I was given, and began thinking about the balance circuit for the SA/NE571...it has an inherent squaring artifact that is tuned out to minimize even harmonic distortion.

This led me to the thought about JFET's for squaring. Then I found a circuit board with some AD533's on it (PITA tot unsolder round case), and pondered multiplying a signal with itself and realized the JFET was probably a lot simpler...wondered what the square rooter would sound like...wondered it that is a square root of an amplitude or of the actual freq. Decided it surely must sound like krap and dismissed it.

Today I read here that doubling via FWR has significant side effects and I thought 'well, use a precision recitifier!' and your sanity check tells me to just forget the whole damn idea because my idea of distortion is probably something like a Peppermill on an archtop...
I

So, thank you all for saving me a lot of trouble & expense messing with doublers....

Does a maladjusted compander offer any useful unintended sounds?

I saw a comparator with hysteresis the other day unintentionally creating a doubled signal but of course a square wave...if it's doubled do the odd harmonics contained in a square wave become even after doubling?

I'm talking myself out of some things....

maybe reverb, delay and phase shift are more subtle things for me to check out...

OK one more thought/question....

'Bessel response' filter...not a great LPF, much less attenuation per octave or decade than Butterworth, but constant phase delay...has anyone already tried phase shifting this way? (Maybe not adjustable or not enough range of adjustment?)

I better pack a lunch, cause they aren't free (except in New Hampshire...Eat free or die).

:O)
Title: Re: Octave Up Achieving... Ideas, Thoughts, Experience & Theory?
Post by: Taylor on May 05, 2010, 10:30:32 PM
I've done some digital squaring (multiplying a signal with itself, not squaring like clipping) and it does indeed square both the frequency and the amplitude (not surprising when you think about what's happening. So you get a dynamically expanded signal along with your new harmonic content.
Title: Re: Octave Up Achieving... Ideas, Thoughts, Experience & Theory?
Post by: Satchmoedie on September 21, 2011, 08:51:09 PM
All the old octave ups were "fuzz" oriented devices in the 60s. I have found that a lot of the chips from the 80s pertaining to A/d D/A conversion sound better than a lot of the new stuff. I continually buy old Roland or whatever 25 year old rack mounted devices DOA and find usually a solder joint fixes them. Maybe since this was the period at which I was playing 6-24 hours a day I think they sound better. A clean octave up will be elusive at best with analog, unless you wish to just play one note. It actually might fly with some bands, but not very many. I was shocked at how much the old Roland digital delay sounded like my Maestro solid state which I started using for live gigs, and just keep the tube Ep-2 with SOS at home. I suppose with selected parts something might work, but good luck producing it in mass quantities. The theoretical optimum op amp does not exist, nor does any other theoretical perfect device, so I shall continue bashing my head into that brick until I find just the right angle. Ring modulators? Yeah real musical, especially to people who are on mass doses of MMDA. They have their place, but not really useful for a clean octave up analog signal. If digital is done right the sound is darn close. Maybe the older lower bit rate had something to do with it???
Title: Re: Octave Up Achieving... Ideas, Thoughts, Experience & Theory?
Post by: Quackzed on September 22, 2011, 09:13:21 AM
I've been messing with octaves, and have a few tricks you could try...
basically they involve fwr - then use a diode ladder to 'smooth' the pointy side... take a look... don't think it's been done commercially this way but it seems to hold some promise for a 'smooth-er' octave up.   ---disconnect the ground from the diode ladder to see the difference with and without...
http://tinyurl.com/43mo4ke
(http://tinyurl.com/43mo4ke)
huh- tinyurl - who knew? thanks for the tip!  ;)
Title: Re: Octave Up Achieving... Ideas, Thoughts, Experience & Theory?
Post by: amptramp on September 22, 2011, 10:05:52 AM
Now that's a candidate for tinyurl if I ever saw one!

There are absolute value circuits here that incorporate the diodes into the feedback network of an op amp so that the diode drop is divided by the gain.  This eliminates the gating effect:

http://sound.westhost.com/appnotes/an001.htm

Some people have mentioned multipliers and square-law circuits based on FET's, but there is another possibility: the log / antilog generator.  If you take the signal from a log generator, double it and feed it to an antilog generator, you have a squaring circuit that could be trimmed.  If you want tube sound, you could select 1.5 times the log and get a sound that is musical and contains some of the second harmonics you desire.  Varying the exponent from 2 to something else may produce something more musical than straight square law.