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

constructor

Properties

builder

builder: Builder

defaults

defaults: EasyScoreDefaults = ...

factory

factory: Factory

grammar

options

parser

parser: Parser

Static DEBUG

DEBUG: boolean = false

Methods

addCommitHook

beam

  • 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[]

notes

parse

set

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

    Parameters

    Returns EasyScore

    this

setContext

setOptions

tuplet

voice

  • 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