However, after a few years he left the chapel to work at the court of Louis XII of France, though little is known about him at this time; clearly he was composing large quantities of secular music, some of it quite irreverent, for when he returned to Rome in 1513 he specifically promised to stop writing it.
When Leo X died in 1521, Carpentras fled Rome for Avignon; the new pope Adrian VI was uninterested in music, if not actively hostile, and many musicians gave him a "walking ovation."
When Adrian VI died in 1523, the new pope, Clement VII, was again a fine patron of the arts, and Carpentras returned to Rome.
The publication was troublesome; one of the printers failed to align the notes to staves correctly, and the entire process ended in arbitration at one point: however eventually, in the mid 1530s, he was able to issue four large collections of his music.
He seems to have held several ecclesiastical positions in Avignon in the last two decades of his life, including the deanship of St. Agricole, and he died in that town in 1548.