HISE Logo Forum
    • Categories
    • Register
    • Login

    load module state before component values?

    Scheduled Pinned Locked Moved Scripting
    7 Posts 2 Posters 158 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.
    • ulrikU
      ulrik
      last edited by ulrik

      Is it possible to load ModuleState, achieved using the

      UserPresetHandler.createObjectForSaveInPresetComponents();
      

      before triggering all components callback?

      When loading a preset.

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

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

        @ulrik I don't think so, but why don't you save the module state in the preset?

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

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

          @d-healey said in load module state before component values?:

          @ulrik I don't think so, but why don't you save the module state in the preset?

          But I do save the module state in the preset, but when loading a preset I need to read, and set the state of the modules, before the component callbacks triggers

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

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

            @ulrik Are you using Engine.addModuleStateToUserPreset()? Perhaps it's something that can be handled in the preCallback

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

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

              @d-healey said in load module state before component values?:

              @ulrik Are you using Engine.addModuleStateToUserPreset()? Perhaps it's something that can be handled in the preCallback

              Yes that's exactly what I'm using 👍
              Could you give an example how to achieve this with the preCallback?

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

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

                @ulrik

                Could you give an example how to achieve this with the preCallback?

                No because I don't think it's possible, but just the only option I can think for you to explore.

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

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

                  @d-healey haha, ok

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

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

                  55

                  Online

                  1.7k

                  Users

                  11.7k

                  Topics

                  102.1k

                  Posts