HISE Logo Forum
    • Categories
    • Register
    • Login

    Hard Clipper

    Scheduled Pinned Locked Moved General Questions
    43 Posts 6 Posters 2.9k 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 @Matt_SF
      last edited by

      @Matt_SF ok when I try to compile I get this error:

      ❌  /Users/zzz/Desktop/HISE_PROJECTS/EQ-1/DspNetworks/Binaries/Source/CLIPMAIN.h:25:53: call to member function 'pow' is ambiguous
      
                      return Math.sign(input) * Math.pow(Math.atan(Math.pow(Math.abs(input), 1.0 / value)), value);
      
      

      Any ideas?! 😆

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

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

        @DanH ha that must be my bad, I did it too quickly :

        Replace 1.0 by 1.0f in the equation

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

        DanHD 1 Reply Last reply Reply Quote 1
        • DanHD
          DanH @Matt_SF
          last edited by

          @Matt_SF Thanks! Ok, so close but so far it seems... I go through the process of compiling the nodes, but when I go to export Hise wants the expr node wrapped into a compilable network. But I already did that, and compiled that network, and the project is using the compiled node as you can see in the image, so I totally do not understand what I'm doing wrong!

          Screenshot 2023-05-30 at 21.19.34.png

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

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

            @DanH I replied to this error earlier. Stop doing that ! :face_with_tears_of_joy:

            It's either you leave the math.expr node as it is and compile the whole network :

            6f410d13-84db-46cd-81a6-5a47b12d5cf7-image.png

            OR

            You wrap and compile the node only and disable the network compilation :

            6651f284-c674-4028-a859-eec8496635d3-image.png

            Then you can compile the network into DLL.
            :)

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

            DanHD 1 Reply Last reply Reply Quote 0
            • DanHD
              DanH @Matt_SF
              last edited by

              @Matt_SF ok I got there eventually 😆

              Thanks for the help!

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

              1 Reply Last reply Reply Quote 0
              • DanHD
                DanH @Dan Korneff
                last edited by DanH

                @Dan-Korneff

                If you want a straight up Hard clipper, try something like:

                f_hard(x, threshold, ceiling) = (abs(x) >= threshold) ? (min(threshold * sign(x), ceiling)) : x
                

                Can I just stick this into the math.expr node like so?

                EDIT: No! 😆

                Could someone show me how to add this equation in please?! :folded_hands:

                Screenshot 2023-05-31 at 08.54.38.png

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

                Dan KorneffD 1 Reply Last reply Reply Quote 0
                • Dan KorneffD
                  Dan Korneff @DanH
                  last edited by

                  @DanH f_hard(x, threshold, ceiling) is the name of the function and it's variables. The result of the function is equal to the output, so consider them to be the same thing.
                  abs, min and sign are math functions, so you have to use the HISE equivalent. aka Math.abs, Math.min and Math.sign.
                  x = input
                  threshold and ceiling are parameters that go from 0.01 - 1.00

                  Dan Korneff - Producer / Mixer / Audio Nerd

                  DanHD 1 Reply Last reply Reply Quote 0
                  • DanHD
                    DanH @Dan Korneff
                    last edited by

                    @Dan-Korneff I have a lot to learn!! Thank you :)

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

                    Dan KorneffD 1 Reply Last reply Reply Quote 0
                    • Dan KorneffD
                      Dan Korneff @DanH
                      last edited by

                      @DanH did you get it going yet?

                      Dan Korneff - Producer / Mixer / Audio Nerd

                      DanHD 1 Reply Last reply Reply Quote 0
                      • DanHD
                        DanH @Dan Korneff
                        last edited by

                        @Dan-Korneff Thanks for asking, I haven't had time to have a go yet - next week!

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

                        1 Reply Last reply Reply Quote 0
                        • DanHD DanH referenced this topic on
                        • First post
                          Last post

                        17

                        Online

                        1.7k

                        Users

                        11.8k

                        Topics

                        102.4k

                        Posts