HISE Logo Forum
    • Categories
    • Register
    • Login

    Script FX - code documentation....

    Scheduled Pinned Locked Moved General Questions
    5 Posts 3 Posters 415 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.
    • LindonL
      Lindon
      last edited by

      So @orange kindly pointed me at a sound generating approach for FX plug ins - using a Script FX and applying this code:

      const var lib = Libraries.load("core");
      const var sine = lib.createModule("sine");
      
      
      sine.setParameter(sine.Frequency, 440.0);
      sine.setParameter(sine.Amplitude, 1.0);
      sine.setParameter(sine.GlideTime, 0.2);
      

      to create the basic sine wave I was looking for, but now of course I'd like to use another audio type(noise) and I cant see anything in the documentation that points me at the above code never mind changing it...any one can point me in the right direction?

      HISE Development for hire.
      www.channelrobot.com

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

        @Lindon Use scriptnode, this is ancient and will be removed at some point in the future.

        LindonL 1 Reply Last reply Reply Quote 1
        • LindonL
          Lindon @Christoph Hart
          last edited by

          @Christoph-Hart - hmm, sure but this is in a shipped product - and I dont want to rebuild it all....

          HISE Development for hire.
          www.channelrobot.com

          orangeO 1 Reply Last reply Reply Quote 0
          • orangeO
            orange @Lindon
            last edited by orange

            @Lindon If you don't want to use scriptnode, (and if this core script is still supported on Hise) for the noise tone generation you can use:

            const var noise = lib.createModule("noise");
            
            noise.setParameter(noise.Gain, value);
            

            develop Branch / XCode 13.1
            macOS Monterey / M1 Max

            LindonL 1 Reply Last reply Reply Quote 0
            • LindonL
              Lindon @orange
              last edited by

              @orange thanks mate.

              HISE Development for hire.
              www.channelrobot.com

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

              25

              Online

              1.8k

              Users

              11.9k

              Topics

              104.0k

              Posts