LMMS
Loading...
Searching...
No Matches
lofi.cpp File Reference
#include <cmath>
#include <cstdlib>
#include "cmt.h"

Classes

class  Pop
class  Record
class  Compressor
class  BandwidthLimit
class  LoFi

Macros

#define PORT_IN_LEFT   0
#define PORT_IN_RIGHT   1
#define PORT_OUT_LEFT   2
#define PORT_OUT_RIGHT   3
#define PORT_CRACKLING   4
#define PORT_OVERLOADING   5
#define PORT_BANDWIDTH   6
#define NUM_PORTS   7
#define PI   3.14159265358979
#define MIN(x, y)
#define MAX(x, y)

Functions

static Poprecord_pop_new (Record *record, Pop *next)
static Poprecord_pop_loud_new (Record *record, Pop *next)
static LADSPA_Data distort (LADSPA_Data in)
void initialise_lofi ()

Variables

static LADSPA_PortDescriptor g_psPortDescriptors []
static const char *const g_psPortNames []
static LADSPA_PortRangeHint g_psPortRangeHints []

Macro Definition Documentation

◆ MAX

#define MAX ( x,
y )
Value:
((x)>(y)?(x):(y))
int y
Definition inflate.c:1588
unsigned x[BMAX+1]
Definition inflate.c:1586

◆ MIN

#define MIN ( x,
y )
Value:
((x)<(y)?(x):(y))

◆ NUM_PORTS

#define NUM_PORTS   7

◆ PI

#define PI   3.14159265358979

◆ PORT_BANDWIDTH

#define PORT_BANDWIDTH   6

◆ PORT_CRACKLING

#define PORT_CRACKLING   4

◆ PORT_IN_LEFT

#define PORT_IN_LEFT   0

◆ PORT_IN_RIGHT

#define PORT_IN_RIGHT   1

◆ PORT_OUT_LEFT

#define PORT_OUT_LEFT   2

◆ PORT_OUT_RIGHT

#define PORT_OUT_RIGHT   3

◆ PORT_OVERLOADING

#define PORT_OVERLOADING   5

Function Documentation

◆ distort()

LADSPA_Data distort ( LADSPA_Data in)
inlinestatic

◆ initialise_lofi()

void initialise_lofi ( )

◆ record_pop_loud_new()

Pop * record_pop_loud_new ( Record * record,
Pop * next )
static

◆ record_pop_new()

Pop * record_pop_new ( Record * record,
Pop * next )
static

Variable Documentation

◆ g_psPortDescriptors

LADSPA_PortDescriptor g_psPortDescriptors[]
static
Initial value:
=
{
}
#define LADSPA_PORT_INPUT
Definition ladspa.h:155
#define LADSPA_PORT_OUTPUT
Definition ladspa.h:158
#define LADSPA_PORT_CONTROL
Definition ladspa.h:162
#define LADSPA_PORT_AUDIO
Definition ladspa.h:166

◆ g_psPortNames

const char* const g_psPortNames[]
static
Initial value:
=
{
"In (Left)",
"In (Right)",
"Out (Left)",
"Out (Right)",
"Crackling (%)",
"Powersupply Overloading (%)",
"Opamp Bandwidth Limiting (Hz)"
}

◆ g_psPortRangeHints

LADSPA_PortRangeHint g_psPortRangeHints[]
static
Initial value:
=
{
{ 0, 0.0, 0.0 },
{ 0, 0.0, 0.0 },
{ 0, 0.0, 0.0 },
{ 0, 0.0, 0.0 },
LADSPA_HINT_INTEGER, -0.1, 100.1 },
}
#define LADSPA_HINT_BOUNDED_ABOVE
Definition ladspa.h:216
#define LADSPA_HINT_INTEGER
Definition ladspa.h:245
#define LADSPA_HINT_BOUNDED_BELOW
Definition ladspa.h:208