Carnatic music is the confluence of many sources though the Vedas, the large body of ancient sacred texts, are considered to be the source. Music flourished in the capital cities and temple towns of Vijayanagara and Thanjavur, patronised initially by temples and later on by royal courts. The genesis of Carnatic music from 2nd to 13th century is traced in Sangita Ratnakara, the authoritative 12th century musical treatise of Sarngadeva (1210-1247). Its 5000 Sanskrit couplets comprehensively cover Swaras, Ragas, Prabandhas (musical form of this period), Tala-vadyas (percussion instruments), Gamakas (ornamentations) and other aspects. Two other works, Sangeeta Sara, attributed to Vidyaranya (1320-1380) and Swaramela Kalanidhi by Ramamatya are milestones in the development of Carnatic music, for their formal classification of ragas and elucidation of techniques.
After the 12th century, Hindustani and Carnatic gradually split and evolved separately. Carnatic came to represent the South Indian Classical Music. The three great composers of Carnatic music, Syama Sastri, Tyagaraja and Muthuswami Dikshitar were born during the 1700s. Called the Musical Trinity, they set to tune new compositions and evolved many new musical forms such as the Varnam, Kriti, Padam, Javali, Tillana, and Swarajati. In the early part of the 1800s, Ghanam Krishna Iyer, Vina Kuppayyar, Subbaraya Sastri, Swati Tirunal added to the vast repertoire of Carnatic music, which was further enriched a few years later by Subbaraya Sastri, Gopalakrishna Bharati, Patnam Subramanya Iyer, Mysore Vasudevachar, Koteeswara Iyer and more recently by Muthaiah Bhagavatar and Papanasam Sivan.