It doesn’t yet know anything about note-off layers
It might remove samples that are actually used
It might fail to remove unused samples.
Please test! If you find any unexpected behaviour, send me a stripped down, minimal version of the xrns that DeleteUnusedSamples doesn’t work well with along, and I’ll look into it!
Example: I have a 180Mb grandpiano. It’s made of alot of samples across the keyboard and sampled in multiple velocity layers. Sometimes I might just need to play one or two notes with my piano in a song. But I still have to carry that extra 180Mb around in my song.
This tool looks through the entire song and deletes any samples that are not triggered.
You could try it yourself, load one or your more elaborate songs, first do “delete unused instruments” then “delete unused samples”…
I tried to use this in RC2, but it seems to delete a lot more than just the unused samples. Is it because it doesn’t read phrases properly or something perhaps? It seems like most of the samples used in phrases have been deleted and there is just an empty sample instead.