The <glyph> element

Parent element: <appearance>

The <glyph> element represents what Standard Music Font Layout (SMuFL) glyph should be used for different variations of symbols that are semantically identical. The type attribute specifies what type of glyph is being defined. The element value specifies what SMuFL canonical glyph name to use, including recommended stylistic alternates.

The SMuFL canonical glyph name should match the type. For instance, a type of quarter-rest would use values restQuarter, restQuarterOld, or restQuarterZ. A type of g-clef-ottava-bassa would use values gClef8vb, gClef8vbOld, or gClef8vbCClef. A type of octave-shift-up-8 would use values ottava, ottavaBassa, ottavaBassaBa, ottavaBassaVb, or octaveBassa.

https://www.w3.org/2021/06/musicxml40/musicxml-reference/elements/glyph/

Hierarchy

  • Glyph

Implements

Constructors

Properties

attributes: GlyphAttributes
contents: GlyphContents
schema: {
    attributes: {
        type: {
            type: "required";
            value: {
                choices: readonly ["quarter-rest", "g-clef-ottava-bassa", "c-clef", "f-clef", "percussion-clef", "octave-shift-up-8", "octave-shift-down-8", "octave-shift-down-15", "octave-shift-continue-15", "octave-shift-down-22", "octave-shift-up-22", "octave-shift-continue-22"];
                type: "choices";
            };
        };
    };
    contents: readonly [{
        type: "required";
        value: {
            type: "string";
        };
    }];
    name: "glyph";
} = Glyph.schema

Type declaration

  • Readonly attributes: {
        type: {
            type: "required";
            value: {
                choices: readonly ["quarter-rest", "g-clef-ottava-bassa", "c-clef", "f-clef", "percussion-clef", "octave-shift-up-8", "octave-shift-down-8", "octave-shift-down-15", "octave-shift-continue-15", "octave-shift-down-22", "octave-shift-up-22", "octave-shift-continue-22"];
                type: "choices";
            };
        };
    }
    • Readonly type: {
          type: "required";
          value: {
              choices: readonly ["quarter-rest", "g-clef-ottava-bassa", "c-clef", "f-clef", "percussion-clef", "octave-shift-up-8", "octave-shift-down-8", "octave-shift-down-15", "octave-shift-continue-15", "octave-shift-down-22", "octave-shift-up-22", "octave-shift-continue-22"];
              type: "choices";
          };
      }
      • Readonly type: "required"
      • Readonly value: {
            choices: readonly ["quarter-rest", "g-clef-ottava-bassa", "c-clef", "f-clef", "percussion-clef", "octave-shift-up-8", "octave-shift-down-8", "octave-shift-down-15", "octave-shift-continue-15", "octave-shift-down-22", "octave-shift-up-22", "octave-shift-continue-22"];
            type: "choices";
        }
        • Readonly choices: readonly ["quarter-rest", "g-clef-ottava-bassa", "c-clef", "f-clef", "percussion-clef", "octave-shift-up-8", "octave-shift-down-8", "octave-shift-down-15", "octave-shift-continue-15", "octave-shift-down-22", "octave-shift-up-22", "octave-shift-continue-22"]
        • Readonly type: "choices"
  • Readonly contents: readonly [{
        type: "required";
        value: {
            type: "string";
        };
    }]
  • Readonly name: "glyph"
schema: {
    attributes: {
        type: {
            type: "required";
            value: {
                choices: readonly ["quarter-rest", "g-clef-ottava-bassa", "c-clef", "f-clef", "percussion-clef", "octave-shift-up-8", "octave-shift-down-8", "octave-shift-down-15", "octave-shift-continue-15", "octave-shift-down-22", "octave-shift-up-22", "octave-shift-continue-22"];
                type: "choices";
            };
        };
    };
    contents: readonly [{
        type: "required";
        value: {
            type: "string";
        };
    }];
    name: "glyph";
} = ...

Type declaration

  • Readonly attributes: {
        type: {
            type: "required";
            value: {
                choices: readonly ["quarter-rest", "g-clef-ottava-bassa", "c-clef", "f-clef", "percussion-clef", "octave-shift-up-8", "octave-shift-down-8", "octave-shift-down-15", "octave-shift-continue-15", "octave-shift-down-22", "octave-shift-up-22", "octave-shift-continue-22"];
                type: "choices";
            };
        };
    }
    • Readonly type: {
          type: "required";
          value: {
              choices: readonly ["quarter-rest", "g-clef-ottava-bassa", "c-clef", "f-clef", "percussion-clef", "octave-shift-up-8", "octave-shift-down-8", "octave-shift-down-15", "octave-shift-continue-15", "octave-shift-down-22", "octave-shift-up-22", "octave-shift-continue-22"];
              type: "choices";
          };
      }
      • Readonly type: "required"
      • Readonly value: {
            choices: readonly ["quarter-rest", "g-clef-ottava-bassa", "c-clef", "f-clef", "percussion-clef", "octave-shift-up-8", "octave-shift-down-8", "octave-shift-down-15", "octave-shift-continue-15", "octave-shift-down-22", "octave-shift-up-22", "octave-shift-continue-22"];
            type: "choices";
        }
        • Readonly choices: readonly ["quarter-rest", "g-clef-ottava-bassa", "c-clef", "f-clef", "percussion-clef", "octave-shift-up-8", "octave-shift-down-8", "octave-shift-down-15", "octave-shift-continue-15", "octave-shift-down-22", "octave-shift-up-22", "octave-shift-continue-22"]
        • Readonly type: "choices"
  • Readonly contents: readonly [{
        type: "required";
        value: {
            type: "string";
        };
    }]
  • Readonly name: "glyph"

Methods

  • Gets

    Returns "quarter-rest" | "g-clef-ottava-bassa" | "c-clef" | "f-clef" | "percussion-clef" | "octave-shift-up-8" | "octave-shift-down-8" | "octave-shift-down-15" | "octave-shift-continue-15" | "octave-shift-down-22" | "octave-shift-up-22" | "octave-shift-continue-22"

  • Sets

    Parameters

    • type: "quarter-rest" | "g-clef-ottava-bassa" | "c-clef" | "f-clef" | "percussion-clef" | "octave-shift-up-8" | "octave-shift-down-8" | "octave-shift-down-15" | "octave-shift-continue-15" | "octave-shift-down-22" | "octave-shift-up-22" | "octave-shift-continue-22"

    Returns Glyph

Generated using TypeDoc