HISE Logo Forum
    • Categories
    • Register
    • Login

    How to create and link a combo box that can select different sample maps, hence enabling different instruments to be played?

    Scheduled Pinned Locked Moved Scripting
    6 Posts 3 Posters 749 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.
    • G
      glitchunow
      last edited by

      I have four sample maps with different instruments in the project and want to export a vst that is caplable of selecting these instrumetns from a combo box.

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

        @glitchunow Sampler.loadSampleMap() is the function you need. There are different ways to implement it. One method is to have an array with the names of all the sample maps (there is a function to automatically create this - check the API documentation) and then use the combo box value to select the sample map name from the array to pass to the loadSampleMap function.

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

        1 Reply Last reply Reply Quote 0
        • G
          glitchunow
          last edited by

          Thank you ! it worked , and i'm able to create a vst with multiple instruments. thank you again

          1 Reply Last reply Reply Quote 1
          • NatanN
            Natan
            last edited by

            @d-healey Hello Sir David.
            Code you please supply an example on how to make combo box , with sample maps List?
            Thanks for Your help <3

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

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

              NatanN 1 Reply Last reply Reply Quote 3
              • NatanN
                Natan @d.healey
                last edited by

                @d-healey Thank You Thank You Sir David 🙂 Youre Great 👏

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

                45

                Online

                1.7k

                Users

                11.7k

                Topics

                101.9k

                Posts