commit 334e3b4187c76c782ed7c2bf15b7ae6d5022bca1
parent 1ea825f33166b0bbd0c1763d83d3932f37867a3d
Author: Johannes Lorenz <[email protected]>
Date: Thu, 20 Feb 2020 19:30:43 +0100
Spelling, Indentation, Compiler satisfaction
Diffstat:
3 files changed, 7 insertions(+), 7 deletions(-)
diff --git a/src/Params/PADnoteParameters.cpp b/src/Params/PADnoteParameters.cpp
@@ -916,7 +916,7 @@ int PADnoteParameters::sampleGenerator(PADnoteParameters::callback cb,
for(int nsample = 0; nsample < samplemax; ++nsample)
if(nsample % nthreads == threadno)
- {
+ {
if(do_abort())
break;
const float basefreqadjust =
@@ -933,7 +933,7 @@ int PADnoteParameters::sampleGenerator(PADnoteParameters::callback cb,
this_c->generatespectrum_otherModes(spectrum, spectrumsize,
basefreq * basefreqadjust);
- //the last samples contains the first samples
+ //the last samples contain the first samples
//(used for linear/cubic interpolation)
const int extra_samples = 5;
PADnoteParameters::Sample newsample;
diff --git a/src/Synth/OscilGen.h b/src/Synth/OscilGen.h
@@ -112,13 +112,13 @@ class OscilGen:public Presets
static const rtosc::Ports realtime_ports;
/* Oscillator Frequencies -
- * this is different than the hamonics set-up by the user,
+ * this is different than the harmonics set-up by the user,
* it may contains time-domain data if the antialiasing is turned off*/
fft_t *oscilFFTfreqs;
fft_t *pendingfreqs;
private:
- //This array stores some termporary data and it has OSCIL_SIZE elements
+ //This array stores some temporary data and it has OSCIL_SIZE elements
float *tmpsmps;
fft_t *outoscilFFTfreqs;
float *cachedbasefunc;
diff --git a/src/Synth/PADnote.cpp b/src/Synth/PADnote.cpp
@@ -239,7 +239,7 @@ inline void PADnote::fadein(float *smps)
tmp *= NoteGlobalPar.Fadein_adjustment;
int n;
- F2I(tmp, n); //how many samples is the fade-in
+ F2I(tmp, n) //how many samples is the fade-in
if(n > synth.buffersize)
n = synth.buffersize;
for(int i = 0; i < n; ++i) { //fade-in
@@ -357,7 +357,7 @@ int PADnote::Compute_Cubic(float *outl,
int PADnote::noteout(float *outl, float *outr)
-{
+{
computecurrentparameters();
float *smps = pars.sample[nsample].smp;
if(smps == NULL) {
@@ -372,7 +372,7 @@ int PADnote::noteout(float *outl, float *outr)
float freqrap = realfreq / smpfreq;
int freqhi = (int) (floor(freqrap));
- float freqlo = freqrap - floor(freqrap);
+ float freqlo = freqrap - floorf(freqrap);
if(interpolation)