Options
All
  • Public
  • Public/Protected
  • All
Menu

Class VxMeasure

This is the interface for VexFlow library that actually does the engraving.

Hierarchy

  • VxMeasure

Index

Constructors

Methods

  • _createAccidentals(smoNote: SmoNote, vexNote: any, tickIndex: number, voiceIx: number): void
  • Create accidentals based on the active key and previous accidentals in this voice

    Parameters

    • smoNote: SmoNote
    • vexNote: any
    • tickIndex: number
    • voiceIx: number

    Returns void

  • _createVexNote(smoNote: SmoNote, tickIndex: number, voiceIx: number): any
  • convert a smoNote into a vxNote so it can be rasterized

    Parameters

    • smoNote: SmoNote
    • tickIndex: number

      used to calculate accidental

    • voiceIx: number

    Returns any

  • applyStemDirection(vxParams: any, voiceIx: number, flagState: number): void
  • decide whether to force stem direction for multi-voice, or use the default.

    todo

    use x position of ticks in other voices, pitch of note, to avoid collisions

    Parameters

    • vxParams: any

      params that go do the VX stem constructor

    • voiceIx: number
    • flagState: number

    Returns void

  • createMeasureModifiers(): void
  • createVexBeamGroups(vix: number): void
  • createVexNotes(voiceIx: number): void
  • createVexTuplets(vix: number): void
  • format(voices: any[]): void
  • Create the Vex formatter that calculates the X and Y positions of the notes. A formatter may actually span multiple staves for justified staves. The notes are drawn in their individual vxMeasure objects but formatting is done once for all justified staves

    Parameters

    • voices: any[]

      Voice objects from VexFlow

    Returns void

  • preFormat(): void
  • Create all Vex notes and modifiers. We defer the format and rendering so we can align across multiple staves

    Returns void

  • render(): void

Generated using TypeDoc