UNPKG

@stringsync/vexml

Version:

MusicXML to Vexflow

29 lines (28 loc) 1.11 kB
import * as rendering from '../rendering'; import { Config } from '../config'; import { Logger } from '../debug'; import { Rect } from '../spatial'; import { Fraction } from '../util'; import { Pitch } from './types'; export declare class Note { private config; private log; private document; private noteRender; private constructor(); static create(config: Config, log: Logger, document: rendering.Document, noteRender: rendering.NoteRender): Note; /** The name of the element, which can be used as a type discriminant. */ readonly name = "note"; /** Returns the bounding box of the element. */ rect(): Rect; getPitch(): Pitch; sharesACurveWith(note: Note): boolean; /** Returns the measure beat that this note starts on. */ getStartMeasureBeat(): Fraction; /** Returns the number of beats that this note takes. */ getBeatCount(): Fraction; /** Returns the system index that this note resides in. */ getSystemIndex(): number; /** Returns the absolute measure index that this note resides in. */ getAbsoluteMeasureIndex(): number; }