Fader struct

A Fader is a processor that is used for volume controls and pan.

Contents

It does not necessarily have to correspond to a FaderWidget. It can be used as a backend to KnobWidget's.

Public variables

float volume
Volume in dBFS.
float phase
Used by the phase knob (0.0 ~ 360.0).
float fader_val
0.0 ~ 1.0 for widgets.
float last_cc_volume
Value of amp during last processing.
Port* amp
A control port that controls the volume in amplitude (0.0 ~ 1.5)
Port* balance
A control Port that controls the balance (0.0 ~ 1.0) 0.5 is center.
Port* mute
Control port for muting the (channel) fader.
Port* solo
Soloed or not.
Port* listen
Listened or not.
Port* mono_compat_enabled
Whether mono compatibility switch is enabled.
StereoPorts* stereo_in
L & R audio input ports, if audio.
StereoPorts* stereo_out
L & R audio output ports, if audio.
Port* midi_in
MIDI in port, if MIDI.
Port* midi_out
MIDI out port, if MIDI.
float l_port_db
Current dBFS after processing each output port.
MidiFaderMode midi_mode
MIDI fader mode.
bool passthrough
Whether this is a passthrough fader (like a prefader).
Track* track
Pointer to owner track, if any.
ControlRoom* control_room
Pointer to owner control room, if any.
SampleProcessor* sample_processor
Pointer to owner sample processor, if any.
int fade_in_samples
Number of samples left to fade in.
int fade_out_samples
Number of samples left to fade out.
int fading_out
Whether currently fading out.
bool was_effectively_muted
Cache.

Variable documentation

float Fader::volume

Volume in dBFS.

(-inf ~ +6)

float Fader::last_cc_volume

Value of amp during last processing.

Used when processing MIDI faders.

TODO

float Fader::l_port_db

Current dBFS after processing each output port.

Transient variables only used by the GUI.

int Fader::fading_out

Whether currently fading out.

When true, if fade_out_samples becomes 0 then the output will be silenced.