LMMS
Loading...
Searching...
No Matches
blo.h File Reference
#include <math.h>
#include <stdio.h>
#include <unistd.h>
#include "ladspa-util.h"

Go to the source code of this file.

Classes

struct  blo_h_tables
union  blo_fixp
struct  blo_h_osc

Macros

#define BLO_N_WAVES   4
#define BLO_SINE   0
#define BLO_TRI   1
#define BLO_SQUARE   2
#define BLO_SAW   3
#define BLO_MMAP   0
#define BLO_MALLOC   1
#define BLO_N_HARMONICS   64
#define BLO_TABLE_WR   4
#define BLO_SIN_GEN(phase)
#define BLO_NEXT_TABLE   (all_tables + (table_count++ * (table_size + BLO_TABLE_WR)))

Functions

blo_h_tablesblo_h_tables_new (int table_size)
void blo_h_tables_free (blo_h_tables *tables)
blo_h_oscblo_h_new (blo_h_tables *tables, unsigned int wave, float sample_rate)
void blo_h_free (blo_h_osc *osc)
static void blo_hs_set_freq (blo_h_osc *this, const float f)
static void blo_hd_set_freq (blo_h_osc *this, const float f)
static float blo_hs_run_lin (blo_h_osc *this)
static float blo_hs_run_cub (blo_h_osc *this)
static float blo_hd_run_lin (blo_h_osc *const this)
static float blo_hd_run_cub (blo_h_osc *const this)

Macro Definition Documentation

◆ BLO_MALLOC

#define BLO_MALLOC   1

◆ BLO_MMAP

#define BLO_MMAP   0

◆ BLO_N_HARMONICS

#define BLO_N_HARMONICS   64

◆ BLO_N_WAVES

#define BLO_N_WAVES   4

◆ BLO_NEXT_TABLE

#define BLO_NEXT_TABLE   (all_tables + (table_count++ * (table_size + BLO_TABLE_WR)))

◆ BLO_SAW

#define BLO_SAW   3

◆ BLO_SIN_GEN

#define BLO_SIN_GEN ( phase)
Value:
sin((phase) * 2.0f * (float)M_PI / table_size_f)
#define M_PI
Definition compat.h:149

◆ BLO_SINE

#define BLO_SINE   0

◆ BLO_SQUARE

#define BLO_SQUARE   2

◆ BLO_TABLE_WR

#define BLO_TABLE_WR   4

◆ BLO_TRI

#define BLO_TRI   1

Function Documentation

◆ blo_h_free()

void blo_h_free ( blo_h_osc * osc)

◆ blo_h_new()

blo_h_osc * blo_h_new ( blo_h_tables * tables,
unsigned int wave,
float sample_rate )

◆ blo_h_tables_free()

void blo_h_tables_free ( blo_h_tables * tables)

◆ blo_h_tables_new()

blo_h_tables * blo_h_tables_new ( int table_size)

◆ blo_hd_run_cub()

float blo_hd_run_cub ( blo_h_osc *const this)
inlinestatic

◆ blo_hd_run_lin()

float blo_hd_run_lin ( blo_h_osc *const this)
inlinestatic

◆ blo_hd_set_freq()

void blo_hd_set_freq ( blo_h_osc * this,
const float f )
inlinestatic

◆ blo_hs_run_cub()

float blo_hs_run_cub ( blo_h_osc * this)
inlinestatic

◆ blo_hs_run_lin()

float blo_hs_run_lin ( blo_h_osc * this)
inlinestatic

◆ blo_hs_set_freq()

void blo_hs_set_freq ( blo_h_osc * this,
const float f )
inlinestatic