the Libretto of  Amadis de Gaule was originaly set by an Italian-born French composer, instrumentalist, and dancer who spent most of his life working in whose court?
Amadis de Gaule (J.C. Bach) Amadis de Gaule, or Amadis des Gaules ("Amadis of Gaul"), is a French opera in three acts by the German composer Johann Christian Bach. The libretto is a revision by Alphonse de Vismes of "Amadis" by Philippe Quinault, originally set by Jean-Baptiste Lully in 1684, which in turn, was based on the knight-errantry romance "Amadis de Gaula" (1508). Bach's opera was first performed at the Académie Royale de Musique, Paris on 14 December 1779. It followed the contemporary French fashion for resetting libretti by Quinault ("Armide" by Gluck and "Roland" by Piccinni are other examples of this trend). The work was not a success with the Parisian public, mainly because it pleased neither the supporters of Gluck nor those of Piccinni, the two leading rival opera composers in France at the time. It was the last opera J. C. Bach composed.
Gaetano Martinelli Gaetano Martinelli (? – 1802) was an Italian librettist active in the court theatres of Charles Eugene, Duke of Württemberg from 1766 to 1769 and in Lisbon as the court poet to Joseph I of Portugal and his daughter Maria I from 1769 until his death in 1802. He was one of a group of reforming Italian librettists which also included Calzabigi, Verazi, and Migliavacca, who moved away from the traditional Metastasian plot structures that had dominated opera during the first half of the 18th century. The majority of his early libretti were for comic ("opera buffa") or semi-comic ("dramma giocoso") operas.