Help, generate harmonics

Sound synthesis techniques, DSP and related mathematics

Moderators: electrogear, exonerate

Help, generate harmonics

Postby JuzamDJ on Mon Oct 04, 2010 6:54 pm

Hello, How can generate harmonics (even, odd) without distortion?

sorry for my inglish.

Thx,

Marco S.
JuzamDJ
essemer
 
Posts: 8
Joined: Sun Dec 27, 2009 7:49 pm

Re: Help, generate harmonics

Postby MichaelBenjamin on Mon Oct 04, 2010 7:21 pm

User avatar
MichaelBenjamin
smaniac
 
Posts: 1439
Joined: Thu Jul 12, 2007 3:26 pm

Re: Help, generate harmonics

Postby MichaelBenjamin on Mon Oct 04, 2010 7:52 pm

User avatar
MichaelBenjamin
smaniac
 
Posts: 1439
Joined: Thu Jul 12, 2007 3:26 pm

Re: Help, generate harmonics

Postby Andrew J on Mon Oct 04, 2010 9:35 pm

Chebyshev polynomials are indeed the way to go, but avoiding aliasing distortion with these is tricky in SM. If anyone solves it properly, please let me know!
Andrew J
smanatic
 
Posts: 616
Joined: Tue May 29, 2007 4:53 am
Location: Australia

Re: Help, generate harmonics

Postby MichaelBenjamin on Mon Oct 04, 2010 9:56 pm

cant one not simply slap your oversampling implementation right and left to make it sound brilliant at 96khz?
i only used this to get some sinewave harmonics so far, didnt use it with a full range signal.

btw someone knows a 1.5 octave powerchord shaper? or any approach that might get me to it?
User avatar
MichaelBenjamin
smaniac
 
Posts: 1439
Joined: Thu Jul 12, 2007 3:26 pm

Re: Help, generate harmonics

Postby Andrew J on Tue Oct 05, 2010 12:47 am

MichaelBenjamin wrote:cant one not simply slap your oversampling implementation right and left to make it sound brilliant at 96khz?
i only used this to get some sinewave harmonics so far, didnt use it with a full range signal.

btw someone knows a 1.5 octave powerchord shaper? or any approach that might get me to it?


The filters in the oversampling kit aren't good enough to clean up the 4th and 5th order harmonics. I need to try it in C++ to see if using double precision maths sorts it out.

For a powerchord, you'll want the 3rd harmonic.

Harmonics
1 - Fundamental
2 - 1 octave up
3 - 1 octave + a perfect 5th (i.e. power chord)
4 - 2 octaves up
5 - 2 octaves + a perfect 3rd
6 - 2 octaves + a perfect 5th
7 - doesn't correspond to an interval (ugly!)
8 - 3 octaves up
Andrew J
smanatic
 
Posts: 616
Joined: Tue May 29, 2007 4:53 am
Location: Australia

Re: Help, generate harmonics

Postby bootsy on Tue Oct 05, 2010 8:50 am

JuzamDJ wrote:Hello, How can generate harmonics (even, odd) without distortion?

sorry for my inglish.

Thx,

Marco S.


There is always distortion if you generate additional harmonics you just can minimize it.
Come and visit my Blog: Variety Of Sound
bootsy
essemilian
 
Posts: 370
Joined: Sat Jul 28, 2007 10:55 am
Location: Frankfurt, Germany

Re: Help, generate harmonics

Postby trogluddite on Tue Oct 05, 2010 2:10 pm

Yes, many enhancers work that way. Split of a duplicate of your main signal then filter>>distort>>filter - then mix that back in with the original signal. The kind of distortion is obviously still important if you need control over the exact kind of harmonics added though - a big influence on this is how symmetrical the distortion above and below the zero axis.
Feel free to use any schematics and algorithms I post on the forum in your own designs - a credit is appreciated (but not a requirement).
Don't stagnate, mutate to create. Without randomness and serendipity the earth would be just another barren rock.
User avatar
trogluddite
smychopath
 
Posts: 3024
Joined: Mon Oct 20, 2008 3:52 pm
Location: Yorkshire, UK

Re: Help, generate harmonics

Postby datsound on Wed Oct 20, 2010 9:53 pm

i figure he means keeping it from being atonal i.e. focused on notes.

harmonics are seperate frequencies that lie any where along the 12 octaves and are not unrelated to the main frequency, for example a triangle can be approximated by adding 20 sine waves together in small amounts.

in additive synthesis, you put in extra oscillators, in substractive, you use filters to substract, usually synths are a mix of both, in any sound flow system you like.

over time you learn all the ways to add as much sound to the main frequency even with each their own seperate LFO, and you have to find forumulas to create as much related sounds but force them to be mostly close to the main one, the more closer they are to the main, octaves, the less distorted it sounds, in a gradient from 0 not close at all to 100 and all the percentages of closeness in between. that is what you have to control
User avatar
datsound
essemist
 
Posts: 115
Joined: Sun Sep 05, 2010 5:52 pm


Return to Sound

Who is online

Users browsing this forum: No registered users and 1 guest