The spectral module enabled parameters still not doing so great...

This commit is contained in:
xenakios
2018-03-09 18:05:33 +02:00
parent 828c9e1479
commit 6d7671e8cf
6 changed files with 40 additions and 24 deletions

View File

@ -104,23 +104,23 @@ void ProcessedStretch::process_spectrum(REALTYPE *freq)
for (auto& e : m_spectrum_processes)
{
spectrum_copy(nfreq, freq, m_infreq.data());
if (e.m_index == 0 && e.m_enabled == true)
if (e.m_index == 0 && *e.m_enabled == true)
spectrum_do_harmonics(pars, m_tmpfreq1, nfreq, samplerate, m_infreq.data(), freq);
if (e.m_index == 1 && e.m_enabled == true)
if (e.m_index == 1 && *e.m_enabled == true)
spectrum_do_tonal_vs_noise(pars,nfreq,samplerate,m_tmpfreq1, m_infreq.data(), freq);
if (e.m_index == 2 && e.m_enabled == true)
if (e.m_index == 2 && *e.m_enabled == true)
spectrum_do_freq_shift(pars,nfreq,samplerate,m_infreq.data(), freq);
if (e.m_index == 3 && e.m_enabled == true)
if (e.m_index == 3 && *e.m_enabled == true)
spectrum_do_pitch_shift(pars,nfreq,m_infreq.data(), freq, pow(2.0f, pars.pitch_shift.cents / 1200.0f));
if (e.m_index == 4 && e.m_enabled == true)
if (e.m_index == 4 && *e.m_enabled == true)
spectrum_do_octave(pars,nfreq,samplerate, m_sumfreq, m_tmpfreq1, m_infreq.data(), freq);
if (e.m_index == 5 && e.m_enabled == true)
if (e.m_index == 5 && *e.m_enabled == true)
spectrum_spread(nfreq,samplerate,m_tmpfreq1,m_infreq.data(), freq, pars.spread.bandwidth);
if (e.m_index == 6 && e.m_enabled == true)
if (e.m_index == 6 && *e.m_enabled == true)
spectrum_do_filter(pars,nfreq,samplerate,m_infreq.data(), freq);
if (e.m_index == 7 && e.m_enabled == true)
if (e.m_index == 7 && *e.m_enabled == true)
spectrum_do_compressor(pars,nfreq, m_infreq.data(), freq);
if (e.m_index == 8 && e.m_enabled == true)
if (e.m_index == 8 && *e.m_enabled == true)
spectrum_do_free_filter(m_free_filter_envelope, nfreq, samplerate, m_infreq.data(), freq);
}
};