Skip to content

Commit

Permalink
Minor code cleanup
Browse files Browse the repository at this point in the history
  • Loading branch information
x42 committed Aug 11, 2021
1 parent 274f8cb commit 37a5cdf
Show file tree
Hide file tree
Showing 3 changed files with 14 additions and 19 deletions.
4 changes: 0 additions & 4 deletions src/fat1.cc
Original file line number Diff line number Diff line change
Expand Up @@ -34,10 +34,6 @@
static pthread_mutex_t fftw_planner_lock = PTHREAD_MUTEX_INITIALIZER;
static unsigned int instance_count = 0;

typedef struct {
LV2_URID atom_Sequence;
} MidiMapURIs;

typedef struct {
const LV2_Atom_Sequence* midiin;

Expand Down
20 changes: 10 additions & 10 deletions src/retuner.cc
Original file line number Diff line number Diff line change
Expand Up @@ -27,15 +27,15 @@
using namespace LV2AT;

Retuner::Retuner (int fsamp)
: _fsamp (fsamp),
_refpitch (440.0f),
_notebias (0.0f),
_corrfilt (1.0f),
_corrgain (1.0f),
_corroffs (0.0f),
_notemask (0xFFF),
_fastmode (false),
_lastfastmode (false)
: _fsamp (fsamp)
, _refpitch (440.0f)
, _notebias (0.0f)
, _corrfilt (1.0f)
, _corrgain (1.0f)
, _corroffs (0.0f)
, _notemask (0xFFF)
, _fastmode (false)
, _lastfastmode (false)
{
int i, h;
float t, x, y;
Expand Down Expand Up @@ -151,7 +151,7 @@ Retuner::~Retuner (void)
}

int
Retuner::process (int nfram, float* inp, float* out)
Retuner::process (int nfram, float const* inp, float* out)
{
int i, ii, k, fi, ra, lra;
float ph, dp, r1, r2, dr, u1, u2, v;
Expand Down
9 changes: 4 additions & 5 deletions src/retuner.h
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ class Retuner
Retuner (int fsamp);
~Retuner (void);

int process (int nfram, float* inp, float* out);
int process (int nfram, float const* inp, float* out);

void
set_refpitch (float v)
Expand Down Expand Up @@ -85,9 +85,7 @@ class Retuner
int
get_noteset (void)
{
int k;

k = _notebits;
int k = _notebits;
_notebits = 0;
return k;
}
Expand All @@ -101,7 +99,8 @@ class Retuner
private:
void findcycle (void);
void finderror (void);
float cubic (float* v, float a);

static float cubic (float* v, float a);

int _fsamp;
int _ifmin;
Expand Down

0 comments on commit 37a5cdf

Please sign in to comment.