HISE Logo Forum
    • Categories
    • Register
    • Login

    Changing Different Instruments

    Scheduled Pinned Locked Moved General Questions
    13 Posts 2 Posters 695 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.
    • Felipe FloresF
      Felipe Flores
      last edited by

      Hi, I have a project where I am going to implement 4 different Instruments, but I want to navigate between them from a Presets tab. I have seen forum threads where they explain it, but they do it with Samplemaps. In my case, it would be to switch between complete Containers, since each instrument contains several Samplemaps and Samplers. I will leave an image of what 1 Instrument looks like.

      b391f5de-b44c-4c0b-9a9f-5bf9314a2585-image.png

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

        You can bypass and unbypass containers via scripting. You can also use MIDI muters to prevent MIDI data going to specific containers and this can also be controlled with scripting.

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

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

          This is how I'd do it.

          The combobox bypasses all containers except the selected one (ignoring the main container of course). It also blocks MIDI from entering all containers except the selected one.

          HiseSnippet 1197.3oc6YssaaaDDcojYRDSTt.zOfs9IIDGGReIs.tFww2JHZjiPUZPALLBnHWYsvj6RPtL0BA9+pneU4OncuPJRpxXHy1TDiR9DmYmY1yLypyrBbXD0EEGSi.Zcd6rPDP6A5ilQXSOXpCl.rODn8P8ANwLTDToZ+YgNwwHOflV6eTnPqyJ.4ymd49N9NDWTtJ.3cTrK503.LKW6v89Iru+wNdn2hCJX8V6Y6RIGP8oIb7zV2DD53dgy4nSbDl0RGncmi7vLZzHlCCECzVYep2rQSo+FQY+6vw3w9HgfEXDOPJ0GS88DHV7N3foXeugY4cL.ncug4Ug1ppv2nO.6gmqOuZ7X4BvbOJVOzZccvyplvSq.7VQAumnOxMBGxxWQfs6qaS3MpIN7VPQXorEz52aqe.kaAgsdfyEnii3By8n2KLMWC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WWQ49YV.P09rQM7YyZ3yV0vmsqgOunF97c0vmu+Z8QPr9pDFMP8SQthgGI+HEZZGQb3mjkm5A+EvYvI3R
          

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

          Felipe FloresF 1 Reply Last reply Reply Quote 0
          • Felipe FloresF
            Felipe Flores
            last edited by

            Thank you very much, that's what I needed!

            1 Reply Last reply Reply Quote 1
            • Felipe FloresF
              Felipe Flores @d.healey
              last edited by

              @d-healey Thinking again about this solution, I have noticed that changing instruments would not change the interface that I have created for each Preset, since each instrument has different names and buttons. Is there a way to do this?

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

                @Felipe-Flores Do you mean changing the graphics or changing which controls are displayed?

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

                1 Reply Last reply Reply Quote 0
                • Felipe FloresF
                  Felipe Flores
                  last edited by

                  I will try to summarize it. I have 4 different instruments and each one has Gain and Pan, but the interface of each one is different. I need that when the instrument is changed, the graphic interface will also change as I have customized it with buttons in different positions. Besides that, each instrument has different settings.

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

                    You can't change images once the plugin is compiled, unless those images are used by other controls on the UI. So if you want to "change" images you'll need to have multiple sets of controls that you show/hide depending on the instrument that's been selected.

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

                    Felipe FloresF 1 Reply Last reply Reply Quote 0
                    • Felipe FloresF
                      Felipe Flores @d.healey
                      last edited by

                      @d-healey Ok. I get the point, then. For Example.

                      I could create a Panel (With the buttons and sliders inside it) that encompasses the entire interface and connect it to Container1 using some kind of command so that it disappears when switching to Container2? and in this way, the other Panel corresponding to the next Instrument (Container2) would appear?

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

                        @Felipe-Flores Take a look at my tabbed interfaces tutorial.

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

                        Felipe FloresF 1 Reply Last reply Reply Quote 0
                        • Felipe FloresF
                          Felipe Flores @d.healey
                          last edited by

                          @d-healey I just watched your videotutorial, Thank you, it's great. Could this be done with a ComboBox? Because now I need each button to activate and deactivate the Containers as you explained before.

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

                            @Felipe-Flores Yes use the value of the combo box instead of the button index.

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

                            Felipe FloresF 1 Reply Last reply Reply Quote 1
                            • Felipe FloresF
                              Felipe Flores @d.healey
                              last edited by

                              @d-healey Thank you very much, your help has been very valuable to me.

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

                              23

                              Online

                              1.7k

                              Users

                              11.9k

                              Topics

                              103.6k

                              Posts