audio/fader.h file

Backend for faders or other volume/gain controls.

Contents

Classes

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

Enums

enum FaderType { FADER_TYPE_NONE, FADER_TYPE_AUDIO_CHANNEL, FADER_TYPE_MIDI_CHANNEL, FADER_TYPE_GENERIC }

Typedefs

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

Functions

void fader_init_loaded(Fader* self)
Inits fader after a project is loaded.
void fader_init(Fader* self, FaderType type, Channel* ch)
Inits fader to default values.
void fader_set_amp(void* self, float amp)
Sets the amplitude of the fader.
void fader_add_amp(void* self, float amp)
Adds (or subtracts if negative) to the amplitude of the fader (clamped at 0.0 to 2.0).
auto fader_get_amp(void* self) -> float
Gets the fader amplitude (not db) FIXME is void * necessary? do it in the caller.
void fader_clear_buffers(Fader* self)
Clears all buffers.
void fader_set_fader_val(Fader* self, float fader_val)
Sets the fader levels from a normalized value 0.0-1.0 (such as in widgets).
void fader_disconnect_all(Fader* self)
Disconnects all ports connected to the fader.
void fader_copy(Fader* src, Fader* dest)
Copy the struct members from source to dest.
void fader_process(Fader* self, nframes_t local_offset, const nframes_t nframes)
Process the Fader.