Question: who composed the music to the star spangled banner
Answer: John Stafford Smith ( 30 March 1750 -- 21 September 1836 ) was a British composer , church organist , and early musicologist .