Earning CD experience points in Tamagotchi Music City is straightforward — you get them by playing the various games scattered around the city.
The more you play, the more experience you'll rack up, so explore the different spots and jump into as many games as you can.