UNPKG

@stringsync/vexml

Version:

MusicXML to Vexflow

180 lines (179 loc) 3.58 kB
import { Enum } from '../util'; export const STEM_DIRECTIONS = new Enum(['auto', 'up', 'down', 'none']); export const CLEF_SIGNS = new Enum([ 'treble', 'french', 'subbass', 'baritone-f', 'bass', 'baritone-c', 'tenor', 'mezzo-soprano', 'soprano', 'alto', 'percussion', 'tab', ]); export const KEY_MODES = new Enum([ 'none', 'major', 'minor', 'dorian', 'phrygian', 'lydian', 'mixolydian', 'aeolian', 'ionian', 'locrian', ]); export const ACCIDENTAL_CODES = new Enum(['#', '##', 'b', 'bb', 'n', 'd', '_', 'db', '+', '++']); export const NOTEHEADS = new Enum([ '', 'D0', 'D1', 'D2', 'D3', 'T0', 'T1', 'T2', 'T3', 'X0', 'X1', 'X2', 'X3', 'S1', 'S2', 'R1', 'R2', 'DO', 'RE', 'MI', 'FA', 'FAUP', 'SO', 'LA', 'TI', 'D', 'H', 'N', 'G', 'M', 'X', 'CX', 'CI', 'S', 'SQ', 'TU', 'TD', 'SF', 'SB', ]); export const TIME_SYMBOLS = new Enum([ 'common', 'cut', 'dotted-note', 'normal', 'note', 'single-number', 'hidden', ]); export const ANNOTATION_HORIZONTAL_JUSTIFICATIONS = new Enum(['left', 'center', 'right', 'centerstem']); export const ANNOTATION_VERTICAL_JUSTIFICATIONS = new Enum(['top', 'center', 'bottom', 'centerstem']); export const DURATION_TYPES = new Enum([ '1024', '512', '256', '128', '64', '32', '16', '8', '4', '2', '1', '1/2', ]); export const CURVE_PLACEMENTS = new Enum(['auto', 'above', 'below']); export const CURVE_OPENING = new Enum(['auto', 'up', 'down']); export const TUPLET_PLACEMENTS = new Enum(['above', 'below']); export const ENDING_BRACKET_TYPES = new Enum(['begin', 'mid', 'end', 'both']); export const BARLINE_STYLES = new Enum([ 'single', 'double', 'end', 'repeatstart', 'repeatend', 'repeatboth', 'none', ]); export const REPETITION_SYMBOLS = new Enum(['segno', 'coda']); export const DYNAMIC_TYPES = new Enum([ 'p', 'pp', 'ppp', 'pppp', 'ppppp', 'pppppp', 'f', 'ff', 'fff', 'ffff', 'fffff', 'ffffff', 'mp', 'mf', 'sf', 'sfp', 'sfpp', 'fp', 'rf', 'rfz', 'sfz', 'sffz', 'fz', 'n', 'pf', 'sfzp', ]); export const WEDGE_TYPES = new Enum(['crescendo', 'diminuendo']); export const WEDGE_PLACEMENTS = new Enum(['above', 'below']); export const PEDAL_TYPES = new Enum(['bracket', 'mixed', 'text']); export const PEDAL_MARK_TYPES = new Enum(['default', 'change']); export const ARTICULATION_TYPES = new Enum([ 'upright-normal-fermata', 'upright-angled-fermata', 'upright-square-fermata', 'inverted-normal-fermata', 'inverted-angled-fermata', 'inverted-square-fermata', 'harmonic', 'open-string', 'double-tongue', 'triple-tongue', 'stopped', 'snap-pizzicato', 'tap', 'heel', 'toe', 'upstroke', 'downstroke', 'accent', 'strong-accent', 'staccato', 'tenuto', 'detached-legato', 'staccatissimo', 'scoop', 'doit', 'falloff', 'breath-mark', 'arpeggio-roll-down', 'arpeggio-roll-up', 'arpeggio-directionless', 'trill-mark', 'mordent', 'inverted-mordent', ]); export const ARTICULATION_PLACEMENTS = new Enum(['above', 'below']); export const BEND_TYPES = new Enum(['prebend', 'normal', 'release']); export const CURVE_ARTICULATIONS = new Enum(['unspecified', 'slide', 'hammeron', 'pulloff']);