From 919712e3f7c46bbfda18d83f7e6811f4d8bb66e0 Mon Sep 17 00:00:00 2001 From: Steve Daulton Date: Mon, 14 Mar 2016 09:22:25 +0000 Subject: [PATCH] Fix default EffectTypeProcess for Nyquist Prompt Nyquist Prompt did not default to process type if a previous script in the current session set a different type. --- src/effects/nyquist/Nyquist.cpp | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/src/effects/nyquist/Nyquist.cpp b/src/effects/nyquist/Nyquist.cpp index d26ed475c..2695b0533 100644 --- a/src/effects/nyquist/Nyquist.cpp +++ b/src/effects/nyquist/Nyquist.cpp @@ -380,6 +380,11 @@ bool NyquistEffect::SetAutomationParameters(EffectAutomationParameters & parms) bool NyquistEffect::Init() { + // EffectType may not be defined in script, so + // reset each time we call the Nyquist Prompt. + if (mIsPrompt) + mType = EffectTypeProcess; + // As of Audacity 2.1.2 rc1, 'spectral' effects are allowed only if // the selected track(s) are in a spectrogram view, and there is at // least one frequency bound and Spectral Selection is enabled for the