Skip to content

Latest commit

 

History

History
22 lines (20 loc) · 924 Bytes

README.md

File metadata and controls

22 lines (20 loc) · 924 Bytes

Some random tools/code, with the goal of learning more coding.

convert_tensor.py

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).


array_to_midi.py

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.


sine_compression.py

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.


Support me

If you find anything here useful consider helping a poor:

0x190ac445974a989a87dd223f212a76ca0090c804