clean up includes
This commit is contained in:
@@ -1,6 +1,7 @@
|
||||
#pragma once
|
||||
#include <cstdlib>
|
||||
#include <stdint.h>
|
||||
#include <cmath>
|
||||
|
||||
namespace trnr {
|
||||
// soft clipper based on ClipSoftly by Chris Johnson
|
||||
|
||||
@@ -1,6 +1,7 @@
|
||||
#pragma once
|
||||
#include <cstdlib>
|
||||
#include <stdint.h>
|
||||
#include <cmath>
|
||||
|
||||
namespace trnr {
|
||||
// modeled tube preamp based on tube2 by Chris Johnson
|
||||
|
||||
@@ -1,6 +1,7 @@
|
||||
#pragma once
|
||||
#include <cstdlib>
|
||||
#include <stdint.h>
|
||||
#include <cmath>
|
||||
|
||||
namespace trnr {
|
||||
// compressor based on pop2 by Chris Johnson
|
||||
|
||||
@@ -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;
|
||||
|
||||
@@ -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.
|
||||
|
||||
@@ -2,7 +2,7 @@
|
||||
#define _USE_MATH_DEFINES
|
||||
#include <array>
|
||||
#include <math.h>
|
||||
#include <vector>
|
||||
#include <stdint.h>
|
||||
|
||||
namespace trnr {
|
||||
template <typename t_sample>
|
||||
|
||||
@@ -2,7 +2,7 @@
|
||||
#define _USE_MATH_DEFINES
|
||||
#include <array>
|
||||
#include <math.h>
|
||||
#include <vector>
|
||||
#include <stdint.h>
|
||||
|
||||
namespace trnr {
|
||||
template <typename t_sample>
|
||||
|
||||
@@ -2,7 +2,7 @@
|
||||
#define _USE_MATH_DEFINES
|
||||
#include <array>
|
||||
#include <math.h>
|
||||
#include <vector>
|
||||
#include <stdint.h>
|
||||
|
||||
namespace trnr {
|
||||
template <typename t_sample>
|
||||
|
||||
@@ -2,7 +2,7 @@
|
||||
#define _USE_MATH_DEFINES
|
||||
#include <array>
|
||||
#include <math.h>
|
||||
#include <vector>
|
||||
#include <stdint.h>
|
||||
|
||||
namespace trnr {
|
||||
template <typename t_sample>
|
||||
|
||||
@@ -3,7 +3,6 @@
|
||||
#include "midi_event.h"
|
||||
#include "voice_allocator.h"
|
||||
#include <cstring>
|
||||
#include <memory>
|
||||
#include <vector>
|
||||
|
||||
namespace trnr {
|
||||
|
||||
@@ -1,5 +1,6 @@
|
||||
#pragma once
|
||||
#include <array>
|
||||
#include <cmath>
|
||||
|
||||
namespace trnr {
|
||||
|
||||
|
||||
@@ -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;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user