The <barline> element

Parent elements: <measure> (partwise), <part> (timewise)

If a barline is other than a normal single barline, it should be represented by a <barline> element that describes it. This includes information about repeats and multiple endings, as well as line style. Barline data is on the same level as the other musical data in a score - a child of a measure in a partwise score, or a part in a timewise score. This allows for barlines within measures, as in dotted barlines that subdivide measures in complex meters. The two <fermata> elements allow for fermatas on both sides of the barline (the lower one inverted).

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

Hierarchy

  • Barline

Implements

Constructors

Properties

attributes: BarlineAttributes
contents: BarlineContents
schema: {
    attributes: {
        coda: {
            label: "coda-token";
            type: "label";
            value: {
                type: "optional";
                value: {
                    type: "string";
                };
            };
        };
        divisions: {
            type: "optional";
            value: {
                max: number;
                min: number;
                type: "float";
            };
        };
        id: {
            type: "optional";
            value: {
                pattern: RegExp;
                type: "regex";
                zero: "_";
            };
        };
        location: {
            type: "optional";
            value: {
                choices: readonly ["right", "left", "middle"];
                type: "choices";
            };
        };
        segno: {
            label: "segno-token";
            type: "label";
            value: {
                type: "optional";
                value: {
                    type: "string";
                };
            };
        };
    };
    contents: readonly [{
        type: "optional";
        value: typeof BarStyle;
    }, {
        type: "optional";
        value: typeof Footnote;
    }, {
        type: "optional";
        value: typeof Level;
    }, {
        type: "optional";
        value: typeof WavyLine;
    }, {
        type: "optional";
        value: typeof Segno;
    }, {
        type: "optional";
        value: typeof Coda;
    }, {
        label: "fermatas";
        type: "label";
        value: {
            choices: readonly [readonly [], readonly [typeof Fermata], readonly [typeof Fermata, typeof Fermata]];
            type: "choices";
        };
    }, {
        type: "optional";
        value: typeof Ending;
    }, {
        type: "optional";
        value: typeof Repeat;
    }];
    name: "barline";
} = Barline.schema

Type declaration

  • Readonly attributes: {
        coda: {
            label: "coda-token";
            type: "label";
            value: {
                type: "optional";
                value: {
                    type: "string";
                };
            };
        };
        divisions: {
            type: "optional";
            value: {
                max: number;
                min: number;
                type: "float";
            };
        };
        id: {
            type: "optional";
            value: {
                pattern: RegExp;
                type: "regex";
                zero: "_";
            };
        };
        location: {
            type: "optional";
            value: {
                choices: readonly ["right", "left", "middle"];
                type: "choices";
            };
        };
        segno: {
            label: "segno-token";
            type: "label";
            value: {
                type: "optional";
                value: {
                    type: "string";
                };
            };
        };
    }
    • Readonly coda: {
          label: "coda-token";
          type: "label";
          value: {
              type: "optional";
              value: {
                  type: "string";
              };
          };
      }
      • Readonly label: "coda-token"
      • Readonly type: "label"
      • Readonly value: {
            type: "optional";
            value: {
                type: "string";
            };
        }
        • Readonly type: "optional"
        • Readonly value: {
              type: "string";
          }
          • Readonly type: "string"
    • Readonly divisions: {
          type: "optional";
          value: {
              max: number;
              min: number;
              type: "float";
          };
      }
      • Readonly type: "optional"
      • Readonly value: {
            max: number;
            min: number;
            type: "float";
        }
        • Readonly max: number
        • Readonly min: number
        • Readonly type: "float"
    • Readonly id: {
          type: "optional";
          value: {
              pattern: RegExp;
              type: "regex";
              zero: "_";
          };
      }
      • Readonly type: "optional"
      • Readonly value: {
            pattern: RegExp;
            type: "regex";
            zero: "_";
        }
        • Readonly pattern: RegExp
        • Readonly type: "regex"
        • Readonly zero: "_"
    • Readonly location: {
          type: "optional";
          value: {
              choices: readonly ["right", "left", "middle"];
              type: "choices";
          };
      }
      • Readonly type: "optional"
      • Readonly value: {
            choices: readonly ["right", "left", "middle"];
            type: "choices";
        }
        • Readonly choices: readonly ["right", "left", "middle"]
        • Readonly type: "choices"
    • Readonly segno: {
          label: "segno-token";
          type: "label";
          value: {
              type: "optional";
              value: {
                  type: "string";
              };
          };
      }
      • Readonly label: "segno-token"
      • Readonly type: "label"
      • Readonly value: {
            type: "optional";
            value: {
                type: "string";
            };
        }
        • Readonly type: "optional"
        • Readonly value: {
              type: "string";
          }
          • Readonly type: "string"
  • Readonly contents: readonly [{
        type: "optional";
        value: typeof BarStyle;
    }, {
        type: "optional";
        value: typeof Footnote;
    }, {
        type: "optional";
        value: typeof Level;
    }, {
        type: "optional";
        value: typeof WavyLine;
    }, {
        type: "optional";
        value: typeof Segno;
    }, {
        type: "optional";
        value: typeof Coda;
    }, {
        label: "fermatas";
        type: "label";
        value: {
            choices: readonly [readonly [], readonly [typeof Fermata], readonly [typeof Fermata, typeof Fermata]];
            type: "choices";
        };
    }, {
        type: "optional";
        value: typeof Ending;
    }, {
        type: "optional";
        value: typeof Repeat;
    }]
  • Readonly name: "barline"
