Browse Source

The stretch source doesn't really need to do anything except inc the param change count when the spectral module enabled parameters have changed. However this could get messed up if the spectral module order isn't correctly set in the stretcher instances already...Hmm.

tags/1.2.0
xenakios 7 years ago
parent
commit
cfbbad0e74
1 changed files with 2 additions and 6 deletions
  1. +2
    -6
      Source/PS_Source/StretchSource.cpp

+ 2
- 6
Source/PS_Source/StretchSource.cpp View File

@@ -204,16 +204,12 @@ void StretchAudioSource::setSpectralModulesEnabled(const std::array<AudioParamet
}
}
#endif

void StretchAudioSource::setSpectralModuleEnabled(int index, bool b)
{
Logger::writeToLog(String(index));
ScopedLock locker(m_cs);
for (int i = 0; i < m_stretchers.size(); ++i)
{
m_stretchers[i]->m_spectrum_processes = m_specproc_order;
}
++m_param_change_count;
}

void StretchAudioSource::setLoopXFadeLength(double lenseconds)
{
if (lenseconds == m_loopxfadelen)


Loading…
Cancel
Save