Oban Star Racers

Oban Star Racers is a 2006 French-Japanese action cartoon following the exploits of Molly, a teenager trying to win a universe-wide race with a single wish as the grand prize.

Cruel Like Ceres (Episode 5)
While racing, the arrogant Ceres begins playing the flute he uses to control his racer, sending her into a deep trance where she dreams of Ceres' home world, even as her own racer careens out of control, threatening to crash into a wall. In the end, the team is saved by Rick's intervention, as he activates Molly's music player, shaking her from the trance and causing Ceres to lose control of his ship and crash.