The <volume> element

Parent element: <midi-instrument>

The <volume> element value is a percentage of the maximum ranging from 0 to 100, with decimal values allowed. This corresponds to a scaling value for the MIDI 1.0 channel volume controller.

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

Hierarchy

  • Volume

Implements

Constructors

Properties

attributes: VolumeAttributes
contents: VolumeContents
schema: {
    attributes: {};
    contents: readonly [{
        label: "volume";
        type: "label";
        value: {
            type: "required";
            value: {
                max: 100;
                min: 0;
                type: "float";
            };
        };
    }];
    name: "volume";
} = Volume.schema

Type declaration

  • Readonly attributes: {}
    • Readonly contents: readonly [{
          label: "volume";
          type: "label";
          value: {
              type: "required";
              value: {
                  max: 100;
                  min: 0;
                  type: "float";
              };
          };
      }]
    • Readonly name: "volume"
    schema: {
        attributes: {};
        contents: readonly [{
            label: "volume";
            type: "label";
            value: {
                type: "required";
                value: {
                    max: 100;
                    min: 0;
                    type: "float";
                };
            };
        }];
        name: "volume";
    } = ...

    Type declaration

    • Readonly attributes: {}
      • Readonly contents: readonly [{
            label: "volume";
            type: "label";
            value: {
                type: "required";
                value: {
                    max: 100;
                    min: 0;
                    type: "float";
                };
            };
        }]
      • Readonly name: "volume"

      Methods

      Generated using TypeDoc