stereo_vol

Stereo volume control, built in knob
Author: Are Leistad
License: BSD
Github: drj/audio/stereo_vol.axo

IO Variants: 2


Variant: 1

Inlets

frac32buffer.bipolar Left input

frac32buffer.bipolar Right input

Outlets

frac32buffer.bipolar Left output

frac32buffer.bipolar Right output

Parameters

frac32.u.map.squaregain volume

Audio Rate
outlet_left = __SSAT(___SMMUL(param_volume, inlet_left), 28);
outlet_right = __SSAT(___SMMUL(param_volume, inlet_right), 28);

Variant: 2

Inlets

frac32buffer.bipolar Left input

frac32buffer.bipolar Right input

frac32.positive Volume

Outlets

frac32buffer.bipolar Left output

frac32buffer.bipolar Right output

Audio Rate
outlet_left = __SSAT(___SMMUL(inlet_volume << 3, inlet_left << 2), 28);
outlet_right = __SSAT(___SMMUL(inlet_volume << 3, inlet_right << 2), 28);

Privacy

© 2024 Zrna Research