Forum

    • Register
    • Login
    • Search
    • Categories

    INIT-Preset

    General Questions
    5
    10
    345
    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 Slaughter
      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 Hart
        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 Slaughter
          Tod Slaughter last edited by

          thanks 😀

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

            Lindon ustk 2 Replies Last reply Reply Quote 0
            • Lindon
              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
              • ustk
                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

                Tired to press F5 in the forum...
                Studio427 Audio - Audio Instruments & FX Plugins for music production. Website - Facebook

                d.healey 2 Replies Last reply Reply Quote 0
                • d.healey
                  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.healey
                    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

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

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

                      Tired to press F5 in the forum...
                      Studio427 Audio - Audio Instruments & FX Plugins for music production. Website - Facebook

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

                        14
                        Online

                        795
                        Users

                        5.5k
                        Topics

                        51.6k
                        Posts