Forum

    • Register
    • Login
    • Search
    • Categories

    Smoothing enabled on RAW C++?

    C++ Development
    3
    7
    185
    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.
    • hisefilo
      hisefilo last edited by hisefilo

      Hi guys, it's being a while! I am using the RAW C++ API with huge success. I can tell @Christoph-Hart created an arsenal of classes and tools that makes a non-C++ savvy guy like me, dive into weirdo stuff and don't get frustrated in the journey!

      I got a question I was trying to answer by myself diving into the HISE source for a long time, but can't figure out.

      For some reason (a smoother I cannot find I guess), HISE compiled on the C++ API way smoothes audio signal. and same signal compiled the regular ways, does not. See picts.

      Is there any way to deactivate smoothing on the RAW API?

      Screen Shot 2021-10-14 at 1.34.08 PM.png

      hisefilo 1 Reply Last reply Reply Quote 4
      • hisefilo
        hisefilo @hisefilo last edited by

        @hisefilo looks like a tailing but in attack. Any clue @Christoph-Hart ?

        hisefilo 1 Reply Last reply Reply Quote 0
        • hisefilo
          hisefilo @hisefilo last edited by

          @hisefilo figured out! Don't know why but you cannot pass attack values lower than 5ms on SimpleEnvelope nor AHDSR.... Fixed that changing default values instead of passing the attributes.

          ustk 1 Reply Last reply Reply Quote 2
          • ustk
            ustk @hisefilo last edited by

            @hisefilo Cool! Do you make a pull request for this?

            I can't help pressing F5 in the forum...

            hisefilo 1 Reply Last reply Reply Quote 0
            • hisefilo
              hisefilo @ustk last edited by

              @ustk not really. It's a workaround I think. The modulator is not listening any value under default values. I guess a proper solution is needed

              1 Reply Last reply Reply Quote 1
              • Christoph Hart
                Christoph Hart last edited by

                Are you sure that there's no error in your code? There's absolutely nothing in the envelope's code that could enforce a threshold of 5 ms. Have you stepped through in the debugger? I would put a breakpoint in one of the envelope's setInternalAttribute() method, check the value that is passed in if you call it with a lower value and check the stack trace where it is changed.

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

                  @Christoph-Hart still trying to find where it happens. I replaced many parts of the source code so... Maybe I mistaked somewhere. Will report later

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

                  5
                  Online

                  1.2k
                  Users

                  7.0k
                  Topics

                  64.8k
                  Posts