HISE Logo Forum
    • Categories
    • Register
    • Login

    Engine.isRendering()

    Scheduled Pinned Locked Moved Feature Requests
    8 Posts 3 Posters 514 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.
    • T
      tomekslesicki
      last edited by

      Having this would be a fantastic addition for all sorts of things. Is that possible, @Christoph-Hart ?

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

        @tomekslesicki what do you expect it to return? There's a watchdog that notifies you when the plugin is bypassed that was added recently (although @Dan-Korneff has a few issues with getting it to work correctly), so maybe you can use this?

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

          I agree. Probably clearer to name it something like TransportHandler.isOfflineRender() as some DAWs let you do a non-offline render.

          This would be great to enable higher quality outputs using oversampling, smaller block sizes, different convolution etc.

          While working, you can have one setup running for lower CPU usage, and when exporting or freezing it can be a whole other thing like more mics in use etc.

          T A 2 Replies Last reply Reply Quote 1
          • T
            tomekslesicki @Christoph Hart
            last edited by

            @Christoph-Hart I'd like it to let the plugin know when the audio is being bounced. This could be used for a multitude of things, like killing audio with demo licenses, oversampling on bounce, enabling all sorts of HQ modes and CPU-heavier processing, disabling some stuff (like Sonarworks speaker callibration for example) etc.

            1 Reply Last reply Reply Quote 0
            • T
              tomekslesicki @aaronventure
              last edited by

              @aaronventure yup, exactly!

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

                @aaronventure Usage would then be

                on transport start
                      if offline render
                           adjust parameters like mic bypass, block size, oversampling
                      else 
                           keep it at default or whatever is set in the settings for realtime
                Christoph HartC 1 Reply Last reply Reply Quote 1
                • Christoph HartC
                  Christoph Hart @aaronventure
                  last edited by Christoph Hart

                  Alright, I've added TransportHandler.isNonRealtime() that you then can query in the transport start / stop callbacks. I initially thought to let it register to the actual event of switching between realtime and non realtime, but this is a bit cleaner actually.

                  I've also refactored the code from Engine.renderAudio() into a base class and added a "DAW Bounce" simulator in the HISE controller popup using the same logic. If you have a MIDI clip in the timeline you can press the export button and it will render the MIDI clip on a background thread in non-realtime, this way you can simulate this behaviour without having to check your compiled plugin.

                  const var transportHandler = Engine.createTransportHandler();
                  
                  inline function onStartStop(isPlaying)
                  {
                  	Console.print(transportHandler.isNonRealtime());
                  }
                  
                  transportHandler.setOnTransportChange(SyncNotification, onStartStop);
                  
                  T 1 Reply Last reply Reply Quote 4
                  • T
                    tomekslesicki @Christoph Hart
                    last edited by

                    @Christoph-Hart fantastic, thank you!

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

                    24

                    Online

                    1.8k

                    Users

                    12.0k

                    Topics

                    104.5k

                    Posts