UNPKG

@stringsync/vexml

Version:

MusicXML to Vexflow

22 lines (21 loc) 894 B
import { NamedElement } from '../util'; import { AboveBelow, LineType, OverUnder, StartStopContinue } from './enums'; /** * Most slurs are represented with two <slur> elements: one with a start type, and one with a stop type. * * See https://www.w3.org/2021/06/musicxml40/musicxml-reference/elements/slur/ */ export declare class Slur { private element; constructor(element: NamedElement<'slur'>); /** Returns the type of slur. Defaults to null. */ getType(): StartStopContinue | null; /** Returns the placement of the slur. Defaults to null. */ getPlacement(): AboveBelow | null; /** Returns the orientation of the slur. Defaults to null. */ getOrientation(): OverUnder | null; /** Returns the number of the slur. Defaults to 1. */ getNumber(): number; /** Returns the line type of the slur. Defaults to solid. */ getLineType(): LineType; }