HISE Logo Forum
    • Categories
    • Register
    • Login

    Adding a distortion knob

    Scheduled Pinned Locked Moved General Questions
    24 Posts 6 Posters 479 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.
    • griffinboyG
      griffinboy @pcs800
      last edited by

      @pcs800

      You'll want to compensate with decreasing volume after. Limiting or clipping the output should be an option to the user

      1 Reply Last reply Reply Quote 0
      • d.healeyD
        d.healey @pcs800
        last edited by d.healey

        @pcs800 said in Adding a distortion knob:

        You'd think the dev would change that.

        We lasted 8 years without being able to move modules at all! you came in during a golden age :p

        You can also just add it directly at the top of the chain by right-clicking on an existing module and selecting add before this one

        b4240a8c-a0c9-4925-bd74-7aaf022c45e1-image.png

        Libre Wave - Freedom respecting instruments and effects
        My Patreon - HISE tutorials
        YouTube Channel - Public HISE tutorials

        pcs800P 1 Reply Last reply Reply Quote 2
        • pcs800P
          pcs800 @d.healey
          last edited by

          @d-healey Oh, that might be what I want to do, thanks.
          @griffinboy How do i compensate with decreasing volume proportionately?

          griffinboyG 1 Reply Last reply Reply Quote 0
          • griffinboyG
            griffinboy @pcs800
            last edited by

            @pcs800

            Not possible unless you're going to write the dsp math for the distortion yourself! The best you can do is feed in an 'expected signal' and then figure out for certain distortion values, how much you need to decrease volume to keep it level.

            You can use scriptnode or the hise script to control the compensation based on an array or curve.

            It'll be some kind of curve, not linear.

            pcs800P 1 Reply Last reply Reply Quote 0
            • pcs800P
              pcs800 @griffinboy
              last edited by

              @griffinboy And I have no idea how to do that.
              Before I started using HISE, I was making instruments that ran in Kontakt, using Kontakt GUI maker. It had a distortion effect you could add that just added distortion, not overall volume. I really need that to happen in these plugins I am making.
              If anyone is willing to help with scripting, since I am new to that too.

              griffinboyG 1 Reply Last reply Reply Quote 0
              • griffinboyG
                griffinboy @pcs800
                last edited by

                @pcs800

                mmm yeah, Hise is a bit more involved, it's a step up from Kontakt in terms of complexity.

                Were you using KSP in your kontakt instruments previously?
                If you were, you'll have less issue doing what I said.

                If not, you've got a bunch to learn here!

                pcs800P 1 Reply Last reply Reply Quote 0
                • pcs800P
                  pcs800 @griffinboy
                  last edited by

                  @griffinboy said in Adding a distortion knob:

                  Were you using KSP in your kontakt instruments previously?

                  Since I don't know what that is, I'm gonna go with no :-)

                  So, I actually added a limiter in line after the saturator and set it up so the overall volume doesn't change when saturation is added, and it worked!

                  griffinboyG 1 Reply Last reply Reply Quote 1
                  • griffinboyG
                    griffinboy @pcs800
                    last edited by

                    @pcs800

                    haha, it will, but try it on drums.

                    You will now get heavy limiting, potentially adding weird dynamics.

                    It may be what you are after. Make sure to test on a bunch of program material to make sure its doing what you intended.

                    pcs800P 1 Reply Last reply Reply Quote 0
                    • pcs800P
                      pcs800 @griffinboy
                      last edited by

                      @griffinboy Actually, a multiout drum instrument is in my future plans for Hise, so thanks for the warning.
                      I do have three developers on my team who are totally familiar with juce, javascript, and C++. So I am sure I'll be bugging them when the time comes.

                      pcs800P 1 Reply Last reply Reply Quote 1
                      • pcs800P
                        pcs800 @pcs800
                        last edited by pcs800

                        @griffinboy Yikes!
                        Having added the saturator and limiter seems to have added a bunch of latency to the plugin.
                        I exported and opened it in my daw project which also contains a drum track that the instruments plays along with, and it is about 100ms behind.
                        Anyone have insight on latency being introduced?

                        griffinboyG 1 Reply Last reply Reply Quote 0
                        • griffinboyG
                          griffinboy @pcs800
                          last edited by griffinboy

                          @pcs800

                          I'm sure that's the lookahead on the limiter.

                          There is a hisescript command to compensate for latency

                          pcs800P 1 Reply Last reply Reply Quote 0
                          • pcs800P
                            pcs800 @griffinboy
                            last edited by

                            @griffinboy I will look around for that. And yes, I took out the limiter and the latency went away.

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

                              @pcs800 just use a faust limiter - tis less (much les)) latency

                              HISE Development for hire.
                              www.channelrobot.com

                              pcs800P 1 Reply Last reply Reply Quote 0
                              • pcs800P
                                pcs800 @Lindon
                                last edited by

                                @Lindon Isn't that involving adding code instead of adding it with the gui editor?

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

                                  @pcs800 said in Adding a distortion knob:

                                  @Lindon Isn't that involving adding code instead of adding it with the gui editor?

                                  yes - if you are looking to build a meaningful and class compliant product without writing code I fear you will be disappointed.

                                  HISE Development for hire.
                                  www.channelrobot.com

                                  griffinboyG 1 Reply Last reply Reply Quote 3
                                  • griffinboyG
                                    griffinboy @Lindon
                                    last edited by griffinboy

                                    @Lindon
                                    @pcs800

                                    Indeed, but everyone has to start somewhere. My first Hise vst was a sine generator with a pretty UI and a pitch knob.

                                    Start with getting a programmed interface to control what already exists in Hise.
                                    Get a UI working for your current project.

                                    Next, explore scriptnode if you want to take it further.

                                    Then Faust, snex or c++ would be the next step.

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

                                      @griffinboy said in Adding a distortion knob:

                                      @Lindon
                                      @pcs800

                                      Indeed, but everyone has to start somewhere. My first Hise vst was a sine generator with a pretty UI and a pitch knob.

                                      yes but that wasn't a n effect with a limiter and no latency was it?

                                      HISE Development for hire.
                                      www.channelrobot.com

                                      griffinboyG 1 Reply Last reply Reply Quote 1
                                      • griffinboyG
                                        griffinboy @Lindon
                                        last edited by griffinboy

                                        @Lindon

                                        Yes yes, I just got the impression that this person was trying to create one of their first projects 😄 I may be mistaken though, and you're absolutely right, you need to touch dsp to get a good result here.

                                        My actual first project was a multi engine sampler with effects chains and modulation... It didn't turn out so well so I had to backtrack and start simpler

                                        ChazroxC 1 Reply Last reply Reply Quote 0
                                        • S
                                          StephanS
                                          last edited by

                                          You can use a shape fx as distortion as well and there is also an auto gain implemented already. But be careful it's a little buggy.

                                          1 Reply Last reply Reply Quote 0
                                          • ChazroxC
                                            Chazrox @griffinboy
                                            last edited by Chazrox

                                            @pcs800 I was saying similar things when I first came here. My advice is buckle down and learn a few things. HISE is very non-coder-user-friendly but a little bit of coding can take you a long way. All of the advanced features REQUIRE code. Subscribe to @d-healey 's Patreon and Youtube channel. You'll learn everything you need to get started! It helps so much, I have it programmed into my stream deck. lol.

                                            Screenshot 2025-05-02 at 11.29.17 AM.png

                                            When I first started I programmed all of these script "templates" to my stream deck controller so whenever I needed to "code", I just pressed one of these buttons with pre-saved scripts. These are basic and I can write them all from scratch now but this helped me out big time when I was just starting.

                                            Just sharing my personal noob-journey. lol. Keep going, learn, learn, learn. Good Luck! Happy Hising!

                                            @griffinboy the first plugin im releasing is a 24Channel Drum Machine w/ 9 Samplers and 3 Send FX + Comp/EQ settings for every channel. Ambitious?? AF! lol....I learned very fast that I had jumped in on the deep end but I didnt quit and now its done. Took me 4 months but Thanks to everyones help here on the forum we got there! Mind you, I came here with ZERO coding experience! 😢 <--Me when I first got here. lol

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

                                            16

                                            Online

                                            1.7k

                                            Users

                                            11.9k

                                            Topics

                                            103.2k

                                            Posts