If Rihanna and Chris Brown made sweet music together at a Midtown hotel, it was just a few notes.

Brown, under court order to avoid his ex-gal pal, checked out less than two days after both singers ended up in separate rooms of the Trump International Hotel & Tower on Columbus Circle. He split because of the paparazzi stalking the building, a source told The Post.

Rihanna’s rep confirmed the pretty songstress and Brown were at the same hotel, but insisted they never saw each other.

“It was just a coincidence. She has stayed there before,” said publicist Amanda Silverman, adding that her client had no worries about Brown being in the same hotel.

Brown, 20, pleaded guilty to beating Rihanna, 21, in February, and will be sentenced on Aug. 5 in Los Angeles. A judge ordered Brown to stay 50 yards away from his ex.

No witnesses have come forward to say the former lovers were together over the weekend.