sampler methods in docs throw error "function not found"
-
I'm trying to learn more about scripting a Sampler. I've been going through the docs and have been getting several errors with some of the selection methods.
https://docs.hise.audio/scripting/scripting-api/sampler/index.htmlI tried to create a basic selection with
const var MPOneShot = Synth.getSampler("MP One Shot"); var select = MPOneShot.selectSounds("Clap Broken_40.wav"); MPOneShot.createListFromScriptSelection();
but it throws a
function not found
error in the console for the createListFromScriptSelection.
I have a similar issue with thecreateSelection
method.Ultimately I'm trying to create an array of the names of samples in the Sample Map, I was hoping this would take me in the right direction!
-
Try
Sampler.createListFromScriptSelection();
-
Within a Sampler's MIDI Script processor in
onInit
, I tried the simplest thing I could think of for this:Sampler.selectSounds("_"); Sampler.createListFromScriptSelection();
throws
constant not found: Sampler.createListFromScriptSelection {U2NyaXB0IFByb2Nlc3NvcjJ8fDk1fDN8Mzg=} Script Processor2:! Line 3, column 38: Function / constant not found: Sampler.createListFromScriptSelection