Modern fanfares come from the 19th century in Britain where they were written for important state events such as the crowning of a king or queen . Hubert Parry wrote a fanfare , `` I Was Glad '' , for the coronation of Edward VII .
In 18th century France the fanfare was a movement with energy and repetition of notes , and fanfares of the modern description date from the 19th century , when they were composed for British coronations ( such as Hubert Parry 's I was glad for Edward VII ) and other important occasions .