Author |
Message |
françois
Joined: Dec 23, 2006 Posts: 139 Location: Paris (France)
Audio files: 1
|
Posted: Sat Dec 23, 2006 7:54 am Post subject:
Voltage controlled waveform symmetry, request for advice |
 |
|
Hello all,
My first post here...
I really wanted a voltage controlled "triangular" wave symmetry, that is, from falling sawtooth to triangle to raising sawtooth. So I designed one from scratch, and was happy to discover it was very similar to the ones from Achim Gratz, Don Tillman or Osamu Hoshuyama. It is not waveshape morphing, only hardware waveshaping.
Attached are a few examples of what I manage to obtain (don't worry about the time scale, it is just for convenience -- BTW it is just LTSpice simulation, not real breadboarding).
As you can see I still have a horrible glitch at every cycle transition. Of course I can filter it out, but then it rounds the corners of the waveshape... I could see that similr topics have been discussed here, but I'd like soeme advice about switching voltages with (hopefully) no glitch at all...
Thanx in advance.
-- françois
Description: |
|
Filesize: |
15.36 KB |
Viewed: |
23175 Time(s) |

|
Description: |
|
Filesize: |
16.46 KB |
Viewed: |
23153 Time(s) |

|
Description: |
|
Filesize: |
16.46 KB |
Viewed: |
23140 Time(s) |

|
Description: |
|
Filesize: |
22.69 KB |
Viewed: |
23222 Time(s) |

|
|
|
Back to top
|
|
 |
blue hell
Site Admin

Joined: Apr 03, 2004 Posts: 24419 Location: The Netherlands, Enschede
Audio files: 297
G2 patch files: 320
|
Posted: Tue Dec 26, 2006 5:36 pm Post subject:
|
 |
|
françois,
Funny thing with the glitches is that the first full period seems OK. Can't really comment on it as the schematics are too small for me to read, but you should be nearly there  _________________ Jan
also .. could someone please turn down the thermostat a bit.
 |
|
Back to top
|
|
 |
françois
Joined: Dec 23, 2006 Posts: 139 Location: Paris (France)
Audio files: 1
|
|
Back to top
|
|
 |
françois
Joined: Dec 23, 2006 Posts: 139 Location: Paris (France)
Audio files: 1
|
|
Back to top
|
|
 |
ian-s

Joined: Apr 01, 2004 Posts: 2672 Location: Auckland, New Zealand
Audio files: 42
G2 patch files: 626
|
Posted: Wed Dec 27, 2006 1:33 am Post subject:
|
 |
|
françois wrote: | maybe for a LFO ?
|
Variable ramp LFO's are fun. I love the one on the MS20, but it had no voltage control of shape.
The G2 has a variable ramp oscillator but I find it less useful than I imagined due to the perceived loudness increase as it gets closer to a sawtooth. |
|
Back to top
|
|
 |
françois
Joined: Dec 23, 2006 Posts: 139 Location: Paris (France)
Audio files: 1
|
|
Back to top
|
|
 |
françois
Joined: Dec 23, 2006 Posts: 139 Location: Paris (France)
Audio files: 1
|
Posted: Wed Dec 27, 2006 2:42 am Post subject:
|
 |
|
Hello, back to it...
Aaaaaarghhh... I got it at last !
The glitch comes from the waveshaper itself, I mean intrinsically... When fed a symmetric triangle waveform instead of a rising ramp, you get two asymmetric ramps, kind of mirror images (see first attached curves -- top pane is the input signal, bottom is the resulting output).
Now feed it an asymmetric triangle waveform -- second curves are what you get... See it ? What happens is that the reset of the input ramp is not instantaneous. It is "understood" as a extremely fast falling ramp.
So this is not a good idea for waveshaping -- at least not the way it was intended. Still usable, but the result is more like a waveclipper... And filtering the "glitch" out doesn't seem a suitable solution.
Too bad.
-- françois
Description: |
|
Filesize: |
45.01 KB |
Viewed: |
23156 Time(s) |

|
Description: |
|
Filesize: |
49.49 KB |
Viewed: |
23146 Time(s) |

|
|
|
Back to top
|
|
 |
blue hell
Site Admin

Joined: Apr 03, 2004 Posts: 24419 Location: The Netherlands, Enschede
Audio files: 297
G2 patch files: 320
|
Posted: Wed Dec 27, 2006 5:58 am Post subject:
|
 |
|
françois wrote: | Aaaaaarghhh... I got it at last ! |
That's more than I can say, but then again .. you're the one into it
I had expected problems near the -5V level of the ramp signals due to cliping of the divider output(s) ...
Still the graphs shown using an asymetric triangle as the input seem to indicate the circuit might have some purpose for waveshaping after all. _________________ Jan
also .. could someone please turn down the thermostat a bit.
 |
|
Back to top
|
|
 |
françois
Joined: Dec 23, 2006 Posts: 139 Location: Paris (France)
Audio files: 1
|
Posted: Wed Dec 27, 2006 6:19 am Post subject:
|
 |
|
Hello Jan,
Blue Hell wrote: | I had expected problems near the -5V level of the ramp signals due to cliping of the divider output(s) ... |
The dividers do indeed clip. But only the part of their outputs between 0V and +10V is used, so this should not be a problem... I did expect some glitch at the commutation point, and it does not occur... Glad I made a simulation, not a real breadboard !
Blue Hell wrote: | Still the graphs shown using an asymetric triangle as the input seem to indicate the circuit might have some purpose for waveshaping after all. |
Sure. But now, how do I get an asymmetric triangle to feed the waveshaper ? Another VC waveshaper ?
-- françois |
|
Back to top
|
|
 |
françois
Joined: Dec 23, 2006 Posts: 139 Location: Paris (France)
Audio files: 1
|
Posted: Wed Dec 27, 2006 7:21 am Post subject:
|
 |
|
After all, filtering the "glitch" with a single RC cell at about 15kHz cutoff seems to work fine... cancels the glitch, does not round the corners too much, and preserves the waveforms obtained with asymmetric triangle inputs... I might keep this one after all, though mostly as a curiosity.
-- françois |
|
Back to top
|
|
 |
ian-s

Joined: Apr 01, 2004 Posts: 2672 Location: Auckland, New Zealand
Audio files: 42
G2 patch files: 626
|
|
Back to top
|
|
 |
françois
Joined: Dec 23, 2006 Posts: 139 Location: Paris (France)
Audio files: 1
|
Posted: Fri Dec 29, 2006 4:27 am Post subject:
|
 |
|
Thank you g2ian for this nice patch,
It sounds as I expected. But I still have to understand how you get a "tri to saw" morph from sine waves... a pity there is no oscilloscope on the G2!
In fact I don't really like these software synths, otherwise I would not be designing analog modules. Yes, I do realize that Spice-simulating modules is exactly the same thing as softsynths (albeit far less powerful). But these simulated circuits will have real existence some day.
On the other hand I have (access to) software Arp-2600, Moog Modular, Vaz Modular and now G2 demo (I thought some DSP hardware was a requirement) and I admit they do a good job. Only it is not the same as a real analog... oh, well, they sound about the same, okay.
About the perceived loudness of a tri-to-sine morph. I prefer to have constant signal levels at the oscillators' outputs, but clearly a sine wave will sound much dimmer than a sawtooth. The Elektor Formant had different levels for different waveshapes. I just don't like it, probably because I tend to think more in terms of electronics & math than in musical ones...
-- françois |
|
Back to top
|
|
 |
françois
Joined: Dec 23, 2006 Posts: 139 Location: Paris (France)
Audio files: 1
|
Posted: Fri Dec 29, 2006 12:14 pm Post subject:
|
 |
|
françois wrote: | It sounds as I expected. But I still have to understand how you get a "tri to saw" morph from sine waves... a pity there is no oscilloscope on the G2! |
I understand now... but it works best (visually at least) with quadrature triangles rather than sines.
-- françois |
|
Back to top
|
|
 |
ian-s

Joined: Apr 01, 2004 Posts: 2672 Location: Auckland, New Zealand
Audio files: 42
G2 patch files: 626
|
Posted: Fri Dec 29, 2006 1:05 pm Post subject:
|
 |
|
françois wrote: | a pity there is no oscilloscope on the G2!
|
Yes, I have the G2 hardware so I can use VA ( a very nice free software scope).
There is a noticable curve on one flank of the sawtooth but I assume this is because a full wave rectified sine is not a true parabolic wave.
I assume it would be not too difficult to scale the output level based on the CV to flatten out the results.
The G2 patch is only an illustration, the G2 itself allready has a tri-saw (ShapeOscA option 5, LFOshpA). Interestingly, these fall short of 100% sawtooths as well.
I was thinking that the patch showed how to add a usefull wave shapeing option to an analog quadrature oscillator, a nice side effect is that the triangle/saw is twice the frequency of the sine allowing for a true sine suboctave.
Interesting about the quadrature triangle, I thought that would give a trapezoid wave.
Description: |
|
Filesize: |
3.21 KB |
Viewed: |
26705 Time(s) |

|
Description: |
|
Filesize: |
3.38 KB |
Viewed: |
26705 Time(s) |

|
|
|
Back to top
|
|
 |
françois
Joined: Dec 23, 2006 Posts: 139 Location: Paris (France)
Audio files: 1
|
Posted: Fri Dec 29, 2006 2:41 pm Post subject:
|
 |
|
g2ian wrote: | Yes, I have the G2 hardware so I can use VA ( a very nice free software scope). |
Unfortunately I would need $$$ (or in my case €€€) for that... and the most urgent need is to re-install a real lab, and build modules instead of simulate them...
g2ian wrote: | There is a noticable curve on one flank of the sawtooth but I assume this is because a full wave rectified sine is not a true parabolic wave. |
True enough. A rectified sine remains sine-shaped, which is (mathematically speaking) far from a parabola. But that doesn't really matter for these purposes...
g2ian wrote: | The G2 patch is only an illustration, the G2 itself allready has a tri-saw (ShapeOscA option 5, LFOshpA). Interestingly, these fall short of 100% sawtooths as well. |
Yes, I did notice this module. And as I mentioned in one of my first posts on this topic, a 100% sawtooth (obtained by morphing) is about as meaningless as a 100% duty cycle pulse wave.
g2ian wrote: | I was thinking that the patch showed how to add a usefull wave shapeing option to an analog quadrature oscillator, a nice side effect is that the triangle/saw is twice the frequency of the sine allowing for a true sine suboctave. |
There are plenty of ways to obtain sub- and sup-octaves from triangles or sawtooths... more difficult with sines.
g2ian wrote: | Interesting about the quadrature triangle, I thought that would give a trapezoid wave. |
In fact, not quite that. I simulated quadrature triangle and rectifiers with LTSpice (very easy thing to do) and the resulting wave is more like... er... say, half a sawtooth. If you imagine an original sawtooth from -5V to +5V, it is the positive part of it, same as half-wave rectification.
Thank you again,
-- françois |
|
Back to top
|
|
 |
Jari Jokinen
Joined: Sep 11, 2006 Posts: 87 Location: Finland
Audio files: 1
G2 patch files: 1
|
Posted: Sat Dec 30, 2006 7:23 am Post subject:
|
 |
|
g2ian wrote: | The G2 has a variable ramp oscillator but I find it less useful than I imagined due to the perceived loudness increase as it gets closer to a sawtooth. |
I could use analog saw/triangle morph. Works a bit like a filter - or rather like phase or frequency modulation. Here is a test improvisation I made with Nord Modular Shape Oscillator. It aliases a bit:
http://www.esnips.com/doc/6ab002c8-1615-43dc-bafe-eb3c01244b6f/Osc_test
There is static 6dB/oct filter at 2000Hz. Sorry for the reverb - I lost the original.
Best regards
Jari Jokinen |
|
Back to top
|
|
 |
ian-s

Joined: Apr 01, 2004 Posts: 2672 Location: Auckland, New Zealand
Audio files: 42
G2 patch files: 626
|
Posted: Sat Dec 30, 2006 11:15 am Post subject:
|
 |
|
Nice sample.
As an alternative to pwm it is not so good but there is nothing un-useful about an oscillator that can sound like a vco+vcf. |
|
Back to top
|
|
 |
françois
Joined: Dec 23, 2006 Posts: 139 Location: Paris (France)
Audio files: 1
|
Posted: Mon Jan 01, 2007 6:15 am Post subject:
|
 |
|
Hello and happy new year to all !
Very nice sample, Jari.
I expected to use my "waveshaper" to implement pulse position modulation (PPM) as well as pulse width modulation (PWM). While PPM is strictly speaking phase modulation, it is not equivalent to the classic phase-lag networks because it introduces the same delay at all frequencies. And PWM is more like filtering...
There are many easier ways to implement simultaneous PPM/PWM (a window comparator does the job when fed a ramp or a triangle) so I am experimenting with it. The first results are not that impressive however...
-- françois |
|
Back to top
|
|
 |
frijitz
Joined: May 04, 2007 Posts: 1734 Location: NM USA
Audio files: 54
|
Posted: Fri May 11, 2007 10:07 am Post subject:
|
 |
|
Well, I'm a bit late to this party, but I have a totally new way to do this ... using a saturating negative impedance converter. (Wha...???)
Check out the SNICster on my website:
http://home.comcast.net/~ijfritz/sy_cir10.htm
Oh, it does some other stuff too.
Ian |
|
Back to top
|
|
 |
|