Musical notation in South Asia has historically been associated with pedagogy and music theory. The earliest surviving example is a 7th-century rock inscription at Kuḍumiyāmalai, in South India, recording seven extended melodies in seven different modes.