HISE Logo Forum
    • Categories
    • Register
    • Login

    Preset load

    Scheduled Pinned Locked Moved General Questions
    25 Posts 5 Posters 1.1k 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.
    • d.healeyD
      d.healey
      last edited by

      Why don't you want to use the built in preset browser?

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

      Y trillbillyT 2 Replies Last reply Reply Quote 0
      • Y
        yall @d.healey
        last edited by

        @d-healey in fact I would like to replace the browser preset with a combobox. the preset browser is a bit big and a simple list of a few presets would suffice. It would be an fx plugin which would have for example 10 presets. a combobox list would be discreet and also effective. the preset browser obliges me to create a dedicated panel and I really want something simplistic :)

        1 Reply Last reply Reply Quote 0
        • Y
          yall @trillbilly
          last edited by yall

          @trillbilly only preset because i have not sample.
          When inuse a Sampler, i use the preset browser for load expansion, preset.....

          LindonL 1 Reply Last reply Reply Quote 0
          • LindonL
            Lindon @yall
            last edited by

            @yall - look in the documentation and you will find:

            Link Preview Image
            HISE | Docs

            favicon

            (docs.hise.audio)

            This gives you a list of all presets, now put those in a combo box...

            on combobox click you need :

            Link Preview Image
            HISE | Docs

            favicon

            (docs.hise.audio)

            HISE Development for hire.
            www.channelrobot.com

            Y 1 Reply Last reply Reply Quote 0
            • Y
              yall @Lindon
              last edited by

              @lindon I had seen it but I don't know where to start. I have but the getuserpresetlist in the combobox callback. but I know deep down that it's not that simple ^^

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

                @yall The callback is the function that is triggered when you open the combobox. To set the items in the combo box you need to use the .set() function.

                So to assign the values 1, 2, 3, 4 to a combobox list you could put them in an array and use the join command to convert that array to a string.

                ComboBox.set("items", [1, 2, 3, 4].join("\n"));

                In your case you need to use the getUserPresetList function to get an array of preset names.

                const presetNames = Engine.getUserPresetList();
                ComboBox.set("items", presetNames.join("\n"));
                

                You might find this video helpful in general

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

                Y 1 Reply Last reply Reply Quote 0
                • Y
                  yall @d.healey
                  last edited by

                  @d-healey Thank u i will try :)

                  Y 1 Reply Last reply Reply Quote 0
                  • Y
                    yall @yall
                    last edited by

                    @d-healey i think i don't understand something. i wrote my preset names in my combobox but i can't load them

                    HiseSnippet 1087.3ocsVsraabCEkT1zoRs0IAne.CzJE.UCI+HonAAwQ1REBI1QMxIs.AAATyPIQ3YHEFRYagB+OzektqK6WPW10cW21cco68RNRZTrpch.JWLCtO4g2WjcR0gBiQmRnEOYxHAg9ErtST1gGLjKUj1GRnaxNharhz.OqFSFwMFQDgRW66PFzhqSbq+9oM3wbUnXNKB4MZYn3ExDocN2N6+bYbbKdj3DYRNs2c+1gZ0A5X8X.OqwpQFwCOkOPbLGUq.iP2nYjzpS6Z4VggPWugNZR2g5yUd8eizH6EKPh5jtfi7raoiiPDibIGLTFG0Y541P.uzYdTXMeT3qXGIijy3OOZbOmff4VjOdPKrH7VaA3U++BdKARzbPZcOjtOqaXpbjctDDOeNqsBRN84PXOOT75RJbEkcfFzPY2JgepnUJPLyhJOrVspAvmG73RkfPuwFbFGRz5jd5F5KBdRvTaGHr.2QZEPTo7TEJO2tQoBivhIJCXVS0.oRfV8ZiHsiS1KjFaEz.XIUwf7f9iUgVoVEfYcuKwMLUGWIb5tUEfT7XwCJ8SkBv0TEWhyKKshDS4pAuEh915UCvea6+si+2t9e68N.HWBX41NeaYPANHc.ONtGTOV4ZfE7UtSxwZq3kpJHfKV5xRAenn98WprLeEKRWpXrSI8lLrhZbROQZtvkSQn7YwZxM93pIC8AlbJpUsUR6KGIxnu4lJRVjEqkyPHnp0UIuYVkb2XYjHkHAmbG1yU5d0INvmMQ3O+9e82eJ40sOja4ScC3QXWFIRsR7vPOTbFLew2fTjcnvbpUOB1nYISnCwl0Q62zVwZtUpFbhDNz3VeWVdV0IWje70j7SmNWFYGRnL5ePIjgB4fgVjZS5rSqGH2k4KJajpOGpPI8FLclVwM.G8On2vR04b+kq94qVj61YJ6VtHPg.JC6AJi4jt7yDMFasZU4uMvlNVTcpjlWLhqLPog4YFvUiSPM5yiMyUwk4RWt4XIp4Z9Dpf7peMQs3moSAXiStyK63wI9cGsntikm9Gvf3qf3sFD7VWOcss14CVU+D4CreWoKwzvrz952Zs1EXx6u7IYFMlRVv963s+dY1Osk24gRrYj4pVNd+4UK+146mvca.CnLP1psxWTfCmcyoHz.laNUI2XJ22cbe208cuRvMkW6V.39Gcz3XtcwKkvahyD.o9EtI.m1CED1I4uo9S3lpZ23MUerP79rNRa3vkiwBKAiPG++GXL698uj0reeQncN.Wm05GW0Kyuks+U5w33ki31TIVS.8FcgV7PAr6JkH1f0IEvxOOcMjFi.cEpHGwUvJSXcjllIr9TgjDdXp98g9Is3KH9LGG.SJ2imJBuhCnClMhkwpsUMRB7Xl2GFhG+uFFiuba1dErYmUvlcWAa1aEr4gqfMOZEr4atQav2Q9rwVchuc.XzooaPOk1TwgJKWUH4eAs85LGB
                    
                    d.healeyD 1 Reply Last reply Reply Quote 0
                    • d.healeyD
                      d.healey @yall
                      last edited by

                      @yall said in Preset load:

                      i think i don't understand something.

                      I agree :) Did you watch the video?

                      You should read the documentation of the functions you are trying to use. getUserPresetList() doesn't take any parameters, and it returns a list (array).

                      856b4f05-45bb-46cc-95ca-c5954e7ffaa5-image.png

                      In my last post I gave you the code that you should use to set the values in your combo box and you haven't used it in your snippet.

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

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

                        @d-healey speaking of the Preset Browser, can you turn off the border within the Tile? I have tried turning all of the colors within the Tile to "opaque" (except for text) yet the border always remains.

                        I can get the search bar to "disapear" with this hack but not rhe actual border that surrounds your Preset list.

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

                          @trillbilly said in Preset load:

                          can you turn off the border within the Tile

                          You can customise it extensively using Look And Feel

                          585008a8-9a11-4121-8567-6552d3c5afa2-image.png

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

                          DabDabD 1 Reply Last reply Reply Quote 0
                          • DabDabD
                            DabDab @d.healey
                            last edited by

                            @d-healey How can I remove Remove and Rename Button?

                            Bollywood Music Producer and Trance Producer.

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

                              @dabdab C++ or make them invisible with LAF and place an invisible control over the top so they can't be clicked.

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

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

                                @dabdab I'm adding some functions to the preset browser to reposition the controls. I'll try and add options for hiding those buttons too.

                                aae3d3e8-5e97-456d-84ae-c983b9dff82d-image.png

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

                                Y 1 Reply Last reply Reply Quote 2
                                • Y
                                  yall @d.healey
                                  last edited by

                                  @d-healey to hide the buttons I used an unstoppable system :) I put an image of the same color on it. and There you go :)
                                  don't thank me for this tip. that makes me happy 😂

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

                                    @DabDab

                                    Done :) I have some more things I want to try then I'll push this to my fork and make a pull request.

                                    401c3d2b-8261-448d-b2ba-19c214bec131-image.png

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

                                    1 Reply Last reply Reply Quote 3
                                    • DabDabD
                                      DabDab @d.healey
                                      last edited by DabDab

                                      @d-healey Yup.. I know How to disable any button in C++ addAndmakevisable and setVisible are the mastermind behind it.

                                      I wanted something from HISE. That you have achieved later. Proud to you man. (y)
                                      But only problem I am using my modified HISE version. Your new updated HISE will have to install on another PC.

                                      Bollywood Music Producer and Trance Producer.

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

                                        @dabdab Why not pull my changes into your modified version with git?

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

                                        DabDabD 1 Reply Last reply Reply Quote 0
                                        • DabDabD
                                          DabDab @d.healey
                                          last edited by

                                          @d-healey Is it possible? I mean will it work fine with the latest HISE? I modified the old HISE ScriptNode and Master Branch...

                                          Bollywood Music Producer and Trance Producer.

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

                                            @dabdab said in Preset load:

                                            will it work fine with the latest HISE

                                            I continually pull the develop branch into my fork, so I don't know what conflicts this will have with your fork, you'll have to try it and see.

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

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

                                            25

                                            Online

                                            1.7k

                                            Users

                                            11.8k

                                            Topics

                                            103.0k

                                            Posts