Remove import file parameter and replace with spectrum module select parameter

This commit is contained in:
xenakios
2018-03-03 22:48:24 +02:00
parent 219a0b9a49
commit e1b0f6aaad
4 changed files with 14 additions and 16 deletions

View File

@ -157,7 +157,7 @@ PaulstretchpluginAudioProcessor::PaulstretchpluginAudioProcessor()
addParameter(new AudioParameterInt("freefilter_randomybands0", "Random bands", 2, 128, 16)); // 38
addParameter(new AudioParameterInt("freefilter_randomyrate0", "Random rate", 1, 32, 2)); // 39
addParameter(new AudioParameterFloat("freefilter_randomyamount0", "Random amount", 0.0, 1.0, 0.0)); // 40
addParameter(new AudioParameterBool("importfiletrigger0", "Import file", false)); // 41
addParameter(new AudioParameterInt("select_specmodule0", "Select module", 0, 8, 1)); // 41
auto& pars = getParameters();
for (const auto& p : pars)
m_reset_pars.push_back(p->getValue());
@ -795,18 +795,6 @@ void PaulstretchpluginAudioProcessor::timerCallback(int id)
{
if (id == 1)
{
if (*getBoolParameter(cpi_import_file)==true && m_import_dlg_open == false)
{
m_import_dlg_open = true;
*getBoolParameter(cpi_import_file) = false;
{
callGUI(this, [](PaulstretchpluginAudioProcessorEditor* ed)
{
ed->chooseFile();
}, true);
return;
}
}
bool capture = getParameter(cpi_capture_enabled);
if (capture == false && m_max_reclen != *getFloatParameter(cpi_max_capture_len))
{