@stringsync/vexml
Version:
MusicXML to Vexflow
31 lines (30 loc) • 1.12 kB
TypeScript
import { Clef } from './clef';
import { Key } from './key';
import { NamedElement } from '../util';
import { Time } from './time';
import { StaveDetails } from './stavedetails';
import { MeasureStyle } from './measurestyle';
/**
* Attributes contains musical information that typically changes each measure, such as key and time signatures, clefs,
* transpositions and staving.
*
* See https://www.w3.org/2021/06/musicxml40/musicxml-reference/elements/attributes/
*/
export declare class Attributes {
private element;
constructor(element: NamedElement<'attributes'>);
/** Returns the number of staves. */
getStaveCount(): number | null;
/** Returns the stave details. */
getStaveDetails(): StaveDetails[];
/** Returns the times. */
getTimes(): Time[];
/** Returns the keys. */
getKeys(): Key[];
/** Returns the clefs. */
getClefs(): Clef[];
/** Returns the measure styles. */
getMeasureStyles(): MeasureStyle[];
/** Returns the how many divisions per quarter note are used to indicate a note's duration. */
getQuarterNoteDivisions(): number | null;
}