Jump to content

SET (Mixer Command)

From EDM2

The SET command configures various control items and attributes for the audio amplifier mixer device.

Syntax

SET ─── object ──┬──────────────────────────────────────────────────────────┬───┬──────────┬───┤
                 └─ AUDIO ─┬─ ALL ───┬───┬─ ON ──┬──────────────────────────┤   ├─ WAIT    ─┤
                           ├─ LEFT ──┤   └─ OFF ─┘                          ┤   └─ NOTIFY  ─┘
                           ├─ RIGHT ─┘                                      ┤
                           ├─ BASS level ───────────────────────────────────┤
                           ├─ TREBLE level ─────────────────────────────────┤
                           ├─ BALANCE level ────────────────────────────────┤
                           ├─ PITCH level ──────────────────────────────────┤
                           ├─ GAIN level ───────────────────────────────────┤
                           ├─ MONITOR ───┬─ ON ──┬──────────────────────────┤
                           │             └─ OFF ─┘                          ┤
                           ├─ OVER milliseconds ────────────────────────────┤
                           ├─ VOLUME level ─────────────────────────────────┤
                           └─ CONNECTOR type ──┬─ MIXER AUTO LEVEL CONTROL ─┤
                                               ├─ MIXER BALANCE level ──────┤
                                               ├─ MIXER BASS level ─────────┤
                                               ├─ MIXER CHORUS level ───────┤
                                               ├─ MIXER CROSSOVER level ────┤
                                               ├─ MIXER CUSTOM1 level ──────┤
                                               ├─ MIXER CUSTOM2 level ──────┤
                                               ├─ MIXER CUSTOM3 level ──────┤
                                               ├─ MIXER GAIN level ─────────┤
                                               ├─ MIXER LOUDNESS level ─────┤
                                               ├─ MIXER MID level ──────────┤
                                               ├─ MIXER MONITOR level ──────┤
                                               ├─ MIXER MUTE ───────────────┤
                                               ├─ MIXER PITCH level ────────┤
                                               ├─ MIXER REVERB level ───────┤
                                               ├─ MIXER STEREO ENHANCE ─────┤
                                               ├─ MIXER TREBLE level ───────┤
                                               └─ MIXER VOLUME level ───────┘

Keywords

object
Object associated with this media control interface command. The object can be one of the following:
  • Device type
  • Device name
  • Filename
  • Alias
AUDIO
The audio attributes of the device context specified by the ALL, LEFT, RIGHT, OVER, and VOLUME keywords.
ALL | LEFT | RIGHT
Specifies the channel(s) the command applies to. Use with ON (enable output) or OFF (disable output). ALL is the default.
BASS level
Sets the bass level as a percentage (0-100) of the maximum achievable effect. Applies to the final output mix; channel specifications are ignored.
TREBLE level
Sets the treble level as a percentage (0-100) of the maximum achievable effect. Applies to the final output mix; channel specifications are ignored.
BALANCE level
Sets the balance level. Zero is full left, 50 is center, and 100 is full right. Ignored for monaural channels.
PITCH level
Sets the pitch as a percentage (0-100) of the maximum achievable effect.
GAIN level
Sets the gain as a percentage (0-100) of the maximum achievable effect for the currently selected input.
MONITOR
Enables (ON) or disables (OFF) monitoring of the input signal from one device while recording the output of another.
OVER milliseconds
Apply the attribute change over the specified time period (fade effect).
VOLUME level
Sets the volume level as a percentage (0-100). The specific channel is determined by the ALL, LEFT, or RIGHT keywords.
CONNECTOR type
Specifies the connector type (e.g., speakers, microphone, line in) for which the subsequent MIXER settings apply.
MIXER [Attribute] level
Sets specific mixer settings (MUTE, GAIN, BASS, etc.) for the specified connector as a percentage (0-100).
WAIT
The command is executed synchronously. The function waits until the action is complete before returning.
NOTIFY
The command is executed asynchronously. An MM_MCINOTIFY message is sent to the application window when complete.

Purpose

The SET command sets various control items for the audio amplifier mixer, including master audio attributes and specific hardware connector levels.

Example

set ampmix01 audio gain 80 wait