Forum
    • Categories
    • Register
    • Login

    Expansions / Combo Box + SampleMaps

    Scheduled Pinned Locked Moved General Questions
    109 Posts 4 Posters 6.5k 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.
    • David HealeyD
      David Healey
      last edited by

      sampleMaps = Sampler.getSampleMapList();

      Doesn't that work?

      Free HISE Bootcamp Full Course for beginners.
      YouTube Channel - Public HISE tutorials
      My Patreon - HISE tutorials

      DanHD 1 Reply Last reply Reply Quote 0
      • DanHD
        DanH @David Healey
        last edited by

        @d-healey yes, huge thanks!

        DHPlugins / DC Breaks | Artist / Producer / DJ / Developer
        https://dhplugins.com/ | https://dcbreaks.com/
        London, UK

        David HealeyD 1 Reply Last reply Reply Quote 0
        • David HealeyD
          David Healey @DanH
          last edited by

          @DanH said in Expansions / Combo Box + SampleMaps:

          @d-healey yes, huge thanks!

          I just copied it from your earlier post :)

          Free HISE Bootcamp Full Course for beginners.
          YouTube Channel - Public HISE tutorials
          My Patreon - HISE tutorials

          DanHD 1 Reply Last reply Reply Quote 1
          • DanHD
            DanH @David Healey
            last edited by

            @d-healey still working this morning which is a relief 😆

            Back to the wrapper. I don't know where to begin doing this. Are there any examples?

            DHPlugins / DC Breaks | Artist / Producer / DJ / Developer
            https://dhplugins.com/ | https://dcbreaks.com/
            London, UK

            David HealeyD 1 Reply Last reply Reply Quote 0
            • David HealeyD
              David Healey @DanH
              last edited by

              @DanH Yes, the scripting api in the source code is mainly a collection of wrappers. Also I did a video about about it, tinkering in c++ or something like that.

              Free HISE Bootcamp Full Course for beginners.
              YouTube Channel - Public HISE tutorials
              My Patreon - HISE tutorials

              DanHD 1 Reply Last reply Reply Quote 0
              • DanHD
                DanH @David Healey
                last edited by

                @d-healey Thanks David. Going the route shown in the video, I want to add the function to ScriptingApiObjects.h first. There's no obvious section for the preset browser to stick it into, it's mostly effects, modulators, tables etc.

                Can I put it anywhere?!

                DHPlugins / DC Breaks | Artist / Producer / DJ / Developer
                https://dhplugins.com/ | https://dcbreaks.com/
                London, UK

                David HealeyD 1 Reply Last reply Reply Quote 0
                • David HealeyD
                  David Healey @DanH
                  last edited by

                  @DanH Catch me up again so I don't have to re-read the thread. What are you trying to do and why?

                  Free HISE Bootcamp Full Course for beginners.
                  YouTube Channel - Public HISE tutorials
                  My Patreon - HISE tutorials

                  DanHD 1 Reply Last reply Reply Quote 0
                  • DanHD
                    DanH @David Healey
                    last edited by

                    @d-healey no probs. I'm trying to make the Preset Browser display (rebuild?) the 'factory' user preset list when switching back from an expansion (using a combo box).

                    You suggested adding this function from PresetBrowser.cpp into a wrapper.

                    void PresetBrowser::rebuildAllPresets()
                    

                    DHPlugins / DC Breaks | Artist / Producer / DJ / Developer
                    https://dhplugins.com/ | https://dcbreaks.com/
                    London, UK

                    1 Reply Last reply Reply Quote 0
                    • David HealeyD
                      David Healey
                      last edited by

                      I thought you already had the solution for this. Enable the expansion column and give it a width of 0 to hide it?

                      Free HISE Bootcamp Full Course for beginners.
                      YouTube Channel - Public HISE tutorials
                      My Patreon - HISE tutorials

                      DanHD 1 Reply Last reply Reply Quote 0
                      • DanHD
                        DanH @David Healey
                        last edited by

                        @d-healey No that just hides the expansion column 😆

                        Using a combo box to switch into an expansion the expansion presets load fine, but when switching back to factory (selecting no expansion in the combo box) the 'factory' user presets don't come back - it stays on the last expansion's presets.

                        DHPlugins / DC Breaks | Artist / Producer / DJ / Developer
                        https://dhplugins.com/ | https://dcbreaks.com/
                        London, UK

                        David HealeyD 1 Reply Last reply Reply Quote 0
                        • David HealeyD
                          David Healey @DanH
                          last edited by

                          @DanH Aha, let me test this on my system to see if I can find a solution

                          Free HISE Bootcamp Full Course for beginners.
                          YouTube Channel - Public HISE tutorials
                          My Patreon - HISE tutorials

                          1 Reply Last reply Reply Quote 0
                          • David HealeyD
                            David Healey
                            last edited by

                            I can confirm it doesn't work. I don't think a wrapper function is the best idea in this case. I think getting the preset browser to refresh itself when an empty expansion is loaded is the best thing. This means it will work automatically as it should without requiring a manual function call.

                            Free HISE Bootcamp Full Course for beginners.
                            YouTube Channel - Public HISE tutorials
                            My Patreon - HISE tutorials

                            DanHD 1 Reply Last reply Reply Quote 0
                            • DanHD
                              DanH @David Healey
                              last edited by

                              @d-healey Ok thanks loads for looking into it. Is there a refresh function for the PB currently? I couldn't see on in the APIs

                              DHPlugins / DC Breaks | Artist / Producer / DJ / Developer
                              https://dhplugins.com/ | https://dcbreaks.com/
                              London, UK

                              David HealeyD 1 Reply Last reply Reply Quote 0
                              • David HealeyD
                                David Healey @DanH
                                last edited by

                                @DanH said in Expansions / Combo Box + SampleMaps:

                                Is there a refresh function for the PB currently? I couldn't see on in the APIs

                                No, and as I say we shouldn't need one. It should be automatic. It needs to be added to the source. I'm looking now to see if there is a quick fix.

                                Free HISE Bootcamp Full Course for beginners.
                                YouTube Channel - Public HISE tutorials
                                My Patreon - HISE tutorials

                                DanHD 1 Reply Last reply Reply Quote 0
                                • DanHD
                                  DanH @David Healey
                                  last edited by

                                  @d-healey 🙏🏻

                                  DHPlugins / DC Breaks | Artist / Producer / DJ / Developer
                                  https://dhplugins.com/ | https://dcbreaks.com/
                                  London, UK

                                  1 Reply Last reply Reply Quote 0
                                  • David HealeyD
                                    David Healey
                                    last edited by David Healey

                                    Line 747 in PresetBrowser.cpp.

                                    Replace the function there with this

                                    void PresetBrowser::expansionPackLoaded(Expansion* currentExpansion)
                                    {
                                    	if(expansionColumn != nullptr && currentExpansion != nullptr)
                                    		selectionChanged(-1, -1, currentExpansion->getRootFolder(), false);
                                    	else
                                    		selectionChanged(-1, -1, File(), false);
                                    }
                                    

                                    Or use my development branch https://github.com/davidhealey/HISE/tree/development

                                    Free HISE Bootcamp Full Course for beginners.
                                    YouTube Channel - Public HISE tutorials
                                    My Patreon - HISE tutorials

                                    DanHD 1 Reply Last reply Reply Quote 0
                                    • DanHD
                                      DanH @David Healey
                                      last edited by

                                      @d-healey said in Expansions / Combo Box + SampleMaps:

                                      void PresetBrowser::expansionPackLoaded(Expansion* currentExpansion)
                                      {
                                      if(expansionColumn != nullptr && currentExpansion != nullptr)
                                      selectionChanged(-1, -1, currentExpansion->getRootFolder(), false);
                                      else
                                      selectionChanged(-1, -1, File(), false);
                                      }

                                      Testing... It's line 737 in Master Branch for anyone else following..

                                      DHPlugins / DC Breaks | Artist / Producer / DJ / Developer
                                      https://dhplugins.com/ | https://dcbreaks.com/
                                      London, UK

                                      David HealeyD 1 Reply Last reply Reply Quote 0
                                      • David HealeyD
                                        David Healey @DanH
                                        last edited by David Healey

                                        @DanH What crazy fool is using the master branch! :p

                                        Free HISE Bootcamp Full Course for beginners.
                                        YouTube Channel - Public HISE tutorials
                                        My Patreon - HISE tutorials

                                        DanHD 1 Reply Last reply Reply Quote 0
                                        • DanHD
                                          DanH @David Healey
                                          last edited by

                                          @d-healey Cos its stable! There's a few things in Develop that don't match up with what I've already made so waiting for things to be ironed out

                                          DHPlugins / DC Breaks | Artist / Producer / DJ / Developer
                                          https://dhplugins.com/ | https://dcbreaks.com/
                                          London, UK

                                          David HealeyD 1 Reply Last reply Reply Quote 0
                                          • David HealeyD
                                            David Healey @DanH
                                            last edited by

                                            @DanH I've found develop to be more stable than master, especially with look and feel stuff. What parts have you found that are unstable?

                                            Free HISE Bootcamp Full Course for beginners.
                                            YouTube Channel - Public HISE tutorials
                                            My Patreon - HISE tutorials

                                            DanHD LindonL 2 Replies Last reply Reply Quote 0
                                            • First post
                                              Last post

                                            26

                                            Online

                                            2.1k

                                            Users

                                            13.0k

                                            Topics

                                            113.2k

                                            Posts