HISE Logo Forum
    • Categories
    • Register
    • Login

    Searching across all expansions

    Scheduled Pinned Locked Moved General Questions
    preset browsersearchexpansions
    9 Posts 4 Posters 385 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.
    • R
      rzrsharpeprod
      last edited by

      Hi all,

      I am presuming this isn't possible but I am asking just in case as it would be a nice feature for the end users to have.
      Is it possible to get the search function in the preset browser to search across all of the currently installed expansions rather than just the currently selected one?

      For example, If I had 5 expansions installed and each of them had some bell presets in. Can I make it so that I can type the word 'Bell' into the search box and it show all presets with the word 'Bell' in them across those 5 expansions rather than just the presets with the word 'Bell' in the currently selected expansion?

      Thanks in advance

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

        @rzrsharpeprod You'd need to modify the HISE source code for this

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

        LindonL R 3 Replies Last reply Reply Quote 1
        • LindonL
          Lindon @d.healey
          last edited by

          @d-healey said in Searching across all expansions:

          @rzrsharpeprod You'd need to modify the HISE source code for this

          or build(or buy) a preset tagging library

          HISE Development for hire.
          www.channelrobot.com

          1 Reply Last reply Reply Quote 1
          • M
            mehmethand @rzrsharpeprod
            last edited by mehmethand

            @rzrsharpeprod

            const var exh= Engine.createExpansionHandler();
            var presetList=[];
            
            var expList= exh.getExpansionList();
            
            
            
            for (e in Engine.getUserPresetList()) presetList.push(e);
            
            for (i=0;i<expList.length;i++)
            {
             for (e in expList[i].getUserPresetList()) presetList.push(e);
            }
            
            Console.print(trace(presetList));
            
            

            I'm not in front of the computer but this should work.

            R 3 Replies Last reply Reply Quote 0
            • R
              rzrsharpeprod @d.healey
              last edited by

              @d-healey I thought that might be the case. I'll try the solution above first to see if can do it without the need to modify the source code

              1 Reply Last reply Reply Quote 0
              • R
                rzrsharpeprod @d.healey
                last edited by

                @d-healey said in Searching across all expansions:

                @rzrsharpeprod You'd need to modify the HISE source code for this

                That sounds like fun...!!

                1 Reply Last reply Reply Quote 0
                • R
                  rzrsharpeprod @mehmethand
                  last edited by

                  @mehmethand Thankyou, I will give this a go at the weekend and see how I get on

                  1 Reply Last reply Reply Quote 0
                  • R
                    rzrsharpeprod @mehmethand
                    last edited by

                    @mehmethand sorry for the long delay in reply. Can this then be used in the search bar in the preset browser? If so I can't figure out how you would go about doing that

                    1 Reply Last reply Reply Quote 0
                    • R
                      rzrsharpeprod @mehmethand
                      last edited by

                      @mehmethand said in Searching across all expansions:

                      @rzrsharpeprod

                      const var exh= Engine.createExpansionHandler();
                      var presetList=[];
                      
                      var expList= exh.getExpansionList();
                      
                      
                      
                      for (e in Engine.getUserPresetList()) presetList.push(e);
                      
                      for (i=0;i<expList.length;i++)
                      {
                       for (e in expList[i].getUserPresetList()) presetList.push(e);
                      }
                      
                      Console.print(trace(presetList));
                      
                      

                      I'm not in front of the computer but this should work.
                      @mehmethand
                      Your code did work. I have now populated a viewport with the list of all presets across all expansions. I can also type into a 'search box' which is actually a label and then the matching results are shown which is a good start.
                      I am struggling to figure out how to link further code to it so that I can load the relevant preset when one of the results is clicked. Do you know if this is possible?
                      Thanks in advance

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

                      42

                      Online

                      1.8k

                      Users

                      12.2k

                      Topics

                      106.4k

                      Posts