added a way to read a signed int to correctly read the key signature meta event