HISE Logo Forum
    • Categories
    • Register
    • Login

    Audio stops when Envelope Decay reaches -61 dBFs – Bug or setting?

    Scheduled Pinned Locked Moved Bug Reports
    18 Posts 4 Posters 758 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.
    • FrankbeatF
      Frankbeat @Dan Korneff
      last edited by

      @Dan-Korneff Okay. But thanks anyway, mate!

      Using HISE from the develop branch (Feb '23)

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

        @Frankbeat that‘s the line you need to change:

        Link Preview Image
        HISE/hi_dsp_library/dsp_nodes/EnvelopeNodes.cpp at d3f364f5c2832770a8bade634607e0f70b55f9df · christophhart/HISE

        The open source framework for sample based instruments - HISE/hi_dsp_library/dsp_nodes/EnvelopeNodes.cpp at d3f364f5c2832770a8bade634607e0f70b55f9df · christophhart/HISE

        favicon

        GitHub (github.com)

        FrankbeatF 1 Reply Last reply Reply Quote 1
        • FrankbeatF
          Frankbeat @Christoph Hart
          last edited by

          @Christoph-Hart Do I have to set that to zero like

          if (state->current_value == 0.000f)
          

          ?

          Using HISE from the develop branch (Feb '23)

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

            @Frankbeat no zero will cause the envelope to run indefinitely. Try something in between :)

            0.001 means -60dB, 0.0005 is -66db 0.00025 is -72 dB etc y

            FrankbeatF 1 Reply Last reply Reply Quote 1
            • FrankbeatF
              Frankbeat @Christoph Hart
              last edited by

              @Christoph-Hart Alright, thank you very much!

              Using HISE from the develop branch (Feb '23)

              1 Reply Last reply Reply Quote 0
              • FrankbeatF
                Frankbeat
                last edited by

                Veery nice! Now I have a smooth logarithmic decay stopping at about -100dB.

                And it was a charme to see how easy HISE can be recompiled. Never thought, I would do such things :beaming_face_with_smiling_eyes:

                Using HISE from the develop branch (Feb '23)

                Christoph HartC 1 Reply Last reply Reply Quote 3
                • Christoph HartC
                  Christoph Hart @Frankbeat
                  last edited by

                  @Frankbeat welcome in the world of the real software developers, all that pain that you had to go through for setup your HISE environment finally pays off :)

                  A 1 Reply Last reply Reply Quote 2
                  • A
                    aaronventure @Christoph Hart
                    last edited by

                    @Christoph-Hart since you're handing out welcomes to the big boys' club, can you tell me what your workspace looks like?

                    How are you working on this thing? Anything out of the ordinary? What do code iterations look like? Are you closing and re-launching the app all the time?

                    My "big boy" development experience is limited to Unreal and its way of doing C++, where it mostly hot reloading so you can, most of the time, write live code.

                    Do you have something like that set up for HISE? Is there something JUCE-specific in the workflow?

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

                      @aaronventure No, I'm doing most of the work with a standard edit & recompile cycle in VS2022+Resharper but I find that to be not too annoying - the debug build takes 10-15 seconds to recompile if I'm working on a code piece that doesn't require recompiling all modules and there are a few convenient helpers to live-edit constant values & colours (the JUCE_LIVE_CONSTANT() stuff). I actually found the delay between writing code and seeing the result quite useful - it forces you to think a bit more about the code you're about to write.

                      If I'm starting out with new features from scratch (eg. the ML stuff), I usually do it in a small isolated app that compiles faster than HISE and then when it's somewhat ready I move it into the big codebase.

                      1 Reply Last reply Reply Quote 1
                      • A
                        aaronventure
                        last edited by

                        Today's

                        65fb14f - - added HISE_SILENCE_THRESHOLD_DB preprocessor for changing the silence detection threshold for envelope decay values etc.
                        

                        seems to be about addressing this.

                        /** This can be used to change the threshold of what is considered "silence" in HISE.
                        
                            This value is used at different places to figure out whether to stop smoothing, stop a decaying envelope curve, etc.
                         
                            It tries to use a sensible default here, but you can override this (as a positive value, it will calculate the gain factor by taking the
                            number as negative dB value and convert it to a gain factor).
                        */
                        #ifndef HISE_SILENCE_THRESHOLD_DB
                        #define HISE_SILENCE_THRESHOLD_DB 60
                        #endif
                        
                        1 Reply Last reply Reply Quote 0
                        • First post
                          Last post

                        47

                        Online

                        1.7k

                        Users

                        11.7k

                        Topics

                        101.8k

                        Posts