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
#include <cstdlib>
#include <stdint.h>
#include <cmath>
namespace trnr {
// soft clipper based on ClipSoftly by Chris Johnson

View File

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

View File

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

View File

@@ -1,5 +1,8 @@
#pragma once
#include <cmath>
#include "audio_math.h"
namespace trnr {
template <typename sample>
class pump {
@@ -91,7 +94,7 @@ public:
// transfer function
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
sample output_l = input_l * gain_reduction_lin;

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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