ezdac~

Audio output and on/off button

Description

ezdac~ works as a user interface version of the dac~ object. It appears as a button which can be clicked with the mouse to turn audio on or off.

Arguments

None.

Messages

int on/off-flag (0 or nonzero) [int]
A non-zero number turns on audio processing in all loaded patches. 0 turns off audio processing in all loaded patches.
local behavioral-flag (0 or 1) [int]
The word local, followed by 1, makes a click to turn on an ezdac~ object equivalent to sending it the startwindow message. The message local 0 returns the ezdac~ object to its default mode where a click to turn it on is equivalent to the start message.
(mouse) Clicking on ezdac~ toggles audio processing on or off. Audio on is represented by the object being highlighted.
open Opens the DSP Status window. The window is also brought to the front.
signal In left inlet: The signal is sent to audio output channel 1. The signal in each inlet must be between -1 and 1 to avoid clipping by the DAC.

In right inlet: The signal is sent to audio output channel 2.
start Turns on audio processing in all loaded patches.
startwindow Turns on audio processing only in the patch in which this ezdac~ is located, and in subpatches of that patch. Turns off audio processing in all other patches.
stop Turns off audio processing in all loaded patches.
wclose Closes the DSP Status window.

Attributes

Name Type g/s Description
bgcolor float Sets the color of the ezdac~ button background in RGBA format.
local int
def.:0
Toggles enabling/disabling audio input for the local window only in the patch in which this ezdac~ is located, and in subpatches of that patch. Turns off audio processing in all other patches.
offgradcolor1 float Sets the first gradient color used in the ezdac~ button in the off position in RGBA format.
offgradcolor2 float Sets the second gradient color used in the ezdac~ button in the off position in RGBA format.
ongradcolor1 float Sets the first gradient color used in the ezdac~ button in the on position in RGBA format
ongradcolor2 float Sets the second gradient color used in the ezdac~ button in the on position in RGBA format.

Information for box attributes common to all objects

Output

Audio: None. The signal received in the inlet is sent to the corresponding audio output channel.

Examples

Switch audio on and off send signal to the audio outputs

See Also

Name Description
adstatus Report and control audio driver settings
ezadc~ Audio input and on/off button
adc~ Audio input and on/off
MSP: Audio Input and Output MSP: Audio Input and Output
MSP Tutorial 3: Wavetable Oscillator MSP Tutorial 3: Wavetable Oscillator