Question: 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? 
Context: Jean-Baptiste Lully (] ; born Giovanni Battista Lulli ] ; 28 November 1632 – 22 March 1687) was an Italian-born French composer, instrumentalist, and dancer who spent most of his life working in the court of Louis XIV of France.  He is considered a master of the French baroque style.  Lully disavowed any Italian influence in French music of the period.  He became a French subject in 1661. Amadis de Gaule is an opera by the French composers Jean-Benjamin de La Borde and Pierre Montan Berton, first performed at the Académie Royale de Musique, Paris (the Paris Opera) on 26 November 1771.  It takes the form of a "tragédie en musique" in five acts.  The opera is a new setting of a libretto by Philippe Quinault, originally set by Jean-Baptiste Lully in 1684. Amadis is an opera in three acts with prologue by Jules Massenet to a French libretto by Jules Claretie based on the Spanish knight-errantry romance "Amadis de Gaula", originally of Portuguese origin, by Garci Rodríguez de Montalvo. Amadis or Amadis de Gaule (Amadis of Gaul) is a "tragédie en musique" in a prologue and five acts by Jean-Baptiste Lully to a libretto by Philippe Quinault based on Nicolas Herberay des Essarts' adaptation of Garci Rodríguez de Montalvo's "Amadis de Gaula".  It was premiered by the Paris Opera at the Théâtre du Palais-Royal sometime from January 15 to 18, 1684.  There was a later production at Versailles without scenery or machines in 1685. 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. Amadis de Grèce ("Amadis of Greece") is an opera by the French composer André Cardinal Destouches, first performed at the Académie Royale de Musique (the Paris Opera) on 26 March 1699.  It takes the form of a "tragédie en musique" in a prologue and five acts.  The libretto, by Antoine Houdar de La Motte, is based on the medieval romance "Amadis de Gaula".  La Motte's text was adapted to produce the Italian-language libretto for Handel's "opera seria" "Amadigi di Gaula" (1715). Francisco Delicado (or Delgado) (c. 1480 – c. 1535) was a Spanish writer and editor of the Renaissance.  Little is known about his life.  He was born in Cordoba, Spain and, by uncertain reasons, he moved to Rome, where he became vicar and Italianized his surname to "Delicado".  After the sack of Rome, he went to Venice where he wrote his novel "" ("El retrato de la Loçana Andaluza", 1528), that continues on the lines of the novel in dialogue exemplified by "Celestina".  The book is a social and historical portrait of Rome and its dark side in the first years of the 16th century, and one of the first works of the picaresque novel.  He was also a disciple of Antonio de Nebrija (who wrote "Gramática de la lengua castellana", the first extensive work on Spanish language grammar) and editor of books such as "Amadis de Gaula" (1533), "Celestina" (1531–1534), "Primaleon" (1534) and some medical treatises like "El modo de adoperare el legno de India" (about the use of leño de Indias in the treatment of syphilis) and De consolatione infirmorum (a work that is only mentioned at the end of "Portrait of Lozana" but of which no copies are known). Amadis of Greece ("Amadís de Grecia") is a tale of knight-errantry written by Feliciano de Silva, a “sequel-specialist” who continued the adventures of Amadis de Gaula in this ninth installment.  Its full title is "Noveno libro de Amadís de Gaula, crónica del muy valiente y esforzado príncipe y caballero de la Ardiente Espada Amadís de Grecia, hijo de Lisuarte de Grecia, emperador de Constantinopla y de Trapisonda, y rey de Rodas". There are a number of things named Amadis, most of them named after the romance novel "Amadis de Gaula".  These include: Alfred Rode (4 June 1905 – 22 July 1979) was an Italian-born French composer, musician, actor and film director.  He was born in Torre del Greco as Alfred Spedaliere.  In 1936 Rode appeared in the British film "Gypsy Melody" alongside Lupe Velez, which was a remake of his own 1935 film "Juanita".  Rode was married to the French actress Claudine Dupuis from 1951.
Answer: Louis XIV of France