The Ottoman Empire used anthems since its foundation in the late 13th century, but did not use a specific imperial or national anthem until the 19th century. During the reign of Mahmud II, when the military and imperial band were re-organized along Western lines, Giuseppe Donizetti was invited to head the process. Donizetti Pasha, as he was known in the Ottoman Empire, composed the first Western-style imperial anthem, the Mahmudiye Marşı.
Like in many other monarchies of its time, the anthem of the Ottoman Empire was an imperial anthem, not a national one. Hence it paid homage to a specific ruler and a new anthem was composed at each imperial succession. However, in 1844, with the Tanzimat reforms, the Mecidiye Marşı was recognized as the first official Ottoman national anthem. The first official Ottoman national flag (which was in essence identical to the present-day Turkish flag) was also adopted in 1844.
The honors music for a person, office or rank is music played on formal or ceremonial occasions in the presence of the person, office-holder, or rank-holder, especially by a military band. The head of state in many countries is honored with a prescribed piece of music; in some countries the national anthem serves this purpose, while others have a separate royal, presidential, or, historically, imperial anthem. Other officials may also have anthems, such as the vice-regal salute in several Commonwealth realms for the governor-general, governor, or lieutenant governor. Ruffles and flourishes may be played instead of, or preceding, honors music.
Countries where the national anthem is also the royal anthem include Jamaica,Malaysia, the Netherlands,Norfolk Island, Spain, the United Kingdom, Brunei and Cambodia. Additionally, the royal anthems of both Denmark and New Zealand have co-official status as national anthem along with a separate national anthem.
Instances of honors music other than the relevant national anthem include the following: