HISE Logo Forum
    • Categories
    • Register
    • Login

    Smoothing enabled on RAW C++?

    Scheduled Pinned Locked Moved C++ Development
    7 Posts 3 Posters 468 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.
    • hisefiloH
      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

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

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

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

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

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

            Can't help pressing F5 in the forum...

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

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

                  40

                  Online

                  1.7k

                  Users

                  11.7k

                  Topics

                  101.9k

                  Posts