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.
    • Matt_SFM
      Matt_SF @Dan Korneff
      last edited by Matt_SF

      @Dan-Korneff actually, if you want to keep the bare scriptFX module in your project (and in your compiled plugin), you have to :

      • disable 'allow compilation' of the network
      • wrap the SNEX / expr node
      • compile the dll
      • compile your plugin.

      If you want to use a hardcodedFX in your project (and in your compiled plugin), you just need to :

      • enable 'allow compilation' of the network
      • compile the dll
      • compile your plugin.

      (> don't wrap the SNEX / expr node for the 2nd solution)

      Edited

      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 I've tried both ways and still get the same error!

        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 did you retry in a new blank project ?

          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 I did, I'll try with most recent commit. Maybe I'll also try with exp node before that actually....

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

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

              @Dan-Korneff tried shoving this into a SNEX Node but get any error to do with the parameter control, I'm most likely doing it wrong though! @Matt_SF I couldn't see anywhere to add an algo into the math-exp node...

              Any help hugely appreciated!

              HiseSnippet 1451.3ocuX0rbaaCDFTVPIx1oSRSldVGclI0kT+ZM8PhsrUplV6nwx0Stk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fmbV9YfEbr0ON0aa63zD30ioWn8fZEpVsca65MZVsZs56zZmFo8Q6FQ+kITt6zYv4o3ZNaWUaqlM2ocMambfK2I1IG1JgcZtji7lIaTkiU7STtkitqdSmk5MeMjlubiV71LpxHO.2eDI9FhI2fUfissAVfTiYwph+yGd1Ga8w0eExnQJBkiwGyoW9t3QD0sLyw3+ZMi2TtY6naivatiIU2UifdWETaaYbGevR87lA073.kOaAeBAJWpP9.elGMpOb+T0ncm3wDcYZQv+04GnaM2pfYt0APIbO3dpI6kB54S1rVVdA3xarvP4F3XwP42MhD4kEHlcmBSBTRRjQVRJ0wH5rg1qvUyjK17XiXShTy9g2Rjo38KxXhAT1USNgDcNUpu91mvX0cx4Wt3e9Gpm+5kF0kVfKN6ZRlt4LMuknU9LkuJs2.7I3vxGN9FLgS7mFOq+PpNed6PbOXwKM8uD9bU8hbGlMzbqDA2qSPgbwt0Vbr6g.ZsuZUv6Y6jmharc8pUq1xtUq56T2olc6ET8a9NsjVaWsL5CwNqTiMnAkcMPg1s2od6VP2JMsZPfPHGAWdKqwV0Za2JwV0ZTyoQqFUWFz9b5j1DeLMlJ0l8JsaLYIKk+bsRFah6EepRpKwelEgK0smPLNfjbcxU6K18k3xuAD2Hw6b02mWc3dXxL.8km7qeTFenZbEGz6McUALO16bcmc8rEulpqvZpsBqo9JrlFqvZZtBqo0Jrlctw0n9gf1chTDn+pFvD8OPW0y5.tp2SROPz+CbV3pLA
              

              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 Matt_SF

                @DanH easy peasy :)

                HiseSnippet 1428.3ocuX0raaaDDdojV4XGmhDDidlGkKbUI0uVnGRhksREZsifkqQNTff0TqrVHxcYIWFakhdu25aRdFJ5aReAZ6kdtcV9iHohjhs.RoAj3L6ry9sy7MytxC7DVTeegGRa6Kl4RQZ6hGNiKm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MZ1pVs5MNr8gMiO+smG8GCfT+rD37Tbcyp0h7UqVG1otgYNvkaGalCakwlsVwVd2vER+bEmEka5n6ZzzbkQyWBk9q1ok9XNU4jsvClP7WSNYMdA11FYvBTZjjqJ8Guau229867bTlCfQnLL9xX5std4o5OD6.eWMbfr8d+HT7BYWi4RvIaEhVntY3buFepZI7YWyqv3tAx80+B8PUthapD9BTnvqrfpq7is9.cHvMV+qh6FueRaYDZgkcK39EWEbcx5pULeoj1xY8omEmg3O+9DojfT6xx1SsLBAQNXta90e+ep7C+0e9rrogOKtwC7I.+7oiOGS3D6Y9IMehs4Sa6mBYa+bBbx2H3.8vYq7Wtf3Z3VWqHiKvsBaiFNv8ZGTHWdq3xyaO.PqwhkX2ydUOE2rZiZ0p01nc6FG1vrtQmkTZMekVQeyEqQe.1bi5ZBc+LpCFzoygM5zFZEF00bniPHm.2VHsqYs5UaG5q5Mqa1rcyZqBZeJCR6hOm5Sk4X7I8xxxRVI+I7tgYKf2E22+R0nVD64UwEPGIDScHg2eYy90F+ebaKGhkm3MVQWfTs4dPnFf9xC+I4aCcAAYcSzayFpbfeh7arrRN6e4yo1FLm5avbZrAyo4FLmVavbZuAy4v0NG0+chWDHENQ2sETL3jntdZmvIv83COHD8e.SUOb9
                

                Edit : error fix

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

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

                  @Matt_SF ah, haha, indeed :)

                  Thank you, I'll see if I can compile this now

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

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

                                      49

                                      Online

                                      1.7k

                                      Users

                                      11.7k

                                      Topics

                                      102.1k

                                      Posts