Counting syllables

Light and heavy syllables, laid out the way Pingala’s treatise counts them. From the Meters Count Syllables card on 42self.xyz.

Orbit view
Anuṣṭubh
Tap a node to flip light / heavy 32 nodes
96
Beats (mātrās)48
Light : Heavy16 : 16
Cadence—
Light (laghu) ⏏ = 1 beat = 0
Heavy (guru) – = 2 beats = 1
Tap a syllable to flip it
Counting the patterns
Prastāra
The line as 0s and 1s: 32 syllables
Uddiṣṭa: line → row number

Pingala numbers every possible line. The all-heavy line is row 1, and each light syllable adds a doubling (1, 2, 4, 8…) counting from the left.

This line is row #1 of 4,294,967,296
Naṣṭa: row number → line

The reverse. Give a row number and the line is rebuilt directly, without listing the rows before it.

Start from
Meruprastāra lines grouped by how many heavy syllables they hold (n = 32)
0 heavy32 heavy