schema: {
    attributes: {
        coda: {
            label: "coda-token";
            type: "label";
            value: {
                type: "optional";
                value: {
                    type: "string";
                };
            };
        };
        divisions: {
            type: "optional";
            value: {
                max: number;
                min: number;
                type: "float";
            };
        };
        id: {
            type: "optional";
            value: {
                pattern: RegExp;
                type: "regex";
                zero: "_";
            };
        };
        location: {
            type: "optional";
            value: {
                choices: readonly ["right", "left", "middle"];
                type: "choices";
            };
        };
        segno: {
            label: "segno-token";
            type: "label";
            value: {
                type: "optional";
                value: {
                    type: "string";
                };
            };
        };
    };
    contents: readonly [{
        type: "optional";
        value: typeof BarStyle;
    }, {
        type: "optional";
        value: typeof Footnote;
    }, {
        type: "optional";
        value: typeof Level;
    }, {
        type: "optional";
        value: typeof WavyLine;
    }, {
        type: "optional";
        value: typeof Segno;
    }, {
        type: "optional";
        value: typeof Coda;
    }, {
        label: "fermatas";
        type: "label";
        value: {
            choices: readonly [readonly [], readonly [typeof Fermata], readonly [typeof Fermata, typeof Fermata]];
            type: "choices";
        };
    }, {
        type: "optional";
        value: typeof Ending;
    }, {
        type: "optional";
        value: typeof Repeat;
    }];
    name: "barline";
} = ...

Type declaration

  • Readonly attributes: {
        coda: {
            label: "coda-token";
            type: "label";
            value: {
                type: "optional";
                value: {
                    type: "string";
                };
            };
        };
        divisions: {
            type: "optional";
            value: {
                max: number;
                min: number;
                type: "float";
            };
        };
        id: {
            type: "optional";
            value: {
                pattern: RegExp;
                type: "regex";
                zero: "_";
            };
        };
        location: {
            type: "optional";
            value: {
                choices: readonly ["right", "left", "middle"];
                type: "choices";
            };
        };
        segno: {
            label: "segno-token";
            type: "label";
            value: {
                type: "optional";
                value: {
                    type: "string";
                };
            };
        };
    }
    • Readonly coda: {
          label: "coda-token";
          type: "label";
          value: {
              type: "optional";
              value: {
                  type: "string";
              };
          };
      }
      • Readonly label: "coda-token"
      • Readonly type: "label"
      • Readonly value: {
            type: "optional";
            value: {
                type: "string";
            };
        }
        • Readonly type: "optional"
        • Readonly value: {
              type: "string";
          }
          • Readonly type: "string"
    • Readonly divisions: {
          type: "optional";
          value: {
              max: number;
              min: number;
              type: "float";
          };
      }
      • Readonly type: "optional"
      • Readonly value: {
            max: number;
            min: number;
            type: "float";
        }
        • Readonly max: number
        • Readonly min: number
        • Readonly type: "float"
    • Readonly id: {
          type: "optional";
          value: {
              pattern: RegExp;
              type: "regex";
              zero: "_";
          };
      }
      • Readonly type: "optional"
      • Readonly value: {
            pattern: RegExp;
            type: "regex";
            zero: "_";
        }
        • Readonly pattern: RegExp
        • Readonly type: "regex"
        • Readonly zero: "_"
    • Readonly location: {
          type: "optional";
          value: {
              choices: readonly ["right", "left", "middle"];
              type: "choices";
          };
      }
      • Readonly type: "optional"
      • Readonly value: {
            choices: readonly ["right", "left", "middle"];
            type: "choices";
        }
        • Readonly choices: readonly ["right", "left", "middle"]
        • Readonly type: "choices"
    • Readonly segno: {
          label: "segno-token";
          type: "label";
          value: {
              type: "optional";
              value: {
                  type: "string";
              };
          };
      }
      • Readonly label: "segno-token"
      • Readonly type: "label"
      • Readonly value: {
            type: "optional";
            value: {
                type: "string";
            };
        }
        • Readonly type: "optional"
        • Readonly value: {
              type: "string";
          }
          • Readonly type: "string"
  • Readonly contents: readonly [{
        type: "optional";
        value: typeof BarStyle;
    }, {
        type: "optional";
        value: typeof Footnote;
    }, {
        type: "optional";
        value: typeof Level;
    }, {
        type: "optional";
        value: typeof WavyLine;
    }, {
        type: "optional";
        value: typeof Segno;
    }, {
        type: "optional";
        value: typeof Coda;
    }, {
        label: "fermatas";
        type: "label";
        value: {
            choices: readonly [readonly [], readonly [typeof Fermata], readonly [typeof Fermata, typeof Fermata]];
            type: "choices";
        };
    }, {
        type: "optional";
        value: typeof Ending;
    }, {
        type: "optional";
        value: typeof Repeat;
    }]
  • Readonly name: "barline"

Methods

Generated using TypeDoc