out_stereo_vol

Audio output, stereo, volume control, 12dB gain
Author: Are Leistad
License: BSD
Github: drj/audio/out_stereo_vol.axo

Inlets

frac32buffer.bipolar Left channel

frac32buffer.bipolar Right channel

Outlets

None

Parameters

frac32.u.map.squaregain volume

Displays

frac32.vu vuLeft

frac32.vu vuRight

Control Rate
int j, l, r;
for (j = 0; j < BUFSIZE; ++j) {
  l = ___SMMUL(param_volume, inlet_left[j]) << 2;
  r = ___SMMUL(param_volume, inlet_right[j]) << 2;
  AudioOutputLeft[j] += __SSAT(l, 28);
  AudioOutputRight[j] += __SSAT(r, 28);
}
disp_vuLeft = l;
disp_vuRight = r;

Privacy

© 2024 Zrna Research