Class: KeyVisitor

KeyVisitor(Key)

This class implements a visitor used to convert MusicXML keys to VexFlow keys

Constructor

new KeyVisitor(Key)

From the docs: Traditional key signatures are represented by the number of flats and sharps, plus an optional mode for major/ minor/mode distinctions. Negative numbers are used for flats and positive numbers for sharps, reflecting the key's placement within the circle of fifths (hence the element name).
Parameters:
Name Type Description
Key xmlKey MusicXml object to be translated
Source: