The <beat-repeat> element

Parent element: <measure-style>

The <beat-repeat> element is used to indicate that a single beat (but possibly many notes) is repeated.

The stop type indicates the first beat where the repeats are no longer displayed. Both the start and stop of the beats being repeated should be specified unless the repeats are displayed through the end of the part.

The <beat-repeat> element specifies a notation style for repetitions. The actual music being repeated needs to be repeated within the MusicXML file. This element specifies the notation that indicates the repeat.

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

Hierarchy

  • BeatRepeat

Implements

Constructors

Properties

schema: {
    attributes: {
        slashes: {
            type: "optional";
            value: {
                max: number;
                min: 1;
                type: "int";
            };
        };
        type: {
            type: "required";
            value: {
                choices: readonly ["start", "stop"];
                type: "choices";
            };
        };
        use-dots: {
            type: "optional";
            value: {
                choices: readonly ["yes", "no"];
                type: "choices";
            };
        };
    };
    contents: readonly [{
        label: "beat-repeat";
        type: "label";
        value: {
            type: "optional";
            value: readonly [{
                type: "optional";
                value: readonly [{
                    type: "required";
                    value: typeof SlashType;
                }, {
                    type: "zeroOrMore";
                    value: typeof SlashDot;
                }];
            }, {
                type: "zeroOrMore";
                value: typeof ExceptVoice;
            }];
        };
    }];
    name: "beat-repeat";
} = BeatRepeat.schema

Type declaration

  • Readonly attributes: {
        slashes: {
            type: "optional";
            value: {
                max: number;
                min: 1;
                type: "int";
            };
        };
        type: {
            type: "required";
            value: {
                choices: readonly ["start", "stop"];
                type: "choices";
            };
        };
        use-dots: {
            type: "optional";
            value: {
                choices: readonly ["yes", "no"];
                type: "choices";
            };
        };
    }
    • Readonly slashes: {
          type: "optional";
          value: {
              max: number;
              min: 1;
              type: "int";
          };
      }
      • Readonly type: "optional"
      • Readonly value: {
            max: number;
            min: 1;
            type: "int";
        }
        • Readonly max: number
        • Readonly min: 1
        • Readonly type: "int"
    • Readonly type: {
          type: "required";
          value: {
              choices: readonly ["start", "stop"];
              type: "choices";
          };
      }
      • Readonly type: "required"
      • Readonly value: {
            choices: readonly ["start", "stop"];
            type: "choices";
        }
        • Readonly choices: readonly ["start", "stop"]
        • Readonly type: "choices"
    • Readonly use-dots: {
          type: "optional";
          value: {
              choices: readonly ["yes", "no"];
              type: "choices";
          };
      }
      • Readonly type: "optional"
      • Readonly value: {
            choices: readonly ["yes", "no"];
            type: "choices";
        }
        • Readonly choices: readonly ["yes", "no"]
        • Readonly type: "choices"
  • Readonly contents: readonly [{
        label: "beat-repeat";
        type: "label";
        value: {
            type: "optional";
            value: readonly [{
                type: "optional";
                value: readonly [{
                    type: "required";
                    value: typeof SlashType;
                }, {
                    type: "zeroOrMore";
                    value: typeof SlashDot;
                }];
            }, {
                type: "zeroOrMore";
                value: typeof ExceptVoice;
            }];
        };
    }]
  • Readonly name: "beat-repeat"
schema: {
    attributes: {
        slashes: {
            type: "optional";
            value: {
                max: number;
                min: 1;
                type: "int";
            };
        };
        type: {
            type: "required";
            value: {
                choices: readonly ["start", "stop"];
                type: "choices";
            };
        };
        use-dots: {
            type: "optional";
            value: {
                choices: readonly ["yes", "no"];
                type: "choices";
            };
        };
    };
    contents: readonly [{
        label: "beat-repeat";
        type: "label";
        value: {
            type: "optional";
            value: readonly [{
                type: "optional";
                value: readonly [{
                    type: "required";
                    value: typeof SlashType;
                }, {
                    type: "zeroOrMore";
                    value: typeof SlashDot;
                }];
            }, {
                type: "zeroOrMore";
                value: typeof ExceptVoice;
            }];
        };
    }];
    name: "beat-repeat";
} = ...

Type declaration

  • Readonly attributes: {
        slashes: {
            type: "optional";
            value: {
                max: number;
                min: 1;
                type: "int";
            };
        };
        type: {
            type: "required";
            value: {
                choices: readonly ["start", "stop"];
                type: "choices";
            };
        };
        use-dots: {
            type: "optional";
            value: {
                choices: readonly ["yes", "no"];
                type: "choices";
            };
        };
    }
    • Readonly slashes: {
          type: "optional";
          value: {
              max: number;
              min: 1;
              type: "int";
          };
      }
      • Readonly type: "optional"
      • Readonly value: {
            max: number;
            min: 1;
            type: "int";
        }
        • Readonly max: number
        • Readonly min: 1
        • Readonly type: "int"
    • Readonly type: {
          type: "required";
          value: {
              choices: readonly ["start", "stop"];
              type: "choices";
          };
      }
      • Readonly type: "required"
      • Readonly value: {
            choices: readonly ["start", "stop"];
            type: "choices";
        }
        • Readonly choices: readonly ["start", "stop"]
        • Readonly type: "choices"
    • Readonly use-dots: {
          type: "optional";
          value: {
              choices: readonly ["yes", "no"];
              type: "choices";
          };
      }
      • Readonly type: "optional"
      • Readonly value: {
            choices: readonly ["yes", "no"];
            type: "choices";
        }
        • Readonly choices: readonly ["yes", "no"]
        • Readonly type: "choices"
  • Readonly contents: readonly [{
        label: "beat-repeat";
        type: "label";
        value: {
            type: "optional";
            value: readonly [{
                type: "optional";
                value: readonly [{
                    type: "required";
                    value: typeof SlashType;
                }, {
                    type: "zeroOrMore";
                    value: typeof SlashDot;
                }];
            }, {
                type: "zeroOrMore";
                value: typeof ExceptVoice;
            }];
        };
    }]
  • Readonly name: "beat-repeat"

Methods

Generated using TypeDoc