From 9630daba152b17baff6ed2774a17e315cbf05ec7 Mon Sep 17 00:00:00 2001 From: xenakios Date: Sat, 23 Dec 2017 21:46:37 +0200 Subject: [PATCH] Use standalone functions for all spectral processors. Readme change. --- Source/PS_Source/ProcessedStretch.cpp | 14 +++++++------- readme.txt | 2 +- 2 files changed, 8 insertions(+), 8 deletions(-) diff --git a/Source/PS_Source/ProcessedStretch.cpp b/Source/PS_Source/ProcessedStretch.cpp index e4f4d4c..b1c8e59 100644 --- a/Source/PS_Source/ProcessedStretch.cpp +++ b/Source/PS_Source/ProcessedStretch.cpp @@ -108,19 +108,19 @@ void ProcessedStretch::process_spectrum(REALTYPE *freq) if (e == 0 && pars.harmonics.enabled) spectrum_do_harmonics(pars, tmpfreq1, nfreq, samplerate, infreq.data(), freq); if (e == 1 && pars.tonal_vs_noise.enabled) - do_tonal_vs_noise(infreq.data(), freq); + spectrum_do_tonal_vs_noise(pars,nfreq,samplerate,tmpfreq1, infreq.data(), freq); if (e == 2 && pars.freq_shift.enabled) - do_freq_shift(infreq.data(), freq); + spectrum_do_freq_shift(pars,nfreq,samplerate,infreq.data(), freq); if (e == 3 && pars.pitch_shift.enabled) - do_pitch_shift(infreq.data(), freq, pow(2.0f, pars.pitch_shift.cents / 1200.0f)); + spectrum_do_pitch_shift(pars,nfreq,infreq.data(), freq, pow(2.0f, pars.pitch_shift.cents / 1200.0f)); if (e == 4 && pars.octave.enabled) - do_octave(infreq.data(), freq); + spectrum_do_octave(pars,nfreq,samplerate, sumfreq, tmpfreq1, infreq.data(), freq); if (e == 5 && pars.spread.enabled) - do_spread(infreq.data(), freq); + spectrum_spread(nfreq,samplerate,tmpfreq1,infreq.data(), freq, pars.spread.bandwidth); if (e == 6 && pars.filter.enabled) - do_filter(infreq.data(), freq); + spectrum_do_filter(pars,nfreq,samplerate,infreq.data(), freq); if (e == 7 && pars.compressor.enabled) - do_compressor(infreq.data(), freq); + spectrum_do_compressor(pars,nfreq, infreq.data(), freq); } #ifdef USE_OLD_SPEC_PROC diff --git a/readme.txt b/readme.txt index fd964a6..81ccc0f 100644 --- a/readme.txt +++ b/readme.txt @@ -32,5 +32,5 @@ History : -Allow setting background prebuffering amount in settings, including none. (None is mostly useful in case the plugin doesn't detect the host is offline rendering. For real time playback none is likely only going to work with small FFT sizes.) - -Slightly better GUI layout but still just 2 columns of parameters + -Slightly better GUI layout but still mostly just 2 columns of parameters -Remember last file import folder