How to load Sample maps after init ?
-
Hi, I have a problem.
My VST downloads the expansion automatically and unzips it automatically. However, when I want to map my sample maps, the new sample maps are not updated in the content and sampler interface.
How can I upload samples in HISE after initialization?
Thank you.
function redrawComboBox() { var SampleMaps = Sampler.getSampleMapList(); var expansion = Engine.getExpansionList(); var all_sample_maps = []; for (a in SampleMaps) { all_sample_maps.push(a); } for (e in expansion) { var expansion_SampleMaps = e.getSampleMapList(); for (i in expansion_SampleMaps) { all_sample_maps.push(i); } }
-
@Lumi283 Note: I am even forced to reload the workspace to see the new sample maps.
-
@Lumi283 Avoid using
var
and useinline function
instead offunction
- unless it's a paint routine or callback.There is an expansion refresh function that you can use which I think will make the sample maps available.
ExpansionHandler.refreshExpansions()
-
@d-healey said in How to load Sample maps after init ?:
ExpansionHandler.refreshExpansions()
Thank you