lmms icon indicating copy to clipboard operation
lmms copied to clipboard

Header for file formats

Open mr-sihc opened this issue 2 years ago • 6 comments

Enhancement Summary

Please add a header to the file formats ESPECIALLY .mmpz

Justification

why? because i lost my old .mmpz in a reformat, and now i cant get them back i dont want others to have the same loss and also it makes the file format better, just more professional

Mockup

00000000 4D 4D 50 5A 78 9c ed 1d 6b 6f db 46 f2 7b 7e 05 |MMPZx...ko.F.{~.| like this upper or lower case up to you (the x is not part of it)

mr-sihc avatar Sep 25 '23 19:09 mr-sihc

mmpz is a compressed(zlib) XML file, pretty standard formatting, there is a version="" inside the XML.

What was the reformat? how would a header help?

teknopaul avatar Nov 16 '23 17:11 teknopaul

did you reformat a hard disk partition?

teknopaul avatar Nov 16 '23 17:11 teknopaul

zlib has a header https://www.rfc-editor.org/rfc/rfc1950

teknopaul avatar Nov 16 '23 17:11 teknopaul

hmm it uses QTs compress which might not have a header

teknopaul avatar Nov 16 '23 17:11 teknopaul

Turns out the first 4 bytes is essentially totally random the rest is standard zlib format

teknopaul avatar Nov 16 '23 17:11 teknopaul

for the record... how to decompress .mmpz

dd if=my.mmpz bs=4 skip=1 | zlib-flate -uncompress

teknopaul avatar Nov 16 '23 17:11 teknopaul