Works like this- A waveform of a particular sound is based on its frequency. Every sound in the world is of some particular frequency, measured in Hertz. read more
If you speed up music, it goes through the same number of cycles in a shorter time, therefore more cycles per second, therefore a higher frequency. Music is made up of many frequencies played simultaneously, but all of them are affected in the same way when sped up. read more