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

Classes

class  Envelope
class  Analogue

Macros

#define PORT_OUT   0
#define PORT_GATE   1
#define PORT_VELOCITY   2
#define PORT_FREQ   3
#define PORT_DCO1_OCTAVE   4
#define PORT_DCO1_WAVEFORM   5
#define PORT_DCO1_FM   6
#define PORT_DCO1_PWM   7
#define PORT_DCO1_ATTACK   8
#define PORT_DCO1_DECAY   9
#define PORT_DCO1_SUSTAIN   10
#define PORT_DCO1_RELEASE   11
#define PORT_DCO2_OCTAVE   12
#define PORT_DCO2_WAVEFORM   13
#define PORT_DCO2_FM   14
#define PORT_DCO2_PWM   15
#define PORT_DCO2_ATTACK   16
#define PORT_DCO2_DECAY   17
#define PORT_DCO2_SUSTAIN   18
#define PORT_DCO2_RELEASE   19
#define PORT_LFO_FREQ   20
#define PORT_LFO_FADEIN   21
#define PORT_FILT_ENV_MOD   22
#define PORT_FILT_LFO_MOD   23
#define PORT_FILT_RES   24
#define PORT_FILT_ATTACK   25
#define PORT_FILT_DECAY   26
#define PORT_FILT_SUSTAIN   27
#define PORT_FILT_RELEASE   28
#define NUM_PORTS   29
#define PI   3.14159265358979F

Typedefs

typedef struct Envelope Envelope

Functions

void initialise_analogue ()

Variables

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

Macro Definition Documentation

◆ NUM_PORTS

#define NUM_PORTS   29

◆ PI

#define PI   3.14159265358979F

◆ PORT_DCO1_ATTACK

#define PORT_DCO1_ATTACK   8

◆ PORT_DCO1_DECAY

#define PORT_DCO1_DECAY   9

◆ PORT_DCO1_FM

#define PORT_DCO1_FM   6

◆ PORT_DCO1_OCTAVE

#define PORT_DCO1_OCTAVE   4

◆ PORT_DCO1_PWM

#define PORT_DCO1_PWM   7

◆ PORT_DCO1_RELEASE

#define PORT_DCO1_RELEASE   11

◆ PORT_DCO1_SUSTAIN

#define PORT_DCO1_SUSTAIN   10

◆ PORT_DCO1_WAVEFORM

#define PORT_DCO1_WAVEFORM   5

◆ PORT_DCO2_ATTACK

#define PORT_DCO2_ATTACK   16

◆ PORT_DCO2_DECAY

#define PORT_DCO2_DECAY   17

◆ PORT_DCO2_FM

#define PORT_DCO2_FM   14

◆ PORT_DCO2_OCTAVE

#define PORT_DCO2_OCTAVE   12

◆ PORT_DCO2_PWM

#define PORT_DCO2_PWM   15

◆ PORT_DCO2_RELEASE

#define PORT_DCO2_RELEASE   19

◆ PORT_DCO2_SUSTAIN

#define PORT_DCO2_SUSTAIN   18

◆ PORT_DCO2_WAVEFORM

#define PORT_DCO2_WAVEFORM   13

◆ PORT_FILT_ATTACK

#define PORT_FILT_ATTACK   25

◆ PORT_FILT_DECAY

#define PORT_FILT_DECAY   26

◆ PORT_FILT_ENV_MOD

#define PORT_FILT_ENV_MOD   22

◆ PORT_FILT_LFO_MOD

#define PORT_FILT_LFO_MOD   23

◆ PORT_FILT_RELEASE

#define PORT_FILT_RELEASE   28

◆ PORT_FILT_RES

#define PORT_FILT_RES   24

◆ PORT_FILT_SUSTAIN

#define PORT_FILT_SUSTAIN   27

◆ PORT_FREQ

#define PORT_FREQ   3

◆ PORT_GATE

#define PORT_GATE   1

◆ PORT_LFO_FADEIN

#define PORT_LFO_FADEIN   21

◆ PORT_LFO_FREQ

#define PORT_LFO_FREQ   20

◆ PORT_OUT

#define PORT_OUT   0

◆ PORT_VELOCITY

#define PORT_VELOCITY   2

Typedef Documentation

◆ Envelope

typedef struct Envelope Envelope

Function Documentation

◆ initialise_analogue()

void initialise_analogue ( )

Variable Documentation

◆ g_psPortDescriptors

LADSPA_PortDescriptor g_psPortDescriptors[]
static

◆ g_psPortNames

const char* const g_psPortNames[]
static

◆ g_psPortRangeHints

LADSPA_PortRangeHint g_psPortRangeHints[]
static