.. / Hz.Builtins / Hz.DAC

Hz.ADC . Hz.DAC
Hz.StreamIn . Hz.AudioFileOut . Hz.Scope
Hz.ModLFO . Hz.ModRand . Hz.ModEnv . Hz.ModExpr
see also Hz.Plugins, Hz.Builtins Examples


Route audio signals to your system's audio output device.

Overview

Traditionally, DAWs use the acronym DAC (for Digital to Analog Converter) to refer to the process of sending a digital audio signal out to your system's audio output device (spakers or headphones). Far be it from us to stir those waters.

Hz.DAC differs from most nodes in your audio graph as there is only a single instance. Typical graphs have many nodes downstream from Hz.DAC and these are summed to produce the final output signal. Since there is a single DAC, we don't use NewAnode to create instances. Rather we use scene.GetDAC().

Usage

// This JavaScript snippet routes a single oscillator to the DAC.
let dac = ascene.GetDAC();
let osc = accene.NewAnode("Hz.Osc");
ascene.Chain(osc, dac);
await ascene.Sync();

See Also

Audio Settings Dialog . Audio Out Example

home .. topics .. interface .. reference .. examples .. tipjar