LMMS / lmms

Cross-platform music production software
https://lmms.io
GNU General Public License v2.0
8.16k stars 1.01k forks source link

Header for file formats #6897

Open ghost opened 1 year ago

ghost commented 1 year ago

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)

teknopaul commented 1 year ago

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 commented 1 year ago

did you reformat a hard disk partition?

teknopaul commented 1 year ago

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

teknopaul commented 1 year ago

hmm it uses QTs compress which might not have a header

teknopaul commented 1 year ago

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

teknopaul commented 1 year ago

for the record... how to decompress .mmpz

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