HISE Logo Forum
    • Categories
    • Register
    • Login

    INIT-Preset

    Scheduled Pinned Locked Moved General Questions
    10 Posts 5 Posters 726 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.
    • Tod SlaughterT
      Tod Slaughter
      last edited by

      I have used the inbuilt preset manager and I want the plugin version to load the init preset when loaded.
      Is there a way?

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

        Just make sure that you load the init preset before you export the plugin and / or save your instrument with the init preset loaded, it will use these as default values when the plugin is initialised.

        1 Reply Last reply Reply Quote 0
        • Tod SlaughterT
          Tod Slaughter
          last edited by

          thanks 😀

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

            There is a problem with this approach that I haven't been able to solve.

            On my UI I have two buttons to load the previous or next preset. These use the corrosponding functions Engine.loadPreviousUserPreset() etc.

            The problem is since there is no "initial" preset set the previous/next buttons are always starting from no preset. This means the first time the user opens the instruments and clicks previous or next they don't see the correct preset, and if they click the opposite button it doesn't go back to the last preset.

            The only workaround for this is to use the first preset as the initial preset, but we don't always want that to be the case.

            Anyone got a solution?

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

            LindonL ustkU 2 Replies Last reply Reply Quote 0
            • LindonL
              Lindon @d.healey
              last edited by

              @d-healey - nope thats exactly how it works in all my plugins...

              HISE Development for hire.
              www.channelrobot.com

              1 Reply Last reply Reply Quote 1
              • ustkU
                ustk @d.healey
                last edited by

                @d-healey A timer maybe?
                It would be nice to have a method where we could specify the preset to load automatically after the init is done

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

                d.healeyD 2 Replies Last reply Reply Quote 0
                • d.healeyD
                  d.healey @ustk
                  last edited by

                  @ustk said in INIT-Preset:

                  A timer maybe?

                  Maybe this ties nicely with my post init callback. I hadn't thought of that before, but in that callback we could just specify a preset to load.

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

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

                    @ustk You were right, using the timer in on init to load the "default" preset works fine.

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

                    ustkU 1 Reply Last reply Reply Quote 1
                    • ustkU
                      ustk @d.healey
                      last edited by

                      @d-healey Timers are working for a few things like this but honestly, it seems so hacky...

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

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

                        @ustk said in INIT-Preset:

                        it seems so hacky..

                        Definitely, but at least it works :)

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

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

                        29

                        Online

                        1.8k

                        Users

                        12.0k

                        Topics

                        104.1k

                        Posts