Skip to content

Commit

Permalink
fclamp() sampler out
Browse files Browse the repository at this point in the history
  • Loading branch information
copych authored Mar 13, 2023
1 parent 1c72d68 commit b989de0
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
8 changes: 4 additions & 4 deletions sampler.ino
Original file line number Diff line number Diff line change
Expand Up @@ -654,10 +654,10 @@ inline void Sampler::Process( float *left, float *right ) {
}
}
Effects.Process( &signal_l, &signal_r );
*left = signal_l * _volume;
*right = signal_r * _volume;
// *left = fclamp(signal_l * _volume, -1.0f, 1.0f);
// *right = fclamp(signal_r * _volume, -1.0f, 1.0f);
// *left = signal_l * _volume;
// *right = signal_r * _volume;
*left = fclamp(signal_l * _volume, -1.0f, 1.0f);
*right = fclamp(signal_r * _volume, -1.0f, 1.0f);
// *left = fast_tanh(signal_l * _volume);
// *right = fast_tanh(signal_r * _volume);
}
2 changes: 1 addition & 1 deletion synthvoice.h
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@
#include "overdrive.h"

#include "midi_config.h"
#include "smoother.h"
//#include "smoother.h"

typedef struct
{
Expand Down

0 comments on commit b989de0

Please sign in to comment.