Zrythm
a highly automated and intuitive digital audio workstation
Loading...
Searching...
No Matches
Fader Struct Reference

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

#include <dsp/fader.h>

Collaboration diagram for Fader:

Data Fields

int schema_version
 
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.
 
Portamp
 A control port that controls the volume in amplitude (0.0 ~ 1.5)
 
Portbalance
 A control Port that controls the balance (0.0 ~ 1.0) 0.5 is center.
 
Portmute
 Control port for muting the (channel) fader.
 
Portsolo
 Soloed or not.
 
Portlisten
 Listened or not.
 
Portmono_compat_enabled
 Whether mono compatibility switch is enabled.
 
Portswap_phase
 Swap phase toggle.
 
StereoPortsstereo_in
 L & R audio input ports, if audio.
 
StereoPortsstereo_out
 L & R audio output ports, if audio.
 
Portmidi_in
 MIDI in port, if MIDI.
 
Portmidi_out
 MIDI out port, if MIDI.
 
float l_port_db
 Current dBFS after processing each output port.
 
float r_port_db
 
FaderType type
 
MidiFaderMode midi_mode
 MIDI fader mode.
 
bool passthrough
 Whether this is a passthrough fader (like a prefader).
 
Tracktrack
 Pointer to owner track, if any.
 
ControlRoomcontrol_room
 Pointer to owner control room, if any.
 
SampleProcessorsample_processor
 Pointer to owner sample processor, if any.
 
int magic
 
bool is_project
 
bool implied_soloed
 
bool soloed
 
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.
 

Detailed Description

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

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

Definition at line 90 of file fader.h.

Field Documentation

◆ amp

Port* Fader::amp

A control port that controls the volume in amplitude (0.0 ~ 1.5)

Definition at line 118 of file fader.h.

◆ balance

Port* Fader::balance

A control Port that controls the balance (0.0 ~ 1.0) 0.5 is center.

Definition at line 122 of file fader.h.

◆ control_room

ControlRoom* Fader::control_room

Pointer to owner control room, if any.

Definition at line 182 of file fader.h.

◆ fade_in_samples

int Fader::fade_in_samples

Number of samples left to fade in.

Definition at line 197 of file fader.h.

◆ fade_out_samples

int Fader::fade_out_samples

Number of samples left to fade out.

Definition at line 202 of file fader.h.

◆ fader_val

float Fader::fader_val

0.0 ~ 1.0 for widgets.

Definition at line 103 of file fader.h.

◆ fading_out

int Fader::fading_out

Whether currently fading out.

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

Definition at line 209 of file fader.h.

◆ implied_soloed

bool Fader::implied_soloed

Definition at line 193 of file fader.h.

◆ is_project

bool Fader::is_project

Definition at line 189 of file fader.h.

◆ l_port_db

float Fader::l_port_db

Current dBFS after processing each output port.

Transient variables only used by the GUI.

Definition at line 167 of file fader.h.

◆ last_cc_volume

float Fader::last_cc_volume

Value of amp during last processing.

Used when processing MIDI faders.

TODO

Definition at line 112 of file fader.h.

◆ listen

Port* Fader::listen

Listened or not.

Definition at line 134 of file fader.h.

◆ magic

int Fader::magic

Definition at line 187 of file fader.h.

◆ midi_in

Port* Fader::midi_in

MIDI in port, if MIDI.

Definition at line 155 of file fader.h.

◆ midi_mode

MidiFaderMode Fader::midi_mode

MIDI fader mode.

Definition at line 173 of file fader.h.

◆ midi_out

Port* Fader::midi_out

MIDI out port, if MIDI.

Definition at line 160 of file fader.h.

◆ mono_compat_enabled

Port* Fader::mono_compat_enabled

Whether mono compatibility switch is enabled.

Definition at line 137 of file fader.h.

◆ mute

Port* Fader::mute

Control port for muting the (channel) fader.

Definition at line 128 of file fader.h.

◆ passthrough

bool Fader::passthrough

Whether this is a passthrough fader (like a prefader).

Definition at line 176 of file fader.h.

◆ phase

float Fader::phase

Used by the phase knob (0.0 ~ 360.0).

Definition at line 100 of file fader.h.

◆ r_port_db

float Fader::r_port_db

Definition at line 168 of file fader.h.

◆ sample_processor

SampleProcessor* Fader::sample_processor

Pointer to owner sample processor, if any.

Definition at line 185 of file fader.h.

◆ schema_version

int Fader::schema_version

Definition at line 92 of file fader.h.

◆ solo

Port* Fader::solo

Soloed or not.

Definition at line 131 of file fader.h.

◆ soloed

bool Fader::soloed

Definition at line 194 of file fader.h.

◆ stereo_in

StereoPorts* Fader::stereo_in

L & R audio input ports, if audio.

Definition at line 145 of file fader.h.

◆ stereo_out

StereoPorts* Fader::stereo_out

L & R audio output ports, if audio.

Definition at line 150 of file fader.h.

◆ swap_phase

Port* Fader::swap_phase

Swap phase toggle.

Definition at line 140 of file fader.h.

◆ track

Track* Fader::track

Pointer to owner track, if any.

Definition at line 179 of file fader.h.

◆ type

FaderType Fader::type

Definition at line 170 of file fader.h.

◆ volume

float Fader::volume

Volume in dBFS.

(-inf ~ +6)

Definition at line 97 of file fader.h.

◆ was_effectively_muted

bool Fader::was_effectively_muted

Cache.

Definition at line 212 of file fader.h.


The documentation for this struct was generated from the following file: