The document describes how music matching algorithms like Shazam work by: 1) Capturing an audio sample using the device microphone and extracting its frequencies using a Fourier transformation. 2) Comparing the frequency profile of the sample to profiles of reference songs that were generated in the same way. 3) Calculating offsets between matching frequency points to determine the most similar reference song.