The <voice> element

Parent elements: <direction>, <forward>, <note>

A voice is a sequence of musical events (e.g. notes, chords, rests) that proceeds linearly in time. The <voice> element is used to distinguish between multiple voices in individual parts.

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

Hierarchy

  • Voice

Implements

Constructors

Properties

attributes: VoiceAttributes
contents: VoiceContents
schema: {
    attributes: {};
    contents: readonly [{
        type: "required";
        value: {
            type: "string";
        };
    }];
    name: "voice";
} = Voice.schema

Type declaration

  • Readonly attributes: {}
    • Readonly contents: readonly [{
          type: "required";
          value: {
              type: "string";
          };
      }]
    • Readonly name: "voice"
    schema: {
        attributes: {};
        contents: readonly [{
            type: "required";
            value: {
                type: "string";
            };
        }];
        name: "voice";
    } = ...

    Type declaration

    • Readonly attributes: {}
      • Readonly contents: readonly [{
            type: "required";
            value: {
                type: "string";
            };
        }]
      • Readonly name: "voice"

      Methods

      Generated using TypeDoc