Kaṭapayādi
कटपयादि: the code that turns words into numbers, and names the 72 parent rāgas.
Kaṭapayādi (“starting with ka, ṭa, pa, ya”) gives every Sanskrit consonant a digit from 0 to 9. Each digit has several letters to choose from, so a number can be written as an ordinary, meaningful word, and a long number as a verse that is easy to memorise. Astronomers used it for tables and dates. Carnatic music uses it to encode each Mēḷakarta rāga’s number in its name. Unlike Āryabhaṭa’s code (see Āryabhaṭa Numeration), vowels carry no value: only the consonant before each vowel counts.
The defining verse
मिश्रे तूपान्त्यहल् सङ्ख्या न च चिन्त्यो हलस्वरः ॥
miśre tūpāntyahal saṅkhyā na ca cintyo halasvaraḥ ||
“na, ña and the vowels (a, …) are zero; the numbers are [the consonant series] beginning with ka, ṭa, pa, ya. In a conjunct, the consonant next to the vowel counts; a consonant with no vowel of its own is not considered.” — quoted from Śaṅkaravarman’s Sadratnamālā.
Consonant values
Four series, each counting from 1. The first two run to ten (ending on 0); the third stops at 5, the fourth at 8:
| 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 0 |
|---|
Zero
Conjuncts
Direction
Decode a word
Type a word in IAST (for example gopībhāgya or kharaharapriyā). Each syllable shows the consonant that counts and its digit:
π in a couplet
खलजीवितखाताव गलहालारसन्धर ॥
khalajīvitakhātāva galahālārasandhara ||
Decoded syllable by syllable: 3 1 4 1 5 9 2 6 5 3 5 8 9 7 9 3 2 3 8 4 6 2 6 4 3 3 8 3 2 7 9 2, that is, π/10 = 0.31415926535897932384626433832792. The first 31 digits are correct (π continues …327950…). The verse also reads as a hymn, which is the point of the code: the number hides inside meaningful words. Bhāratī Kṛṣṇa Tīrtha quotes it in Vedic Mathematics.
The 72 Mēḷakarta rāgas
The 72 parent scales of Carnatic music are numbered so that the first two syllables of each name, read as Kaṭapayādi digits and then reversed, give the rāga’s number. Hari-kāmbhojī: ह (ha) = 8, रि (ri) = 2 → 82 reversed → 28. The number then fixes the whole scale, by a rule simple enough to work out in your head.
1 · Ma from the half
2 · Chakra from groups of six
3 · Position within the chakra
Why 72? Ri and Ga share pitches (R2 = G1, R3 = G2), so a valid pair needs Ri’s index ≤ Ga’s: six pairs, not nine. Dha and Ni are the same. Six Ri/Ga pairs × two Ma × six Dha/Ni pairs = 72. The chakra names are themselves number words: Indu (moon, 1), Netra (eyes, 2), Agni (fires, 3), Veda (4), Bāṇa (arrows, 5), Ṛtu (seasons, 6), Ṛṣi (sages, 7), Vasu (8), Brahma (9), Diśi (directions, 10), Rudra (11), Āditya (12).
All 72, decoded
Most names follow the rule exactly. The marked ones need one of the adjustments listed below the table.
| # | Rāga | First two syllables | Digits | Reversed | Chakra | Scale |
|---|
† Subscript y, r, v
‡ Other adjustments
History
The oldest surviving use is Haridatta’s Grahacāranibandhana (683 CE), followed by Śaṅkaranārāyaṇa’s Laghubhāskarīyavivaraṇa (869 CE). Tradition credits the earlier Candravākyāni of Vararuci with the first use. Nearly all known uses come from South India: astronomical tables, dates hidden in verse, and values of π such as the Karaṇapaddhati’s caṇḍāṃśucandrādhamakuṃbhipālair = 31415926536. The Mēḷakarta names in their Kaṭapayādi form are associated with Govindācārya (18th century).
Sources: Wikipedia, Kaṭapayādi system and Melakarta. The rāga names follow the standard table used by Wikipedia and karnatik.com. Practise decoding in the Kaṭapayādi lesson of Vedic Mathematics.