Options
All
  • Public
  • Public/Protected
  • All
Menu

Class ClefInstruction

A ClefInstruction is the clef placed at the beginning of the stave, which indicates the pitch of the notes.

Hierarchy

Index

Constructors

constructor

Properties

Private clefPitch

clefPitch: Pitch

Private clefType

clefType: ClefEnum = ClefEnum.G

Private line

line: number = 2

Private octaveOffset

octaveOffset: number = 0

Protected parent

Private referenceCyPosition

referenceCyPosition: number

Accessors

ClefPitch

  • get ClefPitch(): Pitch
  • set ClefPitch(value: Pitch): void

ClefType

Line

  • get Line(): number
  • set Line(value: number): void

OctaveOffset

  • get OctaveOffset(): number
  • set OctaveOffset(value: number): void

Parent

ReferenceCyPosition

  • get ReferenceCyPosition(): number
  • set ReferenceCyPosition(value: number): void

Methods

Equals

NotEqual

ToString

  • ToString(): string

Private calcParameters

  • calcParameters(): void

Static getAllPossibleClefs

Static getDefaultClefFromMidiInstrument

Static isSupportedClef

  • isSupportedClef(clef: ClefEnum): boolean

Generated using TypeDoc