How to change all samplers Preload Size with button?
-
Hello!
I want to make custom button for changing PreloadSize of all samplers, instead of using built in Floating Tile.
Is there API for this in HISE?Something like this:
if (value)
allSamplers.setPreloadSize(8192);
else
allSamplers.setPreloadSize(4096); -
@problema Use a loop.
Synth.getIdList("Sampler");
will give you the IDs of all the samplers. Use that to get a reference to every sampler. -
Thank you @d-healey , that would help a lot but firstly I want to know how to change the Preload Size of the samplers with scripting.
I can't find "setPreloadSize" or something like this in HISE API
-
I find it. Settings.setDiskMode() should work!
-
@problema If you're using the settings class then I think it affects all samplers equally so you won't need to do the looping thing I mentioned.