Options
All
  • Public
  • Public/Protected
  • All
Menu

Class EasyScore

EasyScore implements a parser for a simple language to generate VexFlow objects.

Hierarchy

  • EasyScore

Index

Constructors

Properties

builder: Builder
defaults: EasyScoreDefaults = ...
factory: Factory
parser: Parser
DEBUG: boolean = false

Methods

  • beam(notes: StemmableNote[], options?: { autoStem?: boolean; partialBeamDirections?: {}; secondaryBeamBreaks?: number[] }): StemmableNote[]
  • Parameters

    • notes: StemmableNote[]
    • Optional options: { autoStem?: boolean; partialBeamDirections?: {}; secondaryBeamBreaks?: number[] }
      • Optional autoStem?: boolean
      • Optional partialBeamDirections?: {}
      • Optional secondaryBeamBreaks?: number[]

    Returns StemmableNote[]

  • Set the score defaults. clef must be set appropriately to avoid errors when adding Staves.

    Parameters

    Returns EasyScore

    this

  • voice(notes: Note[], options?: { options?: { softmaxFactor: number }; time?: string }): Voice
  • Parameters

    • notes: Note[]
    • options: { options?: { softmaxFactor: number }; time?: string } = {}
      • Optional options?: { softmaxFactor: number }
        • softmaxFactor: number
      • Optional time?: string

    Returns Voice