At the time attack menu, choose the records option. Then choose Ruby Cup. Then hold L and press R, A, Z, A, C-up, C-Left, A, C-Down, R, Z. You will then be taken to the password screen.
Go to Time Attack, choose Records, then choose Emerald Cup
now hold R and press Z, A, C-Down, L, C-Left, A, Z, C-Left, L, A
Go to Time Attack, and choose records. Go to Sapphire Cup and highlight your best score.
During a replay. You can push the L and R triggers to change the music to any of the character theme songs that you have unlocked. This can be done at any point during the replay.