Skip to content

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

string | string[]

Note name(s) (e.g., ‘C4’, ‘D#5’)

string

Note name for Sa (tonic)

boolean = true

Use abbreviated svara names (default: true)

boolean = true

Include octave notation (default: true)

boolean = true

Use unicode symbols (default: true)

string | string[]

Hindustani svara notation

note_to_svara_h('C4', 'C4') // 'S'
note_to_svara_h(['C4', 'D4', 'E4'], 'C4') // ['S', 'R', 'G']