 Institutions were set up to oversee the training and performances of music and dances in the imperial court, such as the Great Music Bureau (太樂署) responsible for "yayue" and "yanyue", and the Drums and Pipes Bureau (鼓吹署) responsible for ceremonial music.Emperor Gaozu set up the Royal Academy, while Emperor Xuanzong established the Pear Garden Academy for the training of musicians, dancers and actors.There were around 30,000 musicians and dancers at the imperial court during the reign of Emperor Xuanzong, with most specialising in "yanyue".