|
LMMS
|
#include "OscilGen.h"#include "../Misc/WaveShapeSmps.h"#include <cassert>#include <stdlib.h>#include <math.h>#include <stdio.h>Macros | |
| #define | _USE_MATH_DEFINES |
| #define | DIFF(par) |
| #define | FUNC(b) |
| #define | FILTER(x) |
Typedefs | |
| typedef float(* | base_func) (float, float) |
| typedef float(* | filter_func) (unsigned int, float, float) |
Functions | |
| void | clearAll (fft_t *freqs) |
| void | clearDC (fft_t *freqs) |
| float | normal (const fft_t *freqs, off_t x) |
| float | abs (const fft_t *freqs, off_t x) |
| float | arg (const fft_t *freqs, off_t x) |
| void | normalize (fft_t *freqs) |
| void | rmsNormalize (fft_t *freqs) |
| void | normalize (float *smps, size_t N) |
| FUNC (pulse) | |
| FUNC (saw) | |
| FUNC (triangle) | |
| FUNC (power) | |
| FUNC (gauss) | |
| FUNC (diode) | |
| FUNC (abssine) | |
| FUNC (pulsesine) | |
| FUNC (stretchsine) | |
| FUNC (chirp) | |
| FUNC (absstretchsine) | |
| FUNC (chebyshev) | |
| FUNC (sqr) | |
| FUNC (spike) | |
| FUNC (circle) | |
| base_func | getBaseFunction (unsigned char func) |
| FILTER (lp) | |
| FILTER (hp1) | |
| FILTER (hp1b) | |
| FILTER (bp1) | |
| FILTER (bs1) | |
| FILTER (lp2) | |
| FILTER (hp2) | |
| FILTER (bp2) | |
| FILTER (bs2) | |
| bool | floatEq (float a, float b) |
| FILTER (cos) | |
| FILTER (sin) | |
| FILTER (low_shelf) | |
| FILTER (s) | |
| filter_func | getFilter (unsigned char func) |
| #define _USE_MATH_DEFINES |
| #define FILTER | ( | x | ) |
| #define FUNC | ( | b | ) |
| typedef float(* base_func) (float, float) |
| typedef float(* filter_func) (unsigned int, float, float) |
| FILTER | ( | bp1 | ) |
| FILTER | ( | bp2 | ) |
| FILTER | ( | bs1 | ) |
| FILTER | ( | bs2 | ) |
| FILTER | ( | cos | ) |
| FILTER | ( | hp1 | ) |
| FILTER | ( | hp1b | ) |
| FILTER | ( | hp2 | ) |
| FILTER | ( | low_shelf | ) |
| FILTER | ( | lp | ) |
| FILTER | ( | lp2 | ) |
| FILTER | ( | s | ) |
| FILTER | ( | sin | ) |
| bool floatEq | ( | float | a, |
| float | b ) |
| FUNC | ( | abssine | ) |
| FUNC | ( | absstretchsine | ) |
| FUNC | ( | chebyshev | ) |
| FUNC | ( | chirp | ) |
| FUNC | ( | circle | ) |
| FUNC | ( | diode | ) |
| FUNC | ( | gauss | ) |
| FUNC | ( | power | ) |
| FUNC | ( | pulse | ) |
| FUNC | ( | pulsesine | ) |
| FUNC | ( | saw | ) |
| FUNC | ( | spike | ) |
| FUNC | ( | sqr | ) |
| FUNC | ( | stretchsine | ) |
| FUNC | ( | triangle | ) |
| base_func getBaseFunction | ( | unsigned char | func | ) |
| filter_func getFilter | ( | unsigned char | func | ) |
Take frequency spectrum and ensure values are normalized based upon magnitude to 0<=x<=1
|
inline |