HISE Logo Forum
    • Categories
    • Register
    • Login

    Adventures in ScriptNode ..signal phase

    Scheduled Pinned Locked Moved General Questions
    7 Posts 5 Posters 302 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 Lindon

      just trying to find a simple phase inverter in ScriptNode - cant seem to see it do I need to build my own?

      I guess I could use a math.expr with a simple algo of: output = input * -1.0

      HISE Development for hire.
      www.channelrobot.com

      Dan KorneffD Matt_SFM 2 Replies Last reply Reply Quote 0
      • Dan KorneffD
        Dan Korneff @Lindon
        last edited by

        @Lindon I believe that's the only way to do it.

        Dan Korneff - Producer / Mixer / Audio Nerd

        1 Reply Last reply Reply Quote 0
        • NatanN
          Natan
          last edited by Natan

          @Lindon Math.mul 🤛 Does the job

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

            @Natan said in Adventures in ScriptNode ..signal phase:

            @Lindon Math.mul 🤛 Does the job

            -- so same as math.expr then...

            HISE Development for hire.
            www.channelrobot.com

            1 Reply Last reply Reply Quote 0
            • Matt_SFM
              Matt_SF @Lindon
              last edited by

              @Lindon said in Adventures in ScriptNode ..signal phase:

              I guess I could use a math.expr with a simple algo of: output = input * -1.0

              Just use a math.mulnode and set it to -1. Easier than a math.exprnode

              Develop branch
              Win10 & VS17 / Ventura & Xcode 14. 3

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

                Actually the math.mul node is the better option because it will use vectorized functions (SIMD) while the expression node will be evaluated per sample and I wouldn't trust the compiler to auto-vectorize this (especially the MSVC compiler which is notoriously bad at autovectorizing).

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

                  @Christoph-Hart said in Adventures in ScriptNode ..signal phase:

                  Actually the math.mul node is the better option because it will use vectorized functions (SIMD) while the expression node will be evaluated per sample and I wouldn't trust the compiler to auto-vectorize this (especially the MSVC compiler which is notoriously bad at autovectorizing).

                  ..you had me at "SIMD.." - will do...

                  HISE Development for hire.
                  www.channelrobot.com

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

                  54

                  Online

                  1.7k

                  Users

                  11.7k

                  Topics

                  101.8k

                  Posts