diff --git a/Source/PS_Source/ProcessedStretch.h b/Source/PS_Source/ProcessedStretch.h index ea28951..1ed4360 100644 --- a/Source/PS_Source/ProcessedStretch.h +++ b/Source/PS_Source/ProcessedStretch.h @@ -247,7 +247,7 @@ inline void spectrum_spread(int nfreq, double samplerate, }; -inline void spectrum_do_compressor(ProcessParameters& pars, int nfreq, REALTYPE *freq1, REALTYPE *freq2) { +inline void spectrum_do_compressor(const ProcessParameters& pars, int nfreq, REALTYPE *freq1, REALTYPE *freq2) { REALTYPE rms = 0.0; for (int i = 0; i& tmpfreq1, REALTYPE *freq1, REALTYPE *freq2) { spectrum_spread(nfreq, samplerate, tmpfreq1, freq1, tmpfreq1.data(), pars.tonal_vs_noise.bandwidth); @@ -291,7 +291,7 @@ inline void spectrum_do_tonal_vs_noise(ProcessParameters& pars, int nfreq, doubl }; -inline void spectrum_do_harmonics(ProcessParameters& pars, std::vector& tmpfreq1, int nfreq, double samplerate, REALTYPE *freq1, REALTYPE *freq2) { +inline void spectrum_do_harmonics(const ProcessParameters& pars, std::vector& tmpfreq1, int nfreq, double samplerate, REALTYPE *freq1, REALTYPE *freq2) { REALTYPE freq = pars.harmonics.freq; REALTYPE bandwidth = pars.harmonics.bandwidth; int nharmonics = pars.harmonics.nharmonics; @@ -347,7 +347,7 @@ inline void spectrum_zero(int nfreq,REALTYPE *freq1) { for (int i = 0; i& sumfreq, std::vector& tmpfreq1, REALTYPE *freq1, REALTYPE *freq2) { @@ -408,7 +408,7 @@ inline void spectrum_do_octave(ProcessParameters& pars, int nfreq, double sample for (int i = 0; i