The <beam> element

Parent element: <note>

Beam values include begin, continue, end, forward hook, and backward hook. Each beam in a note is represented with a separate <beam> element with a different number attribute, starting with the eighth note beam using a value of 1.

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

Hierarchy

  • Beam

Implements

Constructors

Properties

attributes: BeamAttributes
contents: BeamContents
schema: {
    attributes: {
        color: {
            type: "optional";
            value: {
                pattern: RegExp;
                type: "regex";
                zero: "#000000";
            };
        };
        fan: {
            type: "optional";
            value: {
                choices: readonly ["accel", "none", "rit"];
                type: "choices";
            };
        };
        id: {
            type: "optional";
            value: {
                pattern: RegExp;
                type: "regex";
                zero: "_";
            };
        };
        number: {
            type: "optional";
            value: {
                max: 8;
                min: 1;
                type: "int";
            };
        };
        repeater: {
            type: "optional";
            value: {
                choices: readonly ["yes", "no"];
                type: "choices";
            };
        };
    };
    contents: readonly [{
        type: "required";
        value: {
            label: "beam-value";
            type: "label";
            value: {
                choices: readonly ["backward hook", "begin", "continue", "end", "forward hook"];
                type: "choices";
            };
        };
    }];
    name: "beam";
} = Beam.schema

Type declaration

  • Readonly attributes: {
        color: {
            type: "optional";
            value: {
                pattern: RegExp;
                type: "regex";
                zero: "#000000";
            };
        };
        fan: {
            type: "optional";
            value: {
                choices: readonly ["accel", "none", "rit"];
                type: "choices";
            };
        };
        id: {
            type: "optional";
            value: {
                pattern: RegExp;
                type: "regex";
                zero: "_";
            };
        };
        number: {
            type: "optional";
            value: {
                max: 8;
                min: 1;
                type: "int";
            };
        };
        repeater: {
            type: "optional";
            value: {
                choices: readonly ["yes", "no"];
                type: "choices";
            };
        };
    }
    • 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 fan: {
          type: "optional";
          value: {
              choices: readonly ["accel", "none", "rit"];
              type: "choices";
          };
      }
      • Readonly type: "optional"
      • Readonly value: {
            choices: readonly ["accel", "none", "rit"];
            type: "choices";
        }
        • Readonly choices: readonly ["accel", "none", "rit"]
        • Readonly type: "choices"
    • 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 number: {
          type: "optional";
          value: {
              max: 8;
              min: 1;
              type: "int";
          };
      }
      • Readonly type: "optional"
      • Readonly value: {
            max: 8;
            min: 1;
            type: "int";
        }
        • Readonly max: 8
        • Readonly min: 1
        • Readonly type: "int"
    • Readonly repeater: {
          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 [{
        type: "required";
        value: {
            label: "beam-value";
            type: "label";
            value: {
                choices: readonly ["backward hook", "begin", "continue", "end", "forward hook"];
                type: "choices";
            };
        };
    }]
  • Readonly name: "beam"
schema: {
    attributes: {
        color: {
            type: "optional";
            value: {
                pattern: RegExp;
                type: "regex";
                zero: "#000000";
            };
        };
        fan: {
            type: "optional";
            value: {
                choices: readonly ["accel", "none", "rit"];
                type: "choices";
            };
        };
        id: {
            type: "optional";
            value: {
                pattern: RegExp;
                type: "regex";
                zero: "_";
            };
        };
        number: {
            type: "optional";
            value: {
                max: 8;
                min: 1;
                type: "int";
            };
        };
        repeater: {
            type: "optional";
            value: {
                choices: readonly ["yes", "no"];
                type: "choices";
            };
        };
    };
    contents: readonly [{
        type: "required";
        value: {
            label: "beam-value";
            type: "label";
            value: {
                choices: readonly ["backward hook", "begin", "continue", "end", "forward hook"];
                type: "choices";
            };
        };
    }];
    name: "beam";
} = ...

Type declaration

  • Readonly attributes: {
        color: {
            type: "optional";
            value: {
                pattern: RegExp;
                type: "regex";
                zero: "#000000";
            };
        };
        fan: {
            type: "optional";
            value: {
                choices: readonly ["accel", "none", "rit"];
                type: "choices";
            };
        };
        id: {
            type: "optional";
            value: {
                pattern: RegExp;
                type: "regex";
                zero: "_";
            };
        };
        number: {
            type: "optional";
            value: {
                max: 8;
                min: 1;
                type: "int";
            };
        };
        repeater: {
            type: "optional";
            value: {
                choices: readonly ["yes", "no"];
                type: "choices";
            };
        };
    }
    • 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 fan: {
          type: "optional";
          value: {
              choices: readonly ["accel", "none", "rit"];
              type: "choices";
          };
      }
      • Readonly type: "optional"
      • Readonly value: {
            choices: readonly ["accel", "none", "rit"];
            type: "choices";
        }
        • Readonly choices: readonly ["accel", "none", "rit"]
        • Readonly type: "choices"
    • 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 number: {
          type: "optional";
          value: {
              max: 8;
              min: 1;
              type: "int";
          };
      }
      • Readonly type: "optional"
      • Readonly value: {
            max: 8;
            min: 1;
            type: "int";
        }
        • Readonly max: 8
        • Readonly min: 1
        • Readonly type: "int"
    • Readonly repeater: {
          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 [{
        type: "required";
        value: {
            label: "beam-value";
            type: "label";
            value: {
                choices: readonly ["backward hook", "begin", "continue", "end", "forward hook"];
                type: "choices";
            };
        };
    }]
  • Readonly name: "beam"

Methods

  • Gets

    Returns "backward hook" | "begin" | "continue" | "end" | "forward hook"

Generated using TypeDoc