Music is stored in a phone as a pattern of 1's and 0's. The pattern is a code of information that is translated back to music by the microchip when it plays.