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



  • 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.



  • @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.



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


 

3
Online

424
Users

1.5k
Topics

10.6k
Posts