In 1692 , he composed songs and music for The Fairy-Queen ( an adaptation of Shakespeare 's A Midsummer Night 's Dream ) . Purcellâ s music for this was lost for many years , and was rediscovered and published in 1901 . In 1692 , he composed The Fairy-Queen ( an adaptation of Shakespeare 's A Midsummer Night 's Dream ) , the score of which ( his longest for theater ) was rediscovered in 1901 and published by the Purcell Society .