HISE Logo Forum
    • Categories
    • Register
    • Login

    [bug] .changed() not working

    Scheduled Pinned Locked Moved Bug Reports
    11 Posts 7 Posters 574 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 Former User @d.healey
      last edited by

      @d-healey it works if you call it from another function (like a button)

      d.healeyD 1 Reply Last reply Reply Quote 1
      • d.healeyD
        d.healey @A Former User
        last edited by

        @iamlamprey Yeah I tested that too ๐Ÿ˜ƒ

        Free HISE Bootcamp Full Course for beginners.
        YouTube Channel - Public HISE tutorials
        My Patreon - HISE tutorials

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

          @d-healey confirmed in develop branch
          b41b58f12ecca927c1fe8f12610dd993fa00db28

          Hise Develop branch
          MacOs 15.3.1, Xcode 16.2
          http://musikboden.se

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

            Could this possibly be affecting my automation issue?

            https://forum.hise.audio/topic/8695/ismetaparameter-automation-help

            Dan Korneff - Producer / Mixer / Audio Nerd

            d.healeyD 1 Reply Last reply Reply Quote 0
            • d.healeyD
              d.healey @Dan Korneff
              last edited by

              @Dan-Korneff I don't think so because that works in HISE, but the problem here doesn't.

              Free HISE Bootcamp Full Course for beginners.
              YouTube Channel - Public HISE tutorials
              My Patreon - HISE tutorials

              Christoph HartC 1 Reply Last reply Reply Quote 0
              • Christoph HartC
                Christoph Hart @d.healey
                last edited by

                @d-healey The problem is that calling changed() in the onInit callback doesn't fire the callback. I took a look at the code and it explicitely cancels the execution:

                https://github.com/christophhart/HISE/blob/d3f364f5c2832770a8bade634607e0f70b55f9df/hi_scripting/scripting/api/ScriptingApiContent.cpp#L944

                I don't remember exactly why I did this (passive aggressive note to past me: a comment would have been helpful...), but I'm sure there are a few edge case problems that arise from this (eg. it will fire a bit later anyways because of the user preset load).

                I've added a warning message that tells you that this function will not do anything, so now you're at least not left in the dark with that problem.

                C 1 Reply Last reply Reply Quote 2
                • C
                  clevername27 @Christoph Hart
                  last edited by

                  @Christoph-Hart Thank you for your response. What if I call the callback explicitly?

                  LindonL Christoph HartC 2 Replies Last reply Reply Quote 0
                  • LindonL
                    Lindon @clevername27
                    last edited by Lindon

                    @clevername27 said in [bug] .changed() not working:

                    @Christoph-Hart Thank you for your response. What if I call the callback explicitly?

                    I just use a one-off timer...

                    HISE Development for hire.
                    www.channelrobot.com

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

                      @clevername27 if you mean calling the function directly then it will work (like any other function as long as its defined before the call), itโ€˜s just the connection value change -> callback that is disabled during onInit.

                      C 1 Reply Last reply Reply Quote 1
                      • C
                        clevername27 @Christoph Hart
                        last edited by

                        @Christoph-Hart Thank you,

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

                        19

                        Online

                        2.0k

                        Users

                        12.7k

                        Topics

                        110.2k

                        Posts