The <supports> element

Parent element: <encoding>

The <supports> element indicates if a MusicXML encoding supports a particular MusicXML element. This is recommended for elements like <beam>, <stem>, and <accidental>, where the absence of an element is ambiguous if you do not know if the encoding supports that element. It also allows programs to indicate support for specific attributes, or specific attributes with specific values. This lets applications communicate, for example, that all system and/or page breaks are contained in the MusicXML file.

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

Hierarchy

  • Supports

Implements

Constructors

Properties

attributes: SupportsAttributes
contents: []
schema: {
    attributes: {
        attribute: {
            type: "optional";
            value: {
                type: "string";
            };
        };
        element: {
            type: "required";
            value: {
                type: "string";
            };
        };
        type: {
            type: "required";
            value: {
                choices: readonly ["yes", "no"];
                type: "choices";
            };
        };
        value: {
            type: "optional";
            value: {
                type: "string";
            };
        };
    };
    contents: readonly [];
    name: "supports";
} = Supports.schema

Type declaration

  • Readonly attributes: {
        attribute: {
            type: "optional";
            value: {
                type: "string";
            };
        };
        element: {
            type: "required";
            value: {
                type: "string";
            };
        };
        type: {
            type: "required";
            value: {
                choices: readonly ["yes", "no"];
                type: "choices";
            };
        };
        value: {
            type: "optional";
            value: {
                type: "string";
            };
        };
    }
    • Readonly attribute: {
          type: "optional";
          value: {
              type: "string";
          };
      }
      • Readonly type: "optional"
      • Readonly value: {
            type: "string";
        }
        • Readonly type: "string"
    • Readonly element: {
          type: "required";
          value: {
              type: "string";
          };
      }
      • Readonly type: "required"
      • Readonly value: {
            type: "string";
        }
        • Readonly type: "string"
    • Readonly type: {
          type: "required";
          value: {
              choices: readonly ["yes", "no"];
              type: "choices";
          };
      }
      • Readonly type: "required"
      • Readonly value: {
            choices: readonly ["yes", "no"];
            type: "choices";
        }
        • Readonly choices: readonly ["yes", "no"]
        • Readonly type: "choices"
    • Readonly value: {
          type: "optional";
          value: {
              type: "string";
          };
      }
      • Readonly type: "optional"
      • Readonly value: {
            type: "string";
        }
        • Readonly type: "string"
  • Readonly contents: readonly []
  • Readonly name: "supports"
schema: {
    attributes: {
        attribute: {
            type: "optional";
            value: {
                type: "string";
            };
        };
        element: {
            type: "required";
            value: {
                type: "string";
            };
        };
        type: {
            type: "required";
            value: {
                choices: readonly ["yes", "no"];
                type: "choices";
            };
        };
        value: {
            type: "optional";
            value: {
                type: "string";
            };
        };
    };
    contents: readonly [];
    name: "supports";
} = ...

Type declaration

  • Readonly attributes: {
        attribute: {
            type: "optional";
            value: {
                type: "string";
            };
        };
        element: {
            type: "required";
            value: {
                type: "string";
            };
        };
        type: {
            type: "required";
            value: {
                choices: readonly ["yes", "no"];
                type: "choices";
            };
        };
        value: {
            type: "optional";
            value: {
                type: "string";
            };
        };
    }
    • Readonly attribute: {
          type: "optional";
          value: {
              type: "string";
          };
      }
      • Readonly type: "optional"
      • Readonly value: {
            type: "string";
        }
        • Readonly type: "string"
    • Readonly element: {
          type: "required";
          value: {
              type: "string";
          };
      }
      • Readonly type: "required"
      • Readonly value: {
            type: "string";
        }
        • Readonly type: "string"
    • Readonly type: {
          type: "required";
          value: {
              choices: readonly ["yes", "no"];
              type: "choices";
          };
      }
      • Readonly type: "required"
      • Readonly value: {
            choices: readonly ["yes", "no"];
            type: "choices";
        }
        • Readonly choices: readonly ["yes", "no"]
        • Readonly type: "choices"
    • Readonly value: {
          type: "optional";
          value: {
              type: "string";
          };
      }
      • Readonly type: "optional"
      • Readonly value: {
            type: "string";
        }
        • Readonly type: "string"
  • Readonly contents: readonly []
  • Readonly name: "supports"

Methods

Generated using TypeDoc