Forum Rule: Always post complete source code & details to reproduce any issue!
Results 1 to 5 of 5

Thread: phase modulation + frequency modulation at the same time

  1. #1
    Senior Member
    Join Date
    Dec 2018
    Posts
    175

    phase modulation + frequency modulation at the same time

    Hello,

    I have build a synth with FM synthesis. I learned on this forum that FM synthesis was actually Phase Modulation. And indeed using phase modulation produces very consistant and musical results. So I have configured my carrier oscillator using the following setting :
    osc1.phaseModulation(360);

    On this synth, I also have an LFO to add some vibrato (slow frequency modulation). I noticed that it doesn't work well if I use :

    osc1.phaseModulation(360);
    instead of
    osc1.frequencyModulation(360);

    Any idea to use my LFO plus FM(phase) synthesis ?

    Thank you
    Emmanuel

  2. #2
    Senior Member
    Join Date
    Jul 2020
    Posts
    1,456
    The AudioSynthWaveformModulated only supports a single modulation stream so can only do one
    of FM or PM at one time.

    You'd have to write a more general version with two modulation streams in to do this, combining
    the modulations.

  3. #3
    Junior Member
    Join Date
    Dec 2020
    Posts
    19
    if you look at my response to the previous thread you started, the code I posted does what MarkT mentions. the Waveformodulated2 class accepts two modulation inputs which allows you to get vibrato.

  4. #4
    Senior Member
    Join Date
    Dec 2018
    Posts
    175
    Thank you very much Murdog !
    Here is the thread for those who want to try : https://forum.pjrc.com/threads/68650...-unpredictable

  5. #5
    Senior Member
    Join Date
    Dec 2018
    Posts
    175
    Murdog, would you please give me a few explanations with the way to use Waveformodulated2 ?
    Do I have to simply replace and rename the original class with yours ?
    I rarely dig in theses directions and it not obvious for me ...
    Emmanuel

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •