HISE Logo Forum
    • Categories
    • Register
    • Login

    How to create a custom samplemap browser?

    Scheduled Pinned Locked Moved General Questions
    2 Posts 2 Posters 211 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.
    • J
      johnmike
      last edited by

      im sure this has been covered before...but If so I can't find a direct post on it...I know how to create a samplemap browser in a combobox...but it shows every samplemap in the folder...how would you go about creating a combo box that would only show a handful of curated sample maps? Like if I wanted to have one that shows only drums, and another that would show bass another for guitar...etc etc

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

        @johnmike Start by establishing a naming convention for your sample maps. For example all the drum ones could start with drums_, all the guitar would have guitars_, etc.

        Then in your script you get all the sample maps in an array. Then you loop over the array and any that start with drums_ you put into a dedicated drums sample map array, any that start with guitar_ you put into a guitar sample maps array, etc.

        Then you can use those arrays to populate your combo boxes or viewports or whatever UI elements you want to use.

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

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

        45

        Online

        1.7k

        Users

        11.7k

        Topics

        101.8k

        Posts