How to use setGUISelection?
-
I'm expecting that what I pass in will show up as "selected" in the mapping window, is that correct?
sampler.setGUISelection(["mysample.wav"], true);
-
-
hmmm it says one sample selected, but no sample appears to be selected and the editable properties are all blank...
-
@d-healey I wish I could help, but if you don't know…well…I don't think anyone does.
-
@clevername27 said in How to use setGUISelection:
I don't think anyone does
I hope @Christoph-Hart does :D
-
Ah mystery solved (thanks source code!)
So the API doc wasn't clear to me. You don't pass an array of file names, you pass an array of sample objects, created using one of the
Sampler.createSelection...
functions. -