mela_to_svara
mela_to_svara(
mela,abbr?,unicode?):string[]
Defined in: packages/pleco-xa/src/scripts/xa-notation.js:311
Spell the Carnatic svara names for a given melakarta raga
Parameters
Section titled “Parameters”string | number
Melakarta raga name or number (1-72)
boolean = true
If true, use abbreviated svara names
unicode?
Section titled “unicode?”boolean = true
If true, use unicode symbols
Returns
Section titled “Returns”string[]
List of 7 svara names
Example
Section titled “Example”mela_to_svara('kharaharapriya') // ['S', 'R₂', 'G₂', 'M₁', 'P', 'D₂', 'N₂']mela_to_svara(22, true, false) // ['S', 'R2', 'G2', 'M1', 'P', 'D2', 'N2']mela_to_svara(22, false, false) // ['Sa', 'Ri2', 'Ga2', 'Ma1', 'Pa', 'Dha2', 'Ni2']