In 1796 he was chosen as the organist of
St Paul's Cathedral, and in the same year he was made composer of the Chapel Royal. His court connection was further confirmed by his appointment as musical instructor to the
Duchess of York, and afterwards to the
Princess of Wales. In January 1806, he played his own composition,
Grand Dirge, on the organ for the funeral of
Lord Nelson, the only piece specially written for the occasion. For the
coronation of George IV, he composed a
setting of the traditional
anthem I was Glad, which was also used at the coronations of
King William IV and
Queen Victoria. The king, who had neglected him for some years on account of his connection with the Princess of Wales, now restored him to favour, and in 1821 appointed him organist to his private chapel at
Brighton. Attwood was also one of the original members of the
Royal Philharmonic Society (RPS), founded in 1813. He was also a founding member of the
Regent’s Harmonic Institution; a music publishing firm established in 1818 with the backing of the RPS. Soon after the institution of the
Royal Academy of Music in 1823, Attwood was chosen to be one of the professors. He wrote the anthem
O Lord, Grant the King a Long Life for the coronation of William IV, and he was composing a similar work for the
coronation of Queen Victoria when he died at his house at 75
Cheyne Walk,
Chelsea, on 24 March 1838. Attwood's funeral took place at
St Paul's Cathedral on 31 March 1838. He is buried in the cathedral, in the
crypt, under the organ. ==Compositions==