OpenSheetMusicDisplay
    Preparing search index...

    Class VoiceGenerator

    Index

    Constructors

    Properties

    pluginManager: ReaderPluginManager

    Accessors

    Methods

    • Create new [[VoiceEntry]], add it to given [[SourceStaffEntry]] and if given so, to [[Voice]].

      Parameters

      • musicTimestamp: Fraction
      • parentStaffEntry: SourceStaffEntry
      • addToVoice: boolean
      • isGrace: boolean = false

        States whether the new VoiceEntry (only) has grace notes

      • graceNoteSlash: boolean = false
      • graceSlur: boolean = false

      Returns void

    • Create [[Note]]s and handle Lyrics, Articulations, Beams, Ties, Slurs, Tuplets.

      Parameters

      • noteNode: IXmlElement
      • noteDuration: Fraction
      • typeDuration: Fraction
      • noteTypeXml: NoteType
      • normalNotes: number
      • restNote: boolean
      • parentStaffEntry: SourceStaffEntry
      • parentMeasure: SourceMeasure
      • measureStartAbsoluteTimestamp: Fraction
      • maxTieNoteFraction: Fraction
      • chord: boolean
      • octavePlusOne: boolean

        Software like Guitar Pro gives one octave too low, so we need to add one

      • printObject: boolean

        whether the note should be rendered (true) or invisible (false)

      • isCueNote: boolean
      • isGraceNote: boolean
      • stemDirectionXml: StemDirectionType
      • tremoloInfo: TremoloInfo
      • stemColorXml: string
      • noteheadColorXml: string
      • vibratoStrokes: boolean
      • dotsXml: number

      Returns Note