Forum

    • Register
    • Login
    • Search
    • Categories

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

    Scripting Forum
    3
    6
    379
    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.healey 1 Reply Last reply Reply Quote 0
      • d.healey
        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
          • Natan
            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 ❤

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

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

              Natan 1 Reply Last reply Reply Quote 3
              • Natan
                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

                23
                Online

                982
                Users

                6.6k
                Topics

                60.7k
                Posts