Forum

    • Register
    • Login
    • Search
    • Categories

    Script FX - code documentation....

    General Questions
    3
    5
    152
    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.
    • Lindon
      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 Hart 1 Reply Last reply Reply Quote 0
      • Christoph Hart
        Christoph Hart @Lindon last edited by

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

        Lindon 1 Reply Last reply Reply Quote 1
        • Lindon
          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

          orange 1 Reply Last reply Reply Quote 0
          • orange
            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

            Lindon 1 Reply Last reply Reply Quote 0
            • Lindon
              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

              8
              Online

              857
              Users

              5.7k
              Topics

              53.1k
              Posts