Several Samplemaps at Once



  • I know how to handle samplemaps in 1 Sampler but how about if I want to have several handle the samplemaps loading stuff from several Samplers at once?

    Any example?

    Let's say for example is a multi-timbral instrument.

    Thanks in advance!!!



  • @Jay Just load them in a loop. Have a look at this file, look for the loadSampleMaps() function.

    https://github.com/davidhealey/librewave_woodwinds/blob/master/Scripts/presetHandler.js



  • @d-healey I don't get 'cause is using some external files which I don't have



  • I wasn't suggesting you use that code - although all of the files are available in the github repo - I was just showing you that function as an example. You get all the samplers in an array and then you loop through the array loading each sample map (from another array) as the loop progresses.



  • Anyone Else???



  • @Jay I think @d-healey 's example is pretty slick. What don't you like about it?



  • @dustbro This is the deal with this.

    Imagine you got 4 sampler with 4 different samples in it, you make a preset that loads the 4 sampler at once, when you change to the next preset another set of 4 sampler loads another 4 samples in it, etc, etc.

    I don't know if you understand what I'm try to accomplish here.



  • @Jay Have a look through my code, I do exactly this. In my repo scripts folder there is a script called manifest.js which stores all of the sample map names in an object that is used by presetHandler.js The preset handler grabs every sampler and checks the manifest object for a sample map that contains the name of the sampler and the name of the currently loaded preset, if it finds one then it loads the sample map and if it doesn't find one it bypasses the sampler and loads an empty sample map.



  • @d-healey ok but what about if I have this?

    y_kick
    y_snare
    y_toms
    y_cymbals

    s_kick
    s_snare
    s_toms
    s_cymbals

    Y = name of preset
    S = name of preset

    When selecting the Y preset it loads the y_kick, y_snare, y_toms, y_cymbals
    When selecting the S preset it load the s_kick, s_snare, s_toms, s_cymbals
    ect.

    It's like if every preset is loading is own samples in each individual sampler.

    I don't know if it make sense.



  • @Jay yeah that's what my script does.



  • What you mean Jay, I think, is loading 4 (different) sample maps at the same time in 4 different samplers (so 1 per sampler)
    That's what David explained to you.

    your Y preset should correspond to 4 separated sample maps:
    y_kick
    y_snare
    y_toms
    y_cymbals

    put them in an array, put your 4 samplers in an array, the iterate in a loop in order to load:
    samplemap[i] in sampler[i]

    then with some change, you should be able to do it for several sets of 4 sample maps (because your sample maps are going by a set of 4 in this example)
    so you create a 2D array, where the row can be the presets (Y), and the column can be (kick, snare, toms, cymbals)

    another way to do it can be simply constructing a string with two elements this way sample map = "preset" + "instrument from array" ("y" + "_kick") in a loop as well.



  • @d-healey @ossian1961 Can you Check this out for me in your spare time and let me know what I'm doing wrong? When I try to open the samplemaps it loads empty

    HiseSnippet 8740.3oc6c0FabibddWYSYqu7o6v0flzjTFmzj0Wsr2kj6W20KZ0m1JVxRdkrt3lKwl6tTZ4ItjaWxUV5tdH5RtKwM4Zh6kTfl1fB+y.TzhCnH.o+oU.MoHoH+3.RQQ5+RKRKthzBXfh.j+ccF9wxgb3r6vcWqnUl6AbVbHeG999LyyLOyvgCWqgVYIccsFwhOxF6WWJV7wYVeeUipyUUTVM1RyGK9YXlu3MWY8XytecQccoJwhG+TWAdx3ib5Xl+d3zyJpHpVVxMoXw1TStrzxx0jMbScsBWSVQYQwJRaHWC4pEJrTYM04zTzZBbjSwjLVcwx6Htsz0EgW1PLwhO7BUjMzZrtgngjdr3mdVsJ6udUs6pZc8aJqKWRQBdPpXqCxHqjWTSoBzigoFatpxJUVyIf0iEK9Dq4F9mxJ7eZlUjqH2JcWXXRySv5ZAJdDen14doPcujz6dwQbuSa4dOIy5kaHW2v8LPeaLlkTMjZrkHnH.0srt1XC8W9wYlSCbEpFWpl3NRK1.bPKKRjhKWxKxlkK4EdtIFE9expkUZVQJw42r4JRfqhEDVMLjpboWR+7vq4xWt0UbScvoWqgjtjgyYactYJo0rUp9x4ZhpxaIoiaTcy75phpUTjZfZ7ku7xZZ0YkA9iH.o0mXzFRayJ+bV+6K05pVxJmzYkUkMjEUj0EMj0TmXz07jyZpKAN+bylv04t7y7LvLf84a2O6fkc1FZ2EF6s8he9Ke4IFETyV2fcWwFrWao4tF6yyZxutz1RFqKVqNvWRbd3ILCT2qctZkrN8Jh0A13T7IVoxbZ0JoMq1dINO50b9KxxmMyEYSwk8BOGKZNoadI0DqqCxmOy427FrWS1.b4mu37Ec+y4b9yaYk3mE3Mn4+k.AchyCP+Z5fq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BVUjhuPqJRmJ1+Oec4h9A
    

    manifest.js
    presetHandler.js



  • @Jay said in Several Samplemaps at Once:

    p.s. Sorry I don't know how to make a one line snippet.

    code1.jpg

    code2.jpg



  • @ossian1961 Thanks



  • @Jay My script requires that the samplers have the same ID as the sample map, if not it loads an empty sample map.



  • @d-healey my preset is called "SSD Kit.preset" one of the sampler is called "KICK" and the reference sample is called "SSD Kit_KICK.xml" what name should I change? you have to remember I'll be changing the samples in the preset, I don't know if it make any sense



  • @Jay You deleted a very important line from my presetHandler script

    childSynths[id].asSampler().loadSampleMap(patchName + "_" + id); //Load the sample map

    Without that line no sample map will be loaded. You can see from the parameters that the format is the patch name from the manifest + _ + the id of the sampler. So that is what the sample map name should be. But you might need to change things to work with your project, I just showed you how it works in my project as an example.


 

2
Online

384
Users

1.2k
Topics

8.8k
Posts