Consolidate and clean up storing and recalling parameters. Enable storing and recalling of spectral module order again, using different state IDs. So old states will be discarded, but oh well...

This commit is contained in:
xenakios
2018-03-21 13:15:48 +02:00
parent fb73453723
commit 6747d20aa8
3 changed files with 50 additions and 36 deletions

View File

@ -172,7 +172,8 @@ inline void spectrum_copy(int nfreq, REALTYPE* freq1, REALTYPE* freq2)
inline void spectrum_spread(int nfreq, double samplerate,
std::vector<REALTYPE>& tmpfreq1,
REALTYPE *freq1, REALTYPE *freq2, REALTYPE spread_bandwidth) {
REALTYPE *freq1, REALTYPE *freq2, REALTYPE spread_bandwidth)
{
//convert to log spectrum
REALTYPE minfreq = 20.0f;
REALTYPE maxfreq = 0.5f*samplerate;