HISE Logo Forum
    • Categories
    • Register
    • Login

    Custom User Preset Browser

    Scheduled Pinned Locked Moved Blog Entries
    10 Posts 6 Posters 2.8k 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.
    • Christoph HartC
      Christoph Hart
      last edited by

      Hi everybody,

      once in a while there is the request for more customization of the inbuilt preset browser. While I am open to add a few more options, it quickly crosses a line where it tries to become a swiss army knife and bloats the functionality.

      So I went ahead and created another option of handling user presets, which is far more lightweight and customisable: You can get a list of all existing user presets with the new scripting call Engine.getUserPresetList(). This returns an array of all available user presets as relative path (without the file extension). This can be used for any kind of displaying (although the most recommended way would be to throw them at a viewport list).

      Then you can use the new scripting function Engine.loadUserPreset() which takes one of the strings from the array and loads the user preset.

      Feel free to check out the example project I've uploaded to the tutorial repository:

      Link Preview Image
      hise_tutorial/CustomUserPreset at master · christophhart/hise_tutorial

      The Tutorial project for HISE. Contribute to christophhart/hise_tutorial development by creating an account on GitHub.

      favicon

      GitHub (github.com)

      It contains one knob and a few presets that just move the knob. Then you have a Viewport which shows the preset names and if you click on it, the preset is loaded and the knob moves to the respective position.

      Whenever you just need to select a few prebuilt factory presets, this approach might be more practical as you can customise the appearance / logic of the preset system better.

      jadgJ 1 Reply Last reply Reply Quote 4
      • jadgJ
        jadg @Christoph Hart
        last edited by

        @christoph-hart
        It`s really a good new...
        Thanks

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

          This looks very useful Christoph. Presumably we can use the save preset function with this too.

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

          1 Reply Last reply Reply Quote 0
          • resonantR
            resonant
            last edited by

            Thank you so much, it is so useful...

            1 Reply Last reply Reply Quote 0
            • staiffS
              staiff
              last edited by

              Hello !
              "Interface:! onControl could not be parsed!" when loading backup.xml in 1.5.0

              so: no interface, no OnInit infos. OnControl empty.

              can't test...

              Excuse me i'm French.

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

                @staiff You need to build the latest version of HISE from source to use this new feature

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

                staiffS 1 Reply Last reply Reply Quote 0
                • staiffS
                  staiff @d.healey
                  last edited by

                  @d-healey Hello David.

                  this is not aversion problem, because tested in 1.50 and latest (1.5.1 downloaded today).
                  but i fixed it by copying the Interface.js (from scripts/...processor/Preset) and paste it in the OnInit.

                  So: not Fan today.

                  As Christoph wrote = must be customized. But at this time i prefer the "classsic" presetmanager by external .js

                  I think mixing the 2 presets systems together could do a interesting thing ... will test it.

                  Excuse me i'm French.

                  1 Reply Last reply Reply Quote 1
                  • staiffS
                    staiff
                    last edited by staiff

                    better fixed it !!!!
                    you're right David.

                    1 - open the example project (load project) before all and after that( because of no preset) : load backup xml.
                    2 - of course doing it with the latest/newest version of hise.

                    3 (most important) - Listen and read David Healey posts/threads ... the most important thing!:D

                    Excuse me i'm French.

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

                      @d-healey and @Christoph-Hart are kings!

                      Dan Korneff - Producer / Mixer / Audio Nerd

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

                        Is there a way to retrieve the full name of the loaded preset including the category and bank? Or is there a way to get the index of the currently loaded preset to be used with the getUserPresetList array?

                        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

                        44

                        Online

                        1.7k

                        Users

                        11.7k

                        Topics

                        101.8k

                        Posts