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 @DanH
      last edited by

      @DanH Need more info.

      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 What would help?

        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 Seeing the error message :) What is the expression that can't be assigned?

          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 oh ha.... the expression is

            sampleMaps = cx.getSampleMapList();

            as suggested

            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 sampleMaps is a const, you can't overwrite a const.

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

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

                @d-healey doh

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

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

                  @d-healey right, so now I need to get the factory sample maps back for the else statement, they currently stay in the expansion!

                  Is there a way to call 'factory' sample maps?

                  I've tried:

                  sampleMaps = Sampler1.asSampler().getSampleMapList();

                  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

                    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
                                            • First post
                                              Last post

                                            35

                                            Online

                                            2.1k

                                            Users

                                            13.0k

                                            Topics

                                            113.2k

                                            Posts