The grammar of Carnatic music