I have a long string of hexadecimal values that all looks similar to this:
'\x00\x00\x00\x01\x00\x00\x00\xff\xff\x00\x00'
The actual string is 1024 frames of a waveform. I want to convert these hexadecimal values to a list of integer values, such as:
[0, 0, 0, 1, 0, 0, 0, 255, 255, 0, 0]
How do I convert these hex values to ints?
\x00
escapes are used for any byte that is not a printable ASCII character. – Institute