connecting Preset browser with Sampler
-
I have an issue. I was working on customizing a preset browser connected to my sampler. After changing some LAF settings, the sounds that previously worked with the preset browser stopped functioning. Now, the sounds no longer appear in my preset browser, even though they worked before. Can someone help me? This is the script I’ve made:
my preset browser names 'cmbSampleMap'
//Sampler
const var Sampler1 = Synth.getChildSynth("Sampler1");//Sample maps array
const var SampleMaps = Sampler.getSampleMapList();//combo box
const var cmbSampleMap = Content.getComponent("cmbSampleMap");
cmbSampleMap.set("items", sampleMaps.join("\n"));inline function onCmbSampleMapControl(component, value)
{
Sampler1.asSampler().loadSampleMap(sampleMaps[value-1]);
};Content.getComponent("cmbSampleMap").setControlCallback(onCmbSampleMapControl);
-
@tiesvdam You have misspelled, you sample map list starts with uppercase
const var SampleMaps = Sampler.getSampleMapList(); cmbSampleMap.set("items", sampleMaps.join("\n")); Sampler1.asSampler().loadSampleMap(sampleMaps[value-1]);