 Complete the following phrase:  After he completed his musical training with his uncle, Johann Nepomuk Hummel who was married to his fathers sister Elisabeth Röckel, he was music director in Bamberg starting in 1838. He lived in Vienna from 1839. For several years after 1840 he was conductor at the Weimar Court Theatre, where he composed his opera Farinelli. In 1843 he came to Dresden, where he was at the Court Theatre, where Richard Wagner was music director. He was assistant conductor 2. Musikdirektor to Wagner for five years until 1848. Influenced by the music of Wagner, he renounced a performance of his own opera, which he had sent to Dresden. Wagner became a close friend, especially during the time of 