how to make FM triangle wave from sines ?
-
- KVRian
- 1353 posts since 26 Sep, 2002 from Montreal, CANADA
Hello,
can it be done? I am having a hard time finding ANY intelligible information on FM basic algo's.
I know these waveforms are supplied in the operators but I would lioe to know how to build it from scratch. Currently, capable of building square and saw.
Thanks!!
Yan
can it be done? I am having a hard time finding ANY intelligible information on FM basic algo's.
I know these waveforms are supplied in the operators but I would lioe to know how to build it from scratch. Currently, capable of building square and saw.
Thanks!!
Yan
- KVRAF
- 2488 posts since 2 Dec, 2004 from Sydney, Australia
Hm NI FM8 has Triangle as a basic waveform included.
Not sure if its possible to create a Triangle from pure sines.. With phase distortion maybe.
Not sure if its possible to create a Triangle from pure sines.. With phase distortion maybe.
Cowbells!
-
- KVRist
- 353 posts since 22 Feb, 2004
I just went ahead and tried on a whim in FM8 and got results surprisingly fast. Used 2 sine operators, simple modulator>carrier setup. The modulator has a feedback loop around 40 and an amplitude between 10 to 15 to the carrier. It sounds close enough to me anyway.
-
- KVRian
- Topic Starter
- 1353 posts since 26 Sep, 2002 from Montreal, CANADA
Ok got it. Actually, the modulator>carrier ratio is 2:1. Reverse phase the modulator, feedback at around 33 and amp at around 14. Almost perfect!! Thanks!
Last edited by yul on Wed Dec 07, 2016 3:23 pm, edited 2 times in total.
- KVRian
- 1448 posts since 17 Jul, 2007 from Riversland Valhalla
Following the basic waveform concept, the Triangle waveform includes odd harmonics similar to the Square waveform, so that Operator 1 pitch (coarse) should be set to 1:00 & Operator 2 @ 2:00, let Op2 slightly modulate Op1, now you're getting a sine inside sine figure, to melt the peaks & get a smooth slope you have to shape Op2 by increasing its Feedback. And this is it:
BTW. Invert the phase of Op2

BTW. Invert the phase of Op2

-
- KVRist
- 353 posts since 22 Feb, 2004
Now here's a tougher one I haven't figured out... How about recreating squares at different pulse widths using sines?
- KVRian
- 1448 posts since 17 Jul, 2007 from Riversland Valhalla
My idea is to make the Square waveform simulation then by adding a third operator that works as a notch (pulse maker or shaper). The op3 coarse is 1.00 as the same basic fundamental tone, then by adding some phase adjustment (%25) so that the notch (pulse shaper) shifts & intersects with the square waveform producing a pulse.GeckoYamori wrote:Now here's a tougher one I haven't figured out... How about recreating squares at different pulse widths using sines?

-
- KVRist
- 353 posts since 22 Feb, 2004
There's no direct phase feature in FM8. Can it be achieved via the offset somehow?
I don't have nearly as much pure theoretical grasp on synthesis, I mostly just go by ear when tweaking stuff.
This little tune has the typical PWM sounds, but it's all done through FM. OPL3 on a Sound Blaster 16 to be precise, which could also use sines cut in half, squares and saws so it's possible or probable that those were utilized.
I don't have nearly as much pure theoretical grasp on synthesis, I mostly just go by ear when tweaking stuff.
This little tune has the typical PWM sounds, but it's all done through FM. OPL3 on a Sound Blaster 16 to be precise, which could also use sines cut in half, squares and saws so it's possible or probable that those were utilized.
- KVRian
- 1448 posts since 17 Jul, 2007 from Riversland Valhalla
Hmmm, I'm not quite sure as I don't have FM8, But offsetting works different than phase shifting... I'll try doing another method without applying phasing & will let you know, although I doubt itGeckoYamori wrote:There's no direct phase feature in FM8. Can it be achieved via the offset somehow?
---------------------------------------------------------------------------------
Update:
Solved, here's the concept:
In order to obtain a basic Pulse Waveform, we have to mix 1 sawtooth with an inverted sawtooth, as shown here:

To achieve this:
Op2 modulates Op1, both at same frequency, the Op2 must be phase shifted (inverted), trying to get a simple (Saw-Square) combination, then by shaping the waveform using the feedback loops for both Op1 & Op2 you get the required shape.

I have FM7 which can't simulate such thing as it doesn't have phase inversion. What about FM8?
-
- KVRist
- 353 posts since 22 Feb, 2004
I tried with an inverted saw like you said, it sounds more like I'm changing the pitch on a sync sound rather than changing the pulse width.
- KVRian
- 1448 posts since 17 Jul, 2007 from Riversland Valhalla
Hi.GeckoYamori wrote:I tried with an inverted saw like you said, it sounds more like I'm changing the pitch on a sync sound rather than changing the pulse width.
No don't use saw waveform, instead simulate the sawtooth from two sines one modulates e other with little feedback.
But as i told, there must be differences in result as we used different FM emulators.
If you have IL Sytrus i could send you the preset to study it.
- KVRian
- 1448 posts since 17 Jul, 2007 from Riversland Valhalla
Gecko Yamori Hey wait a minute you're the genius music maker of SOR-Remake! My honor to know you & talk to you! Please let's keep in touch I'm pleased to know you 