OpenSheetMusicDisplay
    Preparing search index...

    Class Instrument

    Hierarchy (View Summary)

    Index
    highlight: boolean
    Transpose: number = 0

    Transposition halftones for this instrument only. This is additive to osmd.Sheet.Transpose (MusicSheet). osmd.TransposeCaculator needs to be defined/created for this to take effect. (just set it with new TransposeCalculator()) The next osmd.render() applies it (no need to call osmd.updateGraphic()).

    • get PartAbbreviationPrintObject(): boolean

      Whether the part abbreviation is shown: false for print-object="no" on part-abbreviation or part-abbreviation-display.

      Returns boolean

    • set PartAbbreviationPrintObject(value: boolean): void

      Parameters

      • value: boolean

      Returns void

    • get Visible(): boolean

      Whether the instrument is shown: whether any of its voices is visible (Voice.Visible), like Audible. Setting it shows or hides all its voices. Of a shown instrument, the hidden voices aren't drawn, see Voice.Visible.

      Returns boolean

    • set Visible(value: boolean): void

      Parameters

      • value: boolean

      Returns void