Browsing developer’s help I don’t see any command which could purge/unload certain samples (zones) out of RAM to free it. Is there anything like this? Maybe it’s called somehow specifically
I don’t think this is possible. But I’m not 100% sure.
Unless you remove the zones or layers from the program and load them again when needed.
Usually Halion presets don’t use too much RAM.
Eagle for instance uses about 7 GB on disk and only about 150 MB of memory when loaded.
Something to watch out for though is StartRange for the sample zones. It loads everything to the left of the slider into memory. Doing this on a large amount of samples is not a good choice.
If this is causing problems, you will have to script it so they return to zero when those layers are not selected for playback.
PreloadedBytes can be seen in paramList at zone => SampleOsc or Layer / Program param list.