The <glass> element

Parent element: <percussion>

The <glass> element represents pictograms for glass percussion instruments.

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

Hierarchy

  • Glass

Implements

Constructors

Properties

attributes: GlassAttributes
contents: GlassContents
schema: {
    attributes: {
        smufl: {
            type: "optional";
            value: {
                pattern: RegExp;
                type: "regex";
                zero: "pict";
            };
        };
    };
    contents: readonly [{
        type: "required";
        value: {
            label: "glass-value";
            type: "label";
            value: {
                choices: readonly ["glass harmonica", "glass harp", "wind chimes"];
                type: "choices";
            };
        };
    }];
    name: "glass";
} = Glass.schema

Type declaration

  • Readonly attributes: {
        smufl: {
            type: "optional";
            value: {
                pattern: RegExp;
                type: "regex";
                zero: "pict";
            };
        };
    }
    • Readonly smufl: {
          type: "optional";
          value: {
              pattern: RegExp;
              type: "regex";
              zero: "pict";
          };
      }
      • Readonly type: "optional"
      • Readonly value: {
            pattern: RegExp;
            type: "regex";
            zero: "pict";
        }
        • Readonly pattern: RegExp
        • Readonly type: "regex"
        • Readonly zero: "pict"
  • Readonly contents: readonly [{
        type: "required";
        value: {
            label: "glass-value";
            type: "label";
            value: {
                choices: readonly ["glass harmonica", "glass harp", "wind chimes"];
                type: "choices";
            };
        };
    }]
  • Readonly name: "glass"
schema: {
    attributes: {
        smufl: {
            type: "optional";
            value: {
                pattern: RegExp;
                type: "regex";
                zero: "pict";
            };
        };
    };
    contents: readonly [{
        type: "required";
        value: {
            label: "glass-value";
            type: "label";
            value: {
                choices: readonly ["glass harmonica", "glass harp", "wind chimes"];
                type: "choices";
            };
        };
    }];
    name: "glass";
} = ...

Type declaration

  • Readonly attributes: {
        smufl: {
            type: "optional";
            value: {
                pattern: RegExp;
                type: "regex";
                zero: "pict";
            };
        };
    }
    • Readonly smufl: {
          type: "optional";
          value: {
              pattern: RegExp;
              type: "regex";
              zero: "pict";
          };
      }
      • Readonly type: "optional"
      • Readonly value: {
            pattern: RegExp;
            type: "regex";
            zero: "pict";
        }
        • Readonly pattern: RegExp
        • Readonly type: "regex"
        • Readonly zero: "pict"
  • Readonly contents: readonly [{
        type: "required";
        value: {
            label: "glass-value";
            type: "label";
            value: {
                choices: readonly ["glass harmonica", "glass harp", "wind chimes"];
                type: "choices";
            };
        };
    }]
  • Readonly name: "glass"

Methods

  • Gets

    Returns "glass harmonica" | "glass harp" | "wind chimes"

Generated using TypeDoc