m8-js icon indicating copy to clipboard operation
m8-js copied to clipboard

Showing used samples/missing samples/space used

Open dimatura opened this issue 1 year ago • 0 comments

Hi! As requested here's the python script I posted to the M8 discord https://gist.github.com/dimatura/92b1fe83d4cf250f2290cee799d754cb. It does three things:

  • Goes over each song and collects the sample filenames
  • Prints out each filename and its size, or reports it as missing if it is not found
  • At the end, prints out total size statistics with and without adjusting for repeated files (so, the former is what you would use if you bundled each song individually, the latter is what the samples are currently using in the card).

To detect missing files and compute their size, the contents of the M8 card (either actually in the card, or as a copy of the directory tree) must be accessible, of course (not just the .m8s). I've only tested this in Linux, but I think it should work in Mac and Win as well.

dimatura avatar Apr 24 '23 13:04 dimatura