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

Thread: Is adjustable pulse width possible using modulated waveforms?

  1. #1
    Junior Member
    Join Date
    May 2018
    Location
    Baltimore
    Posts
    7

    Is adjustable pulse width possible using modulated waveforms?

    Is it possible to adjust the pulse width of the modulated waveform object's pulse wave shape?

    I'm using modulated waveforms in a synthesizer project and they are great. However, it seems that you lose the ability to adjust pulse width.
    The docs for the modulated waveform object omit the pulseWidth() function, so I assume the answer is no, but now I'm wondering what's up with its pulse wave shape; is it set to a fixed width and if so I'm curious what that is?

    In the code, I can always hop over to a regular waveform object for PWM, but it will add a fair amount of complexity to my relatively large 3 oscillator polyphonic audio chain that I'd prefer to avoid. It would also create the other challenge of how to communicate via the interface that frequency modulation isn't available on the pulse shape and PWM is, but that's my problem and now I'm rambling.

    Thanks in advance

  2. #2
    Senior Member PaulStoffregen's Avatar
    Join Date
    Nov 2012
    Posts
    19,210
    With the modulated waveform, pulse width is controlled by the input signal. That's why there's no function to control it.

    You could always do something like connect a DC synth object to the modulated waveform's width input.

  3. #3
    Junior Member
    Join Date
    May 2018
    Location
    Baltimore
    Posts
    7
    Oops, of course. I knew I was missing something obvious. Time to take a walk.

    Thank you for your time.

Posting Permissions

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