clean up includes

This commit is contained in:
2025-05-15 14:00:27 +02:00
parent f4f61a2fd4
commit 2b077a13a2
12 changed files with 14 additions and 8 deletions

View File

@@ -1,6 +1,7 @@
#pragma once #pragma once
#include <cstdlib> #include <cstdlib>
#include <stdint.h> #include <stdint.h>
#include <cmath>
namespace trnr { namespace trnr {
// soft clipper based on ClipSoftly by Chris Johnson // soft clipper based on ClipSoftly by Chris Johnson

View File

@@ -1,6 +1,7 @@
#pragma once #pragma once
#include <cstdlib> #include <cstdlib>
#include <stdint.h> #include <stdint.h>
#include <cmath>
namespace trnr { namespace trnr {
// modeled tube preamp based on tube2 by Chris Johnson // modeled tube preamp based on tube2 by Chris Johnson

View File

@@ -1,6 +1,7 @@
#pragma once #pragma once
#include <cstdlib> #include <cstdlib>
#include <stdint.h> #include <stdint.h>
#include <cmath>
namespace trnr { namespace trnr {
// compressor based on pop2 by Chris Johnson // compressor based on pop2 by Chris Johnson

View File

@@ -1,5 +1,8 @@
#pragma once #pragma once
#include <cmath>
#include "audio_math.h"
namespace trnr { namespace trnr {
template <typename sample> template <typename sample>
class pump { class pump {
@@ -91,7 +94,7 @@ public:
// transfer function // transfer function
float gain_reduction_db = envelope_db * (slope - 1.0); float gain_reduction_db = envelope_db * (slope - 1.0);
float gain_reduction_lin = trnr::db_2_lin(gain_reduction_db); float gain_reduction_lin = db_2_lin(gain_reduction_db);
// compress left and right signals // compress left and right signals
sample output_l = input_l * gain_reduction_lin; sample output_l = input_l * gain_reduction_lin;

View File

@@ -1,6 +1,7 @@
#pragma once #pragma once
#include <cstdlib> #include <cstdlib>
#include <stdint.h> #include <stdint.h>
#include <cmath>
namespace trnr { namespace trnr {
// 3 band equalizer with high/lowpass filters based on EQ by Chris Johnson. // 3 band equalizer with high/lowpass filters based on EQ by Chris Johnson.

View File

@@ -2,7 +2,7 @@
#define _USE_MATH_DEFINES #define _USE_MATH_DEFINES
#include <array> #include <array>
#include <math.h> #include <math.h>
#include <vector> #include <stdint.h>
namespace trnr { namespace trnr {
template <typename t_sample> template <typename t_sample>

View File

@@ -2,7 +2,7 @@
#define _USE_MATH_DEFINES #define _USE_MATH_DEFINES
#include <array> #include <array>
#include <math.h> #include <math.h>
#include <vector> #include <stdint.h>
namespace trnr { namespace trnr {
template <typename t_sample> template <typename t_sample>

View File

@@ -2,7 +2,7 @@
#define _USE_MATH_DEFINES #define _USE_MATH_DEFINES
#include <array> #include <array>
#include <math.h> #include <math.h>
#include <vector> #include <stdint.h>
namespace trnr { namespace trnr {
template <typename t_sample> template <typename t_sample>

View File

@@ -2,7 +2,7 @@
#define _USE_MATH_DEFINES #define _USE_MATH_DEFINES
#include <array> #include <array>
#include <math.h> #include <math.h>
#include <vector> #include <stdint.h>
namespace trnr { namespace trnr {
template <typename t_sample> template <typename t_sample>

View File

@@ -3,7 +3,6 @@
#include "midi_event.h" #include "midi_event.h"
#include "voice_allocator.h" #include "voice_allocator.h"
#include <cstring> #include <cstring>
#include <memory>
#include <vector> #include <vector>
namespace trnr { namespace trnr {

View File

@@ -1,5 +1,6 @@
#pragma once #pragma once
#include <array> #include <array>
#include <cmath>
namespace trnr { namespace trnr {

View File

@@ -2,7 +2,6 @@
#include "../filter/chebyshev.h" #include "../filter/chebyshev.h"
#include "../companding/ulaw.h" #include "../companding/ulaw.h"
#include <iostream>
namespace trnr { namespace trnr {
@@ -130,7 +129,7 @@ private:
double wrap(double value, double max) { double wrap(double value, double max) {
while (value > max) { while (value > max) {
value =- max; value -= max;
} }
return value; return value;
} }