note_to_svara_h
note_to_svara_h(
notes,Sa,abbr?,octave?,unicode?):string|string[]
Defined in: packages/pleco-xa/src/scripts/xa-notation.js:672
Convert western note names to Hindustani svara
Parameters
Section titled “Parameters”string | string[]
Note name(s) (e.g., ‘C4’, ‘D#5’)
string
Note name for Sa (tonic)
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[]
Hindustani svara notation
Example
Section titled “Example”note_to_svara_h('C4', 'C4') // 'S'note_to_svara_h(['C4', 'D4', 'E4'], 'C4') // ['S', 'R', 'G']