HISE Logo Forum
    • Categories
    • Register
    • Login

    Scriptnode Synth Pulse Width Modulation

    Scheduled Pinned Locked Moved General Questions
    3 Posts 2 Posters 149 Views
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • DanHD
      DanH
      last edited by

      Is this possible does anyone know? Can't see any options for it...

      DHPlugins / DC Breaks | Artist / Producer / DJ / Developer
      https://dhplugins.com/ | https://dcbreaks.com/
      London, UK

      Christoph HartC 1 Reply Last reply Reply Quote 0
      • Christoph HartC
        Christoph Hart @DanH
        last edited by

        The default waveform generator has a pulse width modulation, but in scriptnode you can use Faust for this:

        import("stdfaust.lib");
        
        freq = hslider("freq", 20, 2000, 0.1);
        pw = hslider("PulseWidth", 0.0, 0.0, 1.0, 0.01);
        gate = button("gate") : si.smoo;
        
        osc= os.pulsetrain(freq, pw) * gate;
        
        process = osc, osc;
        
        DanHD 1 Reply Last reply Reply Quote 1
        • DanHD
          DanH @Christoph Hart
          last edited by

          @Christoph-Hart Ok thanks, I haven't gone down the Faust rabbit-hole yet!

          With the Waveform Generator the Pulse Width only works (makes a difference) with the Square and Triangle shapes. It makes FM Modulation a little unexciting 😆 Is that on purpose?

          DHPlugins / DC Breaks | Artist / Producer / DJ / Developer
          https://dhplugins.com/ | https://dcbreaks.com/
          London, UK

          1 Reply Last reply Reply Quote 0
          • First post
            Last post

          51

          Online

          1.7k

          Users

          11.7k

          Topics

          101.8k

          Posts