Options
All
  • Public
  • Public/Protected
  • All
Menu

Class AccidentalCalculator

Compute the accidentals for notes according to the current key instruction

Hierarchy

  • AccidentalCalculator

Index

Constructors

constructor

Properties

Private activeKeyInstruction

activeKeyInstruction: KeyInstruction

Private currentAlterationsComparedToKeyInstructionList

currentAlterationsComparedToKeyInstructionList: number[] = []

Private currentInMeasureNoteAlterationsDict

currentInMeasureNoteAlterationsDict: Dictionary<number, AccidentalEnum> = new Dictionary<number, AccidentalEnum>()

Private keySignatureNoteAlterationsDict

keySignatureNoteAlterationsDict: Dictionary<number, AccidentalEnum> = new Dictionary<number, AccidentalEnum>()

Private symbolFactory

Accessors

ActiveKeyInstruction

Methods

checkAccidental

  • checkAccidental(graphicalNote: GraphicalNote, pitch: Pitch, grace: boolean, graceScalingFactor: number): void

doCalculationsAtEndOfMeasure

  • doCalculationsAtEndOfMeasure(): void

Private reactOnKeyInstructionChange

  • reactOnKeyInstructionChange(): void

Generated using TypeDoc