note_to_svara_c
note_to_svara_c(
notes,Sa,mela,abbr?,octave?,unicode?):string|string[]
Defined in: packages/pleco-xa/src/scripts/xa-notation.js:643
Convert western note names to Carnatic svara within a melakarta raga
Parameters
Section titled “Parameters”string | string[]
Note name(s) (e.g., ‘C4’, ‘D#5’)
string
Note name for Sa (tonic)
string | number
Melakarta raga name or number (1-72)
boolean = true
Use abbreviated svara names (default: true)
octave?
Section titled “octave?”boolean = true
Include octave notation (default: true)
unicode?
Section titled “unicode?”boolean = true
Use unicode symbols (default: true)
Returns
Section titled “Returns”string | string[]
Carnatic svara notation
Example
Section titled “Example”note_to_svara_c('C4', 'C4', 'kharaharapriya') // 'S'note_to_svara_c(['C4', 'D4', 'E4'], 'C4', 22) // ['S', 'R2', 'G2']