If you have a problem or need to report a bug please email : support@dsprobotics.com
There are 3 sections to this support area:
DOWNLOADS: access to product manuals, support files and drivers
HELP & INFORMATION: tutorials and example files for learning or finding pre-made modules for your projects
USER FORUMS: meet with other users and exchange ideas, you can also get help and assistance here
NEW REGISTRATIONS - please contact us if you wish to register on the forum
Users are reminded of the forum rules they sign up to which prohibits any activity that violates any laws including posting material covered by copyright
additive synthesis of a sawtooth wave
5 posts
• Page 1 of 1
additive synthesis of a sawtooth wave
Hi. I create the saw by the sum sine waves using the formula.
2.0f * sin(counter)
- sin(counter * 2.0f)
+ 2.0f / 3.0f * sin(3.0f * counter)
- 1.0f / 2.0f * sin(4.0f * counter)
+ 2.0f / 5.0f * sin(5.0f * counter)
- 1.0f / 3.0f * sin(6.0f * counter)
+ 2.0f / 7.0f * sin(7.0f * counter)
etc... formula here http://www.intmath.com/fourier-series/f ... applet.php
it's possible use only sum, create saw wave? dont use FFT and SUB?
2.0f * sin(counter)
- sin(counter * 2.0f)
+ 2.0f / 3.0f * sin(3.0f * counter)
- 1.0f / 2.0f * sin(4.0f * counter)
+ 2.0f / 5.0f * sin(5.0f * counter)
- 1.0f / 3.0f * sin(6.0f * counter)
+ 2.0f / 7.0f * sin(7.0f * counter)
etc... formula here http://www.intmath.com/fourier-series/f ... applet.php
it's possible use only sum, create saw wave? dont use FFT and SUB?
- Logado
- Posts: 62
- Joined: Tue Jan 06, 2015 5:42 pm
Re: additive synthesis of a sawtooth wave
Hi Logado
You might possibly be interested in this topic...
viewtopic.php?f=3&t=3632&start=0&hilit=wavemaker
Cheers
Spogg
You might possibly be interested in this topic...
viewtopic.php?f=3&t=3632&start=0&hilit=wavemaker
Cheers
Spogg
-
Spogg - Posts: 3358
- Joined: Thu Nov 20, 2014 4:24 pm
- Location: Birmingham, England
Re: additive synthesis of a sawtooth wave
hi, thx for reply it's interesting but i want to visualize this.
Now I have it https://i.gyazo.com/9d93de83294cdd7ef65 ... eb767c.gif
but I want to use a very simple code to make it clearer.
I want to create something like tutorial on the synthesis and what is the difference from the analogue and digital
Now I have it https://i.gyazo.com/9d93de83294cdd7ef65 ... eb767c.gif
but I want to use a very simple code to make it clearer.
I want to create something like tutorial on the synthesis and what is the difference from the analogue and digital
- Logado
- Posts: 62
- Joined: Tue Jan 06, 2015 5:42 pm
Re: additive synthesis of a sawtooth wave
That's a nice gif!
Maybe somone here knows of a good resource for such an ambition.
This is a nice demo of the principle
https://www.youtube.com/watch?v=K3D1fPjWAnc
Good luck and let us know how you get on
Cheers
Spogg
Maybe somone here knows of a good resource for such an ambition.
This is a nice demo of the principle
https://www.youtube.com/watch?v=K3D1fPjWAnc
Good luck and let us know how you get on
Cheers
Spogg
-
Spogg - Posts: 3358
- Joined: Thu Nov 20, 2014 4:24 pm
- Location: Birmingham, England
Re: additive synthesis of a sawtooth wave
Yeah nice video. i want something similar but more complex.
I found solution
for (float i = 1; i < numHarmonics; i++)
{
wavey += cos(counter * i + phaseoffset) * 1.0f / i;
}
where
phaseoffset = -1 * 3.14159265357989323846 / 2.0f;
I found solution
for (float i = 1; i < numHarmonics; i++)
{
wavey += cos(counter * i + phaseoffset) * 1.0f / i;
}
where
phaseoffset = -1 * 3.14159265357989323846 / 2.0f;
- Logado
- Posts: 62
- Joined: Tue Jan 06, 2015 5:42 pm
5 posts
• Page 1 of 1
Who is online
Users browsing this forum: Google [Bot] and 80 guests