From 0ce9f5ad16f2758a979e6b4f2f66c995fc44925d Mon Sep 17 00:00:00 2001 From: "stevethefiddle@gmail.com" Date: Fri, 24 Oct 2014 12:04:06 +0000 Subject: [PATCH] Allow all output from Nyquist Prompt effect. As the Nyquist Prompt is the only direct access to input Nyquist commands, it needs to remain flexible and versatile. --- src/effects/nyquist/Nyquist.cpp | 11 ++++++----- 1 file changed, 6 insertions(+), 5 deletions(-) diff --git a/src/effects/nyquist/Nyquist.cpp b/src/effects/nyquist/Nyquist.cpp index 959bc4701..2874c7235 100644 --- a/src/effects/nyquist/Nyquist.cpp +++ b/src/effects/nyquist/Nyquist.cpp @@ -891,8 +891,9 @@ bool EffectNyquist::ProcessOne() // True if not process type. // If not returning audio from process effect, - // return first reult then stop (disables preview). - return (!(GetEffectFlags() & PROCESS_EFFECT)); + // return first reult then stop (disables preview) + // but allow all output from Nyquist Prompt. + return (!(GetEffectFlags() & PROCESS_EFFECT)|| mInteractive); } if (rval == nyx_double) { @@ -901,7 +902,7 @@ bool EffectNyquist::ProcessOne() nyx_get_double()); wxMessageBox(str, wxT("Nyquist"), wxOK | wxCENTRE, mParent); - return (!(GetEffectFlags() & PROCESS_EFFECT)); + return (!(GetEffectFlags() & PROCESS_EFFECT)|| mInteractive); } if (rval == nyx_int) { @@ -910,7 +911,7 @@ bool EffectNyquist::ProcessOne() nyx_get_int()); wxMessageBox(str, wxT("Nyquist"), wxOK | wxCENTRE, mParent); - return (!(GetEffectFlags() & PROCESS_EFFECT)); + return (!(GetEffectFlags() & PROCESS_EFFECT)|| mInteractive); } if (rval == nyx_labels) { @@ -941,7 +942,7 @@ bool EffectNyquist::ProcessOne() ltrack->AddLabel(SelectedRegion(t0 + mT0, t1 + mT0), UTF8CTOWX(str)); } - return (!(GetEffectFlags() & PROCESS_EFFECT)); + return (!(GetEffectFlags() & PROCESS_EFFECT)|| mInteractive); } if (rval != nyx_audio) {