HISE Logo Forum
    • Categories
    • Register
    • Login

    Preset browser and expansions again...

    Scheduled Pinned Locked Moved General Questions
    preset browserexpanions
    4 Posts 2 Posters 398 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

      I have another strange question about expansions and the preset browser.
      For my project a separate banks page is required which then loads the selected expansion & UI when clicked on and hides the banks page.
      @d-healey helped me with this quite a bit and I now have it working and loading the expansion.

      The problem I have is that I don't need the expansions column in the standard preset browser as it's superseded by the banks page. I just need the last column showing the presets for the chosen expansion.

      My first thought was just to set showExpansionColumn to false in the preset browser settings, but then the presets don't show up when the expansion is loaded from the banks page via setCurrentExpansion.
      To get around this I set showExpansionColumn to true and made it 0.01 width with the last column being 0.99 so that it is there but can't be seen.
      This works nicely and allows the presets to show in the final column. They can then be clicked and selected as expected which loads the presets as expected.

      The problem with this solution is that it turns out that it breaks the search and favourites feature!! I changed the widths of the 2 columns to 0.4 and 0.6 for example so that I could see the expansions column to do some testing.
      If I click on the expansion first and then the preset the search and favourites works as expected. But obviously I don't want the expansions column to be there in the real project as the whole point is to choose the expansions via the banks page.

      I presume that clicking the expansions column in the preset browser does more than just

      expHandler.setCurrentExpansion();
      

      does as that is what I am calling to load the expansions but it's not the same behaviour as clicking the expansions column.

      Is there something else I can call/need to call in order to have the same post click action as clicking on the expansion column to load the expansion? Or is there another/better way entirely?

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

        @rzrsharpeprod said in Preset browser and expansions again...:

        but then the presets don't show up when the expansion is loaded

        Hmm that's strange. Maybe there's a bug there that can be fixed.

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

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

          @d-healey Yeah it's a bit odd. I'll build a minimal example later when I'm home and post a snippet.

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

            Fixed the presets not showing up unless the expansion column is visible

            Link Preview Image
            Show expansion presets, regardless of expansion column visibility by davidhealey · Pull Request #772 · christophhart/HISE

            Forum thread: https://forum.hise.audio/topic/13373/preset-browser-and-expansions-again

            favicon

            GitHub (github.com)

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

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

            10

            Online

            1.9k

            Users

            12.4k

            Topics

            108.3k

            Posts