Some random tools/code, with the goal of learning more coding.
It should convert a pytorch tensor to a png image and it can retrieve the tensor back using the png image and the min and max value of the tensor. Some tensors might be retrieved badly because its limit is 24 bits (#ffffff).
I used it to convert an array of prime numbers to midi, for better song I recommend using arrays that grows through time like prime numbers, otherwise It will sound not very good.
It's not very otimized and currently is converting to float64(which makes it not a compression), but it tries to fuse two arrays in one and retrieve an approximation of both, I used a very high frequency sine function on it.
If you find anything here useful consider helping a poor:
0x190ac445974a989a87dd223f212a76ca0090c804