Skip to content

Instantly share code, notes, and snippets.

View daveisadork's full-sized avatar

Dave Hayes daveisadork

  • Nomics Inc
  • St Louis, MO
View GitHub Profile
@daveisadork
daveisadork / soundcheck.py
Last active April 6, 2021 16:11
Functions to convert between ReplayGain and SoundCheck.
import math
import struct
# The following is from http://id3.org/iTunes%20Normalization%20settings
# The iTunNORM tag consists of 5 value pairs. These 10 values are encoded as
# ASCII Hex values of 8 characters each inside the tag (plus a space as
# prefix).