 In the meantime , the situation in Prussia was changing . Following the death of Frederick William III , the new regime of Frederick William IV was far more liberal . <unk> was dismissed , and the Berlin premiere of Les Huguenots was arranged ( 20 May 1842 ) . On the instigation of Alexander von Humboldt , Meyerbeer was installed later in the year as Prussian <unk> and director of music for the Royal Court . Meyerbeer wrote a number of works for court occasions , and also provided music , at the King 's request , for the first staging on Berlin in 1856 of his brother Michael 's play Struensee ( based on the life of Johann Friedrich Struensee ) , which had also been proscribed under the previous regime . 
