I had backup from David's Video > https://www.youtube.com/watch?v=eQ7YvIeS5lY
The reason why i am stuck is because i couldnt find samplemap. Yes, i tried it to type it myself but if do this myself i will get this error :
Interface:! Found 'inline' when expecting ';' {SW50ZXJmYWNlfHwzMDN8MTR8MQ==}
: onInit() - Line 14, column 1 {SW50ZXJmYWNlfHwzMDN8MTR8MQ==}
I created the callbacks and everything else but i am still stuck on this part.
This is what i used on my script editer :
Content.makeFrontInterface(1000, 600);
//Sampler
const var Sampler1 = Synth.getChildSynth("Sampler1");
//Samplemap array
const var SampleMaps = Sampler.getSampleMapList()
//ComboBox
const var ComboBox1 = Content.getComponent("ComboBox1");
ComboBox1.set("items", SampleMaps.join("\n"))
inline function onComboBox1Control(component, value)
{
Sampler1.asSampler().loadSampleMap(samplemaps[value-1]);
};
Content.getComponent("ComboBox1").setControlCallback(onComboBox1Control);
I could use some help, Thanks already!
Kind regards,
Joe