Oscillator: from visual waveform to math formula. How?
-
- KVRian
- Topic Starter
- 1297 posts since 17 Aug, 2003 from Italy
Hi all
I wish to produce this waveform:
I've tried with sines, tangents.. and combinations of them,
waveshaping methods.. none of my attempts gave me satisfying results.
any advice?
t.i.a.
Guido.
I wish to produce this waveform:
I've tried with sines, tangents.. and combinations of them,
waveshaping methods.. none of my attempts gave me satisfying results.
any advice?
t.i.a.
Guido.
-
- KVRian
- 880 posts since 11 Jun, 2001 from Munich, Germany
Something similar can be achieved by additive synthesis of an sawtooth (amplitude of the nth harmonic is 1/n times that of the fundamental, truncate after some iterations).
Cheers
Toby
www.tobybear.de
Cheers
Toby
www.tobybear.de
-
- KVRian
- 922 posts since 26 Mar, 2003 from Guildford, England
-
- KVRAF
- 3388 posts since 29 May, 2001 from New York, NY
additive synthesis will do it nicely. Just FFT this waveform and take the first 3 or 4 harmonics...
You can probably get it too using FM and a little waveshaping, although it'll be harder to antialias.
'Tick
You can probably get it too using FM and a little waveshaping, although it'll be harder to antialias.
'Tick
-
- KVRian
- 922 posts since 26 Mar, 2003 from Guildford, England
Alternatively, a generic way of doing this would be to write a genetic algorithm to come up with the equation for you - enter in the waveform as a series of points and give the program a time variable, a few mathematical functions to choose from, and a selection of persistant variables that it may use. Then leave it to run until it gets a good approximation.
-
- KVRian
- 880 posts since 11 Jun, 2001 from Munich, Germany
Just checked: as I said, you can easily get this waveform by summing the first 4 or 5 harmonics (scaled by 1/n) with phase set to 0. Just add up the sines or (as Big Tick suggested) use inverse FFT.
Cheers
Toby
www.tobybear.de
Cheers
Toby
www.tobybear.de
-
- KVRAF
- 4692 posts since 28 Jan, 2003 from In these very interwebs
-
- KVRian
- 574 posts since 6 Jan, 2003 from Somewhere between ))o Left and Right o((
-
- KVRAF
- 4644 posts since 28 Nov, 2002 from Chicago
check out bazzoid[1]. The system for waveshaping in Bazzoid is very simple, and easy to understand, and you can see the waveform that results from your settings.
I think you may find some useful clues there.
(that and it is a great Bass VSTi).
[1] Cheers, Jens.
I think you may find some useful clues there.
(that and it is a great Bass VSTi).
[1] Cheers, Jens.
Someone shot the food. Remember: don't shoot food!
-
- KVRian
- Topic Starter
- 1297 posts since 17 Aug, 2003 from Italy
Thank you all guys!
Your help has been really precious for me!
Your help has been really precious for me!
-
- KVRAF
- 2458 posts since 3 Oct, 2002 from SF CA USA NA Earth
Also, Audiomulch has the "10Harmonics" tone generator, which lets you set the relative contribution of the first 10 harmonics of a wave, and graphs the wave in real time as you mess with the harmonics levels -- you could find an approximation to that wave in a couple minutes of twiddling, I imagine.
-
- KVRAF
- 2458 posts since 3 Oct, 2002 from SF CA USA NA Earth