The <bar-style> element

Parent element: <barline>

The <bar-style> element contains barline style and color information.

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

Hierarchy

  • BarStyle

Implements

Constructors

Properties

attributes: BarStyleAttributes
schema: {
    attributes: {
        color: {
            type: "optional";
            value: {
                pattern: RegExp;
                type: "regex";
                zero: "#000000";
            };
        };
    };
    contents: readonly [{
        type: "required";
        value: {
            label: "bar-style";
            type: "label";
            value: {
                choices: readonly ["none", "dashed", "dotted", "heavy", "heavy-heavy", "heavy-light", "light-heavy", "light-light", "regular", "short", "tick"];
                type: "choices";
            };
        };
    }];
    name: "bar-style";
} = BarStyle.schema

Type declaration

  • Readonly attributes: {
        color: {
            type: "optional";
            value: {
                pattern: RegExp;
                type: "regex";
                zero: "#000000";
            };
        };
    }
    • Readonly color: {
          type: "optional";
          value: {
              pattern: RegExp;
              type: "regex";
              zero: "#000000";
          };
      }
      • Readonly type: "optional"
      • Readonly value: {
            pattern: RegExp;
            type: "regex";
            zero: "#000000";
        }
        • Readonly pattern: RegExp
        • Readonly type: "regex"
        • Readonly zero: "#000000"
  • Readonly contents: readonly [{
        type: "required";
        value: {
            label: "bar-style";
            type: "label";
            value: {
                choices: readonly ["none", "dashed", "dotted", "heavy", "heavy-heavy", "heavy-light", "light-heavy", "light-light", "regular", "short", "tick"];
                type: "choices";
            };
        };
    }]
  • Readonly name: "bar-style"
schema: {
    attributes: {
        color: {
            type: "optional";
            value: {
                pattern: RegExp;
                type: "regex";
                zero: "#000000";
            };
        };
    };
    contents: readonly [{
        type: "required";
        value: {
            label: "bar-style";
            type: "label";
            value: {
                choices: readonly ["none", "dashed", "dotted", "heavy", "heavy-heavy", "heavy-light", "light-heavy", "light-light", "regular", "short", "tick"];
                type: "choices";
            };
        };
    }];
    name: "bar-style";
} = ...

Type declaration

  • Readonly attributes: {
        color: {
            type: "optional";
            value: {
                pattern: RegExp;
                type: "regex";
                zero: "#000000";
            };
        };
    }
    • Readonly color: {
          type: "optional";
          value: {
              pattern: RegExp;
              type: "regex";
              zero: "#000000";
          };
      }
      • Readonly type: "optional"
      • Readonly value: {
            pattern: RegExp;
            type: "regex";
            zero: "#000000";
        }
        • Readonly pattern: RegExp
        • Readonly type: "regex"
        • Readonly zero: "#000000"
  • Readonly contents: readonly [{
        type: "required";
        value: {
            label: "bar-style";
            type: "label";
            value: {
                choices: readonly ["none", "dashed", "dotted", "heavy", "heavy-heavy", "heavy-light", "light-heavy", "light-light", "regular", "short", "tick"];
                type: "choices";
            };
        };
    }]
  • Readonly name: "bar-style"

Methods

  • Gets

    Returns "none" | "dashed" | "dotted" | "short" | "tick" | "regular" | "heavy" | "heavy-heavy" | "heavy-light" | "light-heavy" | "light-light"

  • Sets

    Parameters

    • barStyle: "none" | "dashed" | "dotted" | "short" | "tick" | "regular" | "heavy" | "heavy-heavy" | "heavy-light" | "light-heavy" | "light-light"

    Returns BarStyle

Generated using TypeDoc