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

Classes

class  Envelope
class  Organ

Macros

#define PORT_OUT   0
#define PORT_GATE   1
#define PORT_VELOCITY   2
#define PORT_FREQ   3
#define PORT_BRASS   4
#define PORT_FLUTE   5
#define PORT_REED   6
#define PORT_HARM0   7
#define PORT_HARM1   8
#define PORT_HARM2   9
#define PORT_HARM3   10
#define PORT_HARM4   11
#define PORT_HARM5   12
#define PORT_ATTACK_LO   13
#define PORT_DECAY_LO   14
#define PORT_SUSTAIN_LO   15
#define PORT_RELEASE_LO   16
#define PORT_ATTACK_HI   17
#define PORT_DECAY_HI   18
#define PORT_SUSTAIN_HI   19
#define PORT_RELEASE_HI   20
#define NUM_PORTS   21
#define RESOLUTION   16384
#define PI   3.14159265358979

Typedefs

typedef struct Envelope Envelope

Functions

void initialise_organ ()

Variables

static LADSPA_Datag_sine_table
static LADSPA_Datag_triangle_table
static LADSPA_Datag_pulse_table
static int ref_count
static LADSPA_PortDescriptor g_psPortDescriptors []
static const char *const g_psPortNames []
static LADSPA_PortRangeHint g_psPortRangeHints []

Macro Definition Documentation

◆ NUM_PORTS

#define NUM_PORTS   21

◆ PI

#define PI   3.14159265358979

◆ PORT_ATTACK_HI

#define PORT_ATTACK_HI   17

◆ PORT_ATTACK_LO

#define PORT_ATTACK_LO   13

◆ PORT_BRASS

#define PORT_BRASS   4

◆ PORT_DECAY_HI

#define PORT_DECAY_HI   18

◆ PORT_DECAY_LO

#define PORT_DECAY_LO   14

◆ PORT_FLUTE

#define PORT_FLUTE   5

◆ PORT_FREQ

#define PORT_FREQ   3

◆ PORT_GATE

#define PORT_GATE   1

◆ PORT_HARM0

#define PORT_HARM0   7

◆ PORT_HARM1

#define PORT_HARM1   8

◆ PORT_HARM2

#define PORT_HARM2   9

◆ PORT_HARM3

#define PORT_HARM3   10

◆ PORT_HARM4

#define PORT_HARM4   11

◆ PORT_HARM5

#define PORT_HARM5   12

◆ PORT_OUT

#define PORT_OUT   0

◆ PORT_REED

#define PORT_REED   6

◆ PORT_RELEASE_HI

#define PORT_RELEASE_HI   20

◆ PORT_RELEASE_LO

#define PORT_RELEASE_LO   16

◆ PORT_SUSTAIN_HI

#define PORT_SUSTAIN_HI   19

◆ PORT_SUSTAIN_LO

#define PORT_SUSTAIN_LO   15

◆ PORT_VELOCITY

#define PORT_VELOCITY   2

◆ RESOLUTION

#define RESOLUTION   16384

Typedef Documentation

◆ Envelope

typedef struct Envelope Envelope

Function Documentation

◆ initialise_organ()

void initialise_organ ( )

Variable Documentation

◆ g_psPortDescriptors

◆ g_psPortNames

const char* const g_psPortNames[]
static
Initial value:
=
{
"Out",
"Gate",
"Velocity",
"Frequency (Hz)",
"Brass", "Reed", "Flute",
"16th Harmonic", "8th Harmonic",
"5 1/3rd Harmonic", "4th Harmonic",
"2 2/3rd Harmonic", "2nd Harmonic",
"Attack Lo (Secs)", "Decay Lo (Secs)", "Sustain Lo (Level)", "Release Lo (Secs)",
"Attack Hi (Secs)", "Decay Hi (Secs)", "Sustain Hi (Level)", "Release Hi (Secs)",
}

◆ g_psPortRangeHints

LADSPA_PortRangeHint g_psPortRangeHints[]
static
Initial value:
=
{
{ 0, 0.0, 0.0 },
{ LADSPA_HINT_TOGGLED, 0.0, 0.0 },
{ LADSPA_HINT_TOGGLED, 0.0, 0.0 },
{ LADSPA_HINT_TOGGLED, 0.0, 0.0 },
{ LADSPA_HINT_TOGGLED, 0.0, 0.0 },
}
#define LADSPA_HINT_BOUNDED_ABOVE
Definition ladspa.h:216
#define LADSPA_HINT_TOGGLED
Definition ladspa.h:224
#define LADSPA_HINT_BOUNDED_BELOW
Definition ladspa.h:208

◆ g_pulse_table

LADSPA_Data* g_pulse_table
static

◆ g_sine_table

LADSPA_Data* g_sine_table
static

◆ g_triangle_table

LADSPA_Data* g_triangle_table
static

◆ ref_count

int ref_count
static