Forum

    • Register
    • Login
    • Search
    • Categories

    Nasty timing bug I think.....

    Bug Reports
    5
    13
    160
    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.
    • Lindon
      Lindon last edited by Lindon

      OK so for a couple of my plug-ins they are not setting back-end modulators to their correct values - on LOAD.....not on compile, or preset changing thats all fine...

      So what seems to be happening is the plug or HISE are still loading and setting up the modulators whilst the init call back is executing, and thus when init finishes - one of the control call backs - that sets a modulator value (like say intensity) isnt getting acknowledged and executed correctly....

      ..any one else seen this?

      I have an (ugly) work around that calls a timer in the init, which executes just once and sets the modulator value correctly.. this works fine - with say a time of 500 ms..

      So I'm asking that HISE NOT call the init processing until all the back-end elements are correctly in place.

      Actually spoke too soon - the work around works in HISE but not in the compiled plug-in....

      HISE Development for hire.
      www.channelrobot.com

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

        But the onInit callback (and actually every script compilation is already deferred until the module tree has been loaded (otherwise you could not get references to any module at all). There must be something else wrong here.

        Also don‘t do stuff like this with a deferred timer - if the host does not open the plugin interface it will not be executed.

        Natan Lindon 2 Replies Last reply Reply Quote 0
        • Natan
          Natan @Christoph Hart last edited by

          @Christoph-Hart said in Nasty timing bug I think.....:

          Also don‘t do stuff like this with a deferred timer - if the host does not open the plugin interface it will not be executed.

          Christoph, Do you mean Deffercallbacks can affect The macro modulators?

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

            No, that's unrelated.

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

              @Christoph-Hart dont want to Hijack the thread
              But is this normal That Macro modulators Makes the Ui A Little laggy?
              In a All Svg Project?

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

                @Christoph-Hart - OK so I have no idea what is going on then.

                I load the project in HISE - and (without this "hack") the modulator does not get set by its (preset enabled) slider.... I "touch" the slider and it is set correctly, I load a preset and the modulator is set correctly...

                What do you suggest I do now?

                HISE Development for hire.
                www.channelrobot.com

                d.healey 1 Reply Last reply Reply Quote 0
                • d.healey
                  d.healey @Lindon last edited by

                  @Lindon said in Nasty timing bug I think.....:

                  What do you suggest I do now?

                  Can you recreate the issue in a minimal snippet?

                  Libre Wave - Freedom respecting instruments and effects
                  My Patreon - HISE tutorials
                  YouTube Channel - Public HISE tutorials

                  Lindon 1 Reply Last reply Reply Quote 0
                  • Lindon
                    Lindon @d.healey last edited by

                    @d-healey no.

                    HISE Development for hire.
                    www.channelrobot.com

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

                      @Lindon -- hmm., very odd the modulator I am using is a Sample Start Constant

                      its named the default "Constant1", but it might be fixed by naming it something else...seems ot fix it in HISE - checking in the compiled version...

                      HISE Development for hire.
                      www.channelrobot.com

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

                        @Lindon - damn it nope....its fixed in hiSE but failing in the compiled plugin....grrrr......

                        HISE Development for hire.
                        www.channelrobot.com

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

                          @Lindon -- fixed it I think. renaming the constant seems to help...very very odd.

                          HISE Development for hire.
                          www.channelrobot.com

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

                            @Lindon That is (unfortunately) not the first time names are causing issues. The parser might take them as code or something...
                            In the same fashion, never use the word "system" in any name. Or at least not in project names or you'll have some surprises too...

                            I cannot help pressing F5 in the forum...
                            Studio427 Audio - Audio Instruments & FX Plugins for music production. Website - Facebook

                            Lindon 1 Reply Last reply Reply Quote 3
                            • Lindon
                              Lindon @ustk last edited by

                              @ustk - noted thanks.

                              HISE Development for hire.
                              www.channelrobot.com

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

                              12
                              Online

                              977
                              Users

                              6.6k
                              Topics

                              60.5k
                              Posts