The <line-width> element

Parent element: <appearance>

The <line-width> element indicates the width of a specific line type in tenths.

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

Hierarchy

  • LineWidth

Implements

Constructors

Properties

schema: {
    attributes: {
        type: {
            type: "required";
            value: {
                choices: readonly ["beam", "bracket", "dashes", "enclosure", "ending", "extend", "heavy barline", "leger", "light barline", "octave shift", "pedal", "slur middle", "slur tip", "staff", "stem", "tie middle", "tie tip", "tuplet bracket", "wedge"];
                type: "choices";
            };
        };
    };
    contents: readonly [{
        label: "line-width";
        type: "label";
        value: {
            type: "required";
            value: {
                max: number;
                min: number;
                type: "float";
            };
        };
    }];
    name: "line-width";
} = LineWidth.schema

Type declaration

  • Readonly attributes: {
        type: {
            type: "required";
            value: {
                choices: readonly ["beam", "bracket", "dashes", "enclosure", "ending", "extend", "heavy barline", "leger", "light barline", "octave shift", "pedal", "slur middle", "slur tip", "staff", "stem", "tie middle", "tie tip", "tuplet bracket", "wedge"];
                type: "choices";
            };
        };
    }
    • Readonly type: {
          type: "required";
          value: {
              choices: readonly ["beam", "bracket", "dashes", "enclosure", "ending", "extend", "heavy barline", "leger", "light barline", "octave shift", "pedal", "slur middle", "slur tip", "staff", "stem", "tie middle", "tie tip", "tuplet bracket", "wedge"];
              type: "choices";
          };
      }
      • Readonly type: "required"
      • Readonly value: {
            choices: readonly ["beam", "bracket", "dashes", "enclosure", "ending", "extend", "heavy barline", "leger", "light barline", "octave shift", "pedal", "slur middle", "slur tip", "staff", "stem", "tie middle", "tie tip", "tuplet bracket", "wedge"];
            type: "choices";
        }
        • Readonly choices: readonly ["beam", "bracket", "dashes", "enclosure", "ending", "extend", "heavy barline", "leger", "light barline", "octave shift", "pedal", "slur middle", "slur tip", "staff", "stem", "tie middle", "tie tip", "tuplet bracket", "wedge"]
        • Readonly type: "choices"
  • Readonly contents: readonly [{
        label: "line-width";
        type: "label";
        value: {
            type: "required";
            value: {
                max: number;
                min: number;
                type: "float";
            };
        };
    }]
  • Readonly name: "line-width"
schema: {
    attributes: {
        type: {
            type: "required";
            value: {
                choices: readonly ["beam", "bracket", "dashes", "enclosure", "ending", "extend", "heavy barline", "leger", "light barline", "octave shift", "pedal", "slur middle", "slur tip", "staff", "stem", "tie middle", "tie tip", "tuplet bracket", "wedge"];
                type: "choices";
            };
        };
    };
    contents: readonly [{
        label: "line-width";
        type: "label";
        value: {
            type: "required";
            value: {
                max: number;
                min: number;
                type: "float";
            };
        };
    }];
    name: "line-width";
} = ...

Type declaration

  • Readonly attributes: {
        type: {
            type: "required";
            value: {
                choices: readonly ["beam", "bracket", "dashes", "enclosure", "ending", "extend", "heavy barline", "leger", "light barline", "octave shift", "pedal", "slur middle", "slur tip", "staff", "stem", "tie middle", "tie tip", "tuplet bracket", "wedge"];
                type: "choices";
            };
        };
    }
    • Readonly type: {
          type: "required";
          value: {
              choices: readonly ["beam", "bracket", "dashes", "enclosure", "ending", "extend", "heavy barline", "leger", "light barline", "octave shift", "pedal", "slur middle", "slur tip", "staff", "stem", "tie middle", "tie tip", "tuplet bracket", "wedge"];
              type: "choices";
          };
      }
      • Readonly type: "required"
      • Readonly value: {
            choices: readonly ["beam", "bracket", "dashes", "enclosure", "ending", "extend", "heavy barline", "leger", "light barline", "octave shift", "pedal", "slur middle", "slur tip", "staff", "stem", "tie middle", "tie tip", "tuplet bracket", "wedge"];
            type: "choices";
        }
        • Readonly choices: readonly ["beam", "bracket", "dashes", "enclosure", "ending", "extend", "heavy barline", "leger", "light barline", "octave shift", "pedal", "slur middle", "slur tip", "staff", "stem", "tie middle", "tie tip", "tuplet bracket", "wedge"]
        • Readonly type: "choices"
  • Readonly contents: readonly [{
        label: "line-width";
        type: "label";
        value: {
            type: "required";
            value: {
                max: number;
                min: number;
                type: "float";
            };
        };
    }]
  • Readonly name: "line-width"

Methods

  • Gets

    Returns "beam" | "bracket" | "dashes" | "enclosure" | "ending" | "extend" | "heavy barline" | "leger" | "light barline" | "octave shift" | "pedal" | "slur middle" | "slur tip" | "staff" | "stem" | "tie middle" | "tie tip" | "tuplet bracket" | "wedge"

  • Sets

    Parameters

    • type: "beam" | "bracket" | "dashes" | "enclosure" | "ending" | "extend" | "heavy barline" | "leger" | "light barline" | "octave shift" | "pedal" | "slur middle" | "slur tip" | "staff" | "stem" | "tie middle" | "tie tip" | "tuplet bracket" | "wedge"

    Returns LineWidth

Generated using TypeDoc