Samplemap Categories ?



  • I read somewhere here on forum about being able to load samplemaps from categorized folders, is there an example of this somewhere around here ?

    Just want to experiment with loading kicks, snares, hats, etc to specific samplers from a combobox.

    For example, Combobox1 would only show the contents of the "kicks" samplemap folder, and Combobox2 would only show the contents of the "snares" samplemap folder.
    Thanks for any input !

    Dalart



  • I found the forum post I was referring to here: https://forum.hise.audio/topic/1146/viewport/22

    Looks like this was a @Christoph-Hart creation and will have to wait for him to have the time to chime in.



  • Has anyone figured this out yet ?

    I'd like to be able to filter samplemaps per combobox basically.

    Example: ComboBox1 only show samplemaps that contain the word "Kick".
    ComboBox2 only show samplemaps that contain the word "Snare".

    I currently do not have any folders or sorting going on, just standard setup in the samplemaps folder.

    Thank you for any answers !!



  • You can filter strings using regex or indexOf. So just loop through all the sample map names and pick out the ones that have the text you're interested in.

    For example

    for (i = 0; i < sampleMapNames; i++)
    {
        if (sampleMapNames[i].indexOf("kick") != -1)
            Console.print("This is a kick sample map);
    }
    


  • Thank you David, I shall tinker around with this.


Log in to reply
 

14
Online

572
Users

2.2k
Topics

17.5k
Posts