HISE Logo Forum
    • Categories
    • Register
    • Login

    HISE FX and delay compensation

    Scheduled Pinned Locked Moved General Questions
    51 Posts 9 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.
    • A
      aaronventure @Dan Korneff
      last edited by

      @Dan-Korneff can you measure the latency of your modules, put it in consts and make the call to set the new latency to report whenever the user changes any of the controls that affect it?

      Christoph HartC Dan KorneffD 2 Replies Last reply Reply Quote 0
      • Christoph HartC
        Christoph Hart @aaronventure
        last edited by

        I would not trust every host to support dynamic latency so I‘d definitely check this thoroughly.

        1 Reply Last reply Reply Quote 1
        • Dan KorneffD
          Dan Korneff @aaronventure
          last edited by

          @aaronventure said in HISE FX and delay compensation:

          @Dan-Korneff can you measure the latency of your modules, put it in consts and make the call to set the new latency to report whenever the user changes any of the controls that affect it?

          That's definitely plan B. I guess I need to use a global variable to get this data into scriptFX?

          Dan Korneff - Producer / Mixer / Audio Nerd

          A 1 Reply Last reply Reply Quote 0
          • A
            aaronventure @Dan Korneff
            last edited by

            @Dan-Korneff why do you need to get it into script fx in the first place?

            Dan KorneffD 1 Reply Last reply Reply Quote 0
            • Dan KorneffD
              Dan Korneff @aaronventure
              last edited by

              @aaronventure scriptFX is the only place you can access the processBlock to call Engine.setLatencySamples()

              Dan Korneff - Producer / Mixer / Audio Nerd

              Christoph HartC A 2 Replies Last reply Reply Quote 0
              • Christoph HartC
                Christoph Hart @Dan Korneff
                last edited by Christoph Hart

                @Dan-Korneff Why do you need to access processBlock?

                If you need the sample rate / block size for the calculation, attach a broadcaster to the processing specs.

                Dan KorneffD 1 Reply Last reply Reply Quote 0
                • A
                  aaronventure @Dan Korneff
                  last edited by

                  @Dan-Korneff I'm calling it from a control callback where sample offset is adjusted and it works just fine (in Reaper).

                  Dan KorneffD 1 Reply Last reply Reply Quote 0
                  • Dan KorneffD
                    Dan Korneff @Christoph Hart
                    last edited by

                    @Christoph-Hart I was just following your Latency Test repo

                    Screenshot 2025-01-31 082335.png

                    Dan Korneff - Producer / Mixer / Audio Nerd

                    1 Reply Last reply Reply Quote 0
                    • Dan KorneffD
                      Dan Korneff @aaronventure
                      last edited by

                      @aaronventure Damn... Just tested and it works like you said. Happy days!

                      Dan Korneff - Producer / Mixer / Audio Nerd

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

                        @Dan-Korneff ah the example might precede the broadcaster addition, so that‘s kind of outdated as a best practice but if it works…

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

                        31

                        Online

                        1.7k

                        Users

                        11.8k

                        Topics

                        102.8k

                        Posts