@libraz/libcantus - v1.1.0
    Preparing search index...

    Function detectNoteNameSystem

    • The notation system a note name or key name is written in.

      A name several systems could read is attributed to the first of English, German, Japanese, Italian that reads it — so B is the English B natural, and German is chosen only for a name carrying a German-only cue (H, an -is/-es ending, or dur/moll). Because the fixed-do syllables are the Italian ones, detection reports 'italian' for them; 'fixedDo' is only ever a system a caller asks for by name.

      Parameters

      • text: string

        The note name or key name.

      Returns NoteNameSystem

      The system that reads it.

      If no system reads the name, or the name mixes two systems — a German tonic under an English mode word, say.

      import { detectNoteNameSystem } from '@libraz/libcantus';
      detectNoteNameSystem('B'); // 'english' — never the German B flat
      detectNoteNameSystem('gis moll'); // 'german'
      detectNoteNameSystem('嬰ト短調'); // 'japanese'