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

Classes

class  BFormatEncoder
class  FMHFormatEncoder
class  FMHToB
class  BFormatToStereo
class  BFormatToQuad
class  BFormatToCube
class  FMHFormatToOct
class  BFormatRotation
class  FMHFormatRotation

Macros

#define ENC_INPUT   0
#define ENC_IN_X   1
#define ENC_IN_Y   2
#define ENC_IN_Z   3
#define ENC_OUT_W   4
#define ENC_OUT_X   5
#define ENC_OUT_Y   6
#define ENC_OUT_Z   7
#define ENC_OUT_R   8
#define ENC_OUT_S   9
#define ENC_OUT_T   10
#define ENC_OUT_U   11
#define ENC_OUT_V   12
#define F2B_IN_W   0
#define F2B_IN_X   1
#define F2B_IN_Y   2
#define F2B_IN_Z   3
#define F2B_IN_R   4
#define F2B_IN_S   5
#define F2B_IN_T   6
#define F2B_IN_U   7
#define F2B_IN_V   8
#define F2B_OUT_W   9
#define F2B_OUT_X   10
#define F2B_OUT_Y   11
#define F2B_OUT_Z   12
#define DECST_IN_W   0
#define DECST_IN_X   1
#define DECST_IN_Y   2
#define DECST_IN_Z   3
#define DECST_OUT_L   4
#define DECST_OUT_R   5
#define DECQ_IN_W   0
#define DECQ_IN_X   1
#define DECQ_IN_Y   2
#define DECQ_IN_Z   3
#define DECQ_OUT_FL   4
#define DECQ_OUT_FR   5
#define DECQ_OUT_BL   6
#define DECQ_OUT_BR   7
#define DECC_IN_W   0
#define DECC_IN_X   1
#define DECC_IN_Y   2
#define DECC_IN_Z   3
#define DECC_OUT_BFL   4
#define DECC_OUT_BFR   5
#define DECC_OUT_BBL   6
#define DECC_OUT_BBR   7
#define DECC_OUT_TFL   8
#define DECC_OUT_TFR   9
#define DECC_OUT_TBL   10
#define DECC_OUT_TBR   11
#define DECO_IN_W   0
#define DECO_IN_X   1
#define DECO_IN_Y   2
#define DECO_IN_Z   3
#define DECO_IN_R   4
#define DECO_IN_S   5
#define DECO_IN_T   6
#define DECO_IN_U   7
#define DECO_IN_V   8
#define DECO_OUT_FFL   9
#define DECO_OUT_FFR   10
#define DECO_OUT_FRR   11
#define DECO_OUT_BRR   12
#define DECO_OUT_BBR   13
#define DECO_OUT_BBL   14
#define DECO_OUT_BLL   15
#define DECO_OUT_FLL   16
#define BFROT_ANGLE   0
#define BFROT_IN_W   1
#define BFROT_IN_X   2
#define BFROT_IN_Y   3
#define BFROT_IN_Z   4
#define BFROT_OUT_W   5
#define BFROT_OUT_X   6
#define BFROT_OUT_Y   7
#define BFROT_OUT_Z   8
#define FMHROT_ANGLE   0
#define FMHROT_IN_W   1
#define FMHROT_IN_X   2
#define FMHROT_IN_Y   3
#define FMHROT_IN_Z   4
#define FMHROT_IN_R   5
#define FMHROT_IN_S   6
#define FMHROT_IN_T   7
#define FMHROT_IN_U   8
#define FMHROT_IN_V   9
#define FMHROT_OUT_W   10
#define FMHROT_OUT_X   11
#define FMHROT_OUT_Y   12
#define FMHROT_OUT_Z   13
#define FMHROT_OUT_R   14
#define FMHROT_OUT_S   15
#define FMHROT_OUT_T   16
#define FMHROT_OUT_U   17
#define FMHROT_OUT_V   18

Functions

static void runBFormatEncoder (LADSPA_Handle Instance, unsigned long SampleCount)
static void runFMHFormatEncoder (LADSPA_Handle Instance, unsigned long SampleCount)
static void runFMHToB (LADSPA_Handle Instance, unsigned long SampleCount)
static void runBFormatToStereo (LADSPA_Handle Instance, unsigned long SampleCount)
static void runBFormatToQuad (LADSPA_Handle Instance, unsigned long SampleCount)
static void runBFormatToCube (LADSPA_Handle Instance, unsigned long SampleCount)
static void runFMHFormatToOct (LADSPA_Handle Instance, unsigned long SampleCount)
static void runBFormatRotation (LADSPA_Handle Instance, unsigned long SampleCount)
static void runFMHFormatRotation (LADSPA_Handle Instance, unsigned long SampleCount)
void initialise_ambisonic ()

Macro Definition Documentation

◆ BFROT_ANGLE

#define BFROT_ANGLE   0

◆ BFROT_IN_W

#define BFROT_IN_W   1

◆ BFROT_IN_X

#define BFROT_IN_X   2

◆ BFROT_IN_Y

#define BFROT_IN_Y   3

◆ BFROT_IN_Z

#define BFROT_IN_Z   4

◆ BFROT_OUT_W

#define BFROT_OUT_W   5

◆ BFROT_OUT_X

#define BFROT_OUT_X   6

◆ BFROT_OUT_Y

#define BFROT_OUT_Y   7

◆ BFROT_OUT_Z

#define BFROT_OUT_Z   8

◆ DECC_IN_W

#define DECC_IN_W   0

◆ DECC_IN_X

#define DECC_IN_X   1

◆ DECC_IN_Y

#define DECC_IN_Y   2

◆ DECC_IN_Z

#define DECC_IN_Z   3

◆ DECC_OUT_BBL

#define DECC_OUT_BBL   6

◆ DECC_OUT_BBR

#define DECC_OUT_BBR   7

◆ DECC_OUT_BFL

#define DECC_OUT_BFL   4

◆ DECC_OUT_BFR

#define DECC_OUT_BFR   5

◆ DECC_OUT_TBL

#define DECC_OUT_TBL   10

◆ DECC_OUT_TBR

#define DECC_OUT_TBR   11

◆ DECC_OUT_TFL

#define DECC_OUT_TFL   8

◆ DECC_OUT_TFR

#define DECC_OUT_TFR   9

◆ DECO_IN_R

#define DECO_IN_R   4

◆ DECO_IN_S

#define DECO_IN_S   5

◆ DECO_IN_T

#define DECO_IN_T   6

◆ DECO_IN_U

#define DECO_IN_U   7

◆ DECO_IN_V

#define DECO_IN_V   8

◆ DECO_IN_W

#define DECO_IN_W   0

◆ DECO_IN_X

#define DECO_IN_X   1

◆ DECO_IN_Y

#define DECO_IN_Y   2

◆ DECO_IN_Z

#define DECO_IN_Z   3

◆ DECO_OUT_BBL

#define DECO_OUT_BBL   14

◆ DECO_OUT_BBR

#define DECO_OUT_BBR   13

◆ DECO_OUT_BLL

#define DECO_OUT_BLL   15

◆ DECO_OUT_BRR

#define DECO_OUT_BRR   12

◆ DECO_OUT_FFL

#define DECO_OUT_FFL   9

◆ DECO_OUT_FFR

#define DECO_OUT_FFR   10

◆ DECO_OUT_FLL

#define DECO_OUT_FLL   16

◆ DECO_OUT_FRR

#define DECO_OUT_FRR   11

◆ DECQ_IN_W

#define DECQ_IN_W   0

◆ DECQ_IN_X

#define DECQ_IN_X   1

◆ DECQ_IN_Y

#define DECQ_IN_Y   2

◆ DECQ_IN_Z

#define DECQ_IN_Z   3

◆ DECQ_OUT_BL

#define DECQ_OUT_BL   6

◆ DECQ_OUT_BR

#define DECQ_OUT_BR   7

◆ DECQ_OUT_FL

#define DECQ_OUT_FL   4

◆ DECQ_OUT_FR

#define DECQ_OUT_FR   5

◆ DECST_IN_W

#define DECST_IN_W   0

◆ DECST_IN_X

#define DECST_IN_X   1

◆ DECST_IN_Y

#define DECST_IN_Y   2

◆ DECST_IN_Z

#define DECST_IN_Z   3

◆ DECST_OUT_L

#define DECST_OUT_L   4

◆ DECST_OUT_R

#define DECST_OUT_R   5

◆ ENC_IN_X

#define ENC_IN_X   1

◆ ENC_IN_Y

#define ENC_IN_Y   2

◆ ENC_IN_Z

#define ENC_IN_Z   3

◆ ENC_INPUT

#define ENC_INPUT   0

◆ ENC_OUT_R

#define ENC_OUT_R   8

◆ ENC_OUT_S

#define ENC_OUT_S   9

◆ ENC_OUT_T

#define ENC_OUT_T   10

◆ ENC_OUT_U

#define ENC_OUT_U   11

◆ ENC_OUT_V

#define ENC_OUT_V   12

◆ ENC_OUT_W

#define ENC_OUT_W   4

◆ ENC_OUT_X

#define ENC_OUT_X   5

◆ ENC_OUT_Y

#define ENC_OUT_Y   6

◆ ENC_OUT_Z

#define ENC_OUT_Z   7

◆ F2B_IN_R

#define F2B_IN_R   4

◆ F2B_IN_S

#define F2B_IN_S   5

◆ F2B_IN_T

#define F2B_IN_T   6

◆ F2B_IN_U

#define F2B_IN_U   7

◆ F2B_IN_V

#define F2B_IN_V   8

◆ F2B_IN_W

#define F2B_IN_W   0

◆ F2B_IN_X

#define F2B_IN_X   1

◆ F2B_IN_Y

#define F2B_IN_Y   2

◆ F2B_IN_Z

#define F2B_IN_Z   3

◆ F2B_OUT_W

#define F2B_OUT_W   9

◆ F2B_OUT_X

#define F2B_OUT_X   10

◆ F2B_OUT_Y

#define F2B_OUT_Y   11

◆ F2B_OUT_Z

#define F2B_OUT_Z   12

◆ FMHROT_ANGLE

#define FMHROT_ANGLE   0

◆ FMHROT_IN_R

#define FMHROT_IN_R   5

◆ FMHROT_IN_S

#define FMHROT_IN_S   6

◆ FMHROT_IN_T

#define FMHROT_IN_T   7

◆ FMHROT_IN_U

#define FMHROT_IN_U   8

◆ FMHROT_IN_V

#define FMHROT_IN_V   9

◆ FMHROT_IN_W

#define FMHROT_IN_W   1

◆ FMHROT_IN_X

#define FMHROT_IN_X   2

◆ FMHROT_IN_Y

#define FMHROT_IN_Y   3

◆ FMHROT_IN_Z

#define FMHROT_IN_Z   4

◆ FMHROT_OUT_R

#define FMHROT_OUT_R   14

◆ FMHROT_OUT_S

#define FMHROT_OUT_S   15

◆ FMHROT_OUT_T

#define FMHROT_OUT_T   16

◆ FMHROT_OUT_U

#define FMHROT_OUT_U   17

◆ FMHROT_OUT_V

#define FMHROT_OUT_V   18

◆ FMHROT_OUT_W

#define FMHROT_OUT_W   10

◆ FMHROT_OUT_X

#define FMHROT_OUT_X   11

◆ FMHROT_OUT_Y

#define FMHROT_OUT_Y   12

◆ FMHROT_OUT_Z

#define FMHROT_OUT_Z   13

Function Documentation

◆ initialise_ambisonic()

void initialise_ambisonic ( )

◆ runBFormatEncoder()

void runBFormatEncoder ( LADSPA_Handle Instance,
unsigned long SampleCount )
static

◆ runBFormatRotation()

void runBFormatRotation ( LADSPA_Handle Instance,
unsigned long SampleCount )
static

◆ runBFormatToCube()

void runBFormatToCube ( LADSPA_Handle Instance,
unsigned long SampleCount )
static

◆ runBFormatToQuad()

void runBFormatToQuad ( LADSPA_Handle Instance,
unsigned long SampleCount )
static

◆ runBFormatToStereo()

void runBFormatToStereo ( LADSPA_Handle Instance,
unsigned long SampleCount )
static

◆ runFMHFormatEncoder()

void runFMHFormatEncoder ( LADSPA_Handle Instance,
unsigned long SampleCount )
static

◆ runFMHFormatRotation()

void runFMHFormatRotation ( LADSPA_Handle Instance,
unsigned long SampleCount )
static

◆ runFMHFormatToOct()

void runFMHFormatToOct ( LADSPA_Handle Instance,
unsigned long SampleCount )
static

◆ runFMHToB()

void runFMHToB ( LADSPA_Handle Instance,
unsigned long SampleCount )
static