The <play> element

Parent elements: <note>, <sound>

The <play> element specifies playback techniques to be used in conjunction with the <instrument-sound> element. When used as part of a <sound> element, it applies to all notes going forward in score order. In multi-instrument parts, the affected instrument should be specified using the id attribute. When used as part of a <note> element, it applies to the current note only.

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

Hierarchy

  • Play

Implements

Constructors

Properties

attributes: PlayAttributes
contents: PlayContents
schema: {
    attributes: {
        id: {
            type: "optional";
            value: {
                pattern: RegExp;
                type: "regex";
                zero: "_";
            };
        };
    };
    contents: readonly [{
        label: "value";
        type: "label";
        value: {
            type: "zeroOrMore";
            value: {
                choices: readonly [typeof Ipa, typeof Mute, typeof SemiPitched, typeof OtherPlay];
                type: "choices";
            };
        };
    }];
    name: "play";
} = Play.schema

Type declaration

  • Readonly attributes: {
        id: {
            type: "optional";
            value: {
                pattern: RegExp;
                type: "regex";
                zero: "_";
            };
        };
    }
    • 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 contents: readonly [{
        label: "value";
        type: "label";
        value: {
            type: "zeroOrMore";
            value: {
                choices: readonly [typeof Ipa, typeof Mute, typeof SemiPitched, typeof OtherPlay];
                type: "choices";
            };
        };
    }]
  • Readonly name: "play"
schema: {
    attributes: {
        id: {
            type: "optional";
            value: {
                pattern: RegExp;
                type: "regex";
                zero: "_";
            };
        };
    };
    contents: readonly [{
        label: "value";
        type: "label";
        value: {
            type: "zeroOrMore";
            value: {
                choices: readonly [typeof Ipa, typeof Mute, typeof SemiPitched, typeof OtherPlay];
                type: "choices";
            };
        };
    }];
    name: "play";
} = ...

Type declaration

  • Readonly attributes: {
        id: {
            type: "optional";
            value: {
                pattern: RegExp;
                type: "regex";
                zero: "_";
            };
        };
    }
    • 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 contents: readonly [{
        label: "value";
        type: "label";
        value: {
            type: "zeroOrMore";
            value: {
                choices: readonly [typeof Ipa, typeof Mute, typeof SemiPitched, typeof OtherPlay];
                type: "choices";
            };
        };
    }]
  • Readonly name: "play"

Methods

Generated using TypeDoc