HISE Logo Forum
    • Categories
    • Register
    • Login

    Nasty timing bug I think.....

    Scheduled Pinned Locked Moved Bug Reports
    13 Posts 5 Posters 563 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.
    • LindonL
      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 HartC
        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.

        NatanN LindonL 2 Replies Last reply Reply Quote 0
        • NatanN
          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 HartC
            Christoph Hart
            last edited by

            No, that's unrelated.

            NatanN 1 Reply Last reply Reply Quote 0
            • NatanN
              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
              • LindonL
                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.healeyD 1 Reply Last reply Reply Quote 0
                • d.healeyD
                  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

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

                    @d-healey no.

                    HISE Development for hire.
                    www.channelrobot.com

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

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

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

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

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

                            LindonL 1 Reply Last reply Reply Quote 2
                            • LindonL
                              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

                              24

                              Online

                              1.8k

                              Users

                              12.1k

                              Topics

                              104.9k

                              Posts