Skip to content

Commit 36fdfec

Browse files
committed
Remove Whitespace
1 parent f5b5f7c commit 36fdfec

File tree

1 file changed

+13
-13
lines changed

1 file changed

+13
-13
lines changed

src/AudioEffects/AudioEffect.h

Lines changed: 13 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
#pragma once
2-
#include <stdint.h>
2+
#include <stdint.h>
33
#include "AudioTools/AudioLogger.h"
44
#include "AudioEffects/AudioParameters.h"
55

@@ -18,7 +18,7 @@ class AudioEffect {
1818
public:
1919
AudioEffect() = default;
2020
virtual ~AudioEffect() = default;
21-
21+
2222
/// calculates the effect output from the input
2323
virtual effect_t process(effect_t in) = 0;
2424

@@ -68,12 +68,12 @@ class AudioEffect {
6868
* @brief Boost AudioEffect
6969
* @author Phil Schatzmann
7070
* @copyright GPLv3
71-
*
71+
*
7272
*/
7373

7474
class Boost : public AudioEffect {
7575
public:
76-
/// Boost Constructor: volume 0.1 - 1.0: decrease result; volume >0: increase result
76+
/// Boost Constructor: volume 0.1 - 1.0: decrease result; volume >0: increase result
7777
Boost(float volume=1.0){
7878
effect_value = volume;
7979
}
@@ -91,7 +91,7 @@ class Boost : public AudioEffect {
9191
effect_t process(effect_t input){
9292
if (!active()) return input;
9393
int32_t result = effect_value * input;
94-
// clip to int16_t
94+
// clip to int16_t
9595
return clip(result);
9696
}
9797

@@ -105,7 +105,7 @@ class Boost : public AudioEffect {
105105

106106
/**
107107
* @brief Distortion AudioEffect
108-
*
108+
*
109109
* @author Phil Schatzmann
110110
* @copyright GPLv3
111111
*/
@@ -115,7 +115,7 @@ class Distortion : public AudioEffect {
115115
/// Distortion Constructor: e.g. use clipThreashold 4990 and maxInput=6500
116116
Distortion(int16_t clipThreashold=4990, int16_t maxInput=6500){
117117
p_clip_threashold = clipThreashold;
118-
max_input = maxInput;
118+
max_input = maxInput;
119119
}
120120

121121
Distortion(const Distortion &copy) = default;
@@ -134,12 +134,12 @@ class Distortion : public AudioEffect {
134134

135135
int16_t maxInput(){
136136
return max_input;
137-
}
137+
}
138138

139139
effect_t process(effect_t input){
140140
if (!active()) return input;
141141
//the input signal is 16bits (values from -32768 to +32768
142-
//the value of input is clipped to the distortion_threshold value
142+
//the value of input is clipped to the distortion_threshold value
143143
return clip(input,p_clip_threashold, max_input);
144144
}
145145

@@ -155,7 +155,7 @@ class Distortion : public AudioEffect {
155155

156156
/**
157157
* @brief Fuzz AudioEffect
158-
*
158+
*
159159
* @author Phil Schatzmann
160160
* @copyright GPLv3
161161
*/
@@ -247,7 +247,7 @@ class Tremolo : public AudioEffect {
247247
float signal_depth = (100.0 - p_percent) / 100.0;
248248

249249
float tremolo_factor = tremolo_depth / rate_count_half;
250-
int32_t out = (signal_depth * input) + (tremolo_factor * count * input);
250+
int32_t out = (signal_depth * input) + (tremolo_factor * count * input);
251251

252252
//saw tooth shaped counter
253253
count+=inc;
@@ -315,7 +315,7 @@ class Delay : public AudioEffect {
315315
// add actual input value
316316
p_history->write(input);
317317
// mix input with result
318-
return (value * p_percent / 100) + (input * (100-p_percent)/100);
318+
return (value * p_percent / 100) + (input * (100-p_percent)/100);
319319
}
320320

321321
Delay *clone() {
@@ -391,7 +391,7 @@ class ADSRGain : public AudioEffect {
391391
float sustainLevel(){
392392
return adsr->sustainLevel();
393393
}
394-
394+
395395
void setReleaseRate(float r){
396396
adsr->setReleaseRate(r);
397397
}

0 commit comments

Comments
 (0)