1
0
mirror of https://github.com/cookiengineer/audacity synced 2025-06-21 14:50:06 +02:00

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.
This commit is contained in:
stevethefiddle@gmail.com 2014-10-24 12:04:06 +00:00
parent 421bc76856
commit 0ce9f5ad16

View File

@ -891,8 +891,9 @@ bool EffectNyquist::ProcessOne()
// True if not process type. // True if not process type.
// If not returning audio from process effect, // If not returning audio from process effect,
// return first reult then stop (disables preview). // return first reult then stop (disables preview)
return (!(GetEffectFlags() & PROCESS_EFFECT)); // but allow all output from Nyquist Prompt.
return (!(GetEffectFlags() & PROCESS_EFFECT)|| mInteractive);
} }
if (rval == nyx_double) { if (rval == nyx_double) {
@ -901,7 +902,7 @@ bool EffectNyquist::ProcessOne()
nyx_get_double()); nyx_get_double());
wxMessageBox(str, wxT("Nyquist"), wxMessageBox(str, wxT("Nyquist"),
wxOK | wxCENTRE, mParent); wxOK | wxCENTRE, mParent);
return (!(GetEffectFlags() & PROCESS_EFFECT)); return (!(GetEffectFlags() & PROCESS_EFFECT)|| mInteractive);
} }
if (rval == nyx_int) { if (rval == nyx_int) {
@ -910,7 +911,7 @@ bool EffectNyquist::ProcessOne()
nyx_get_int()); nyx_get_int());
wxMessageBox(str, wxT("Nyquist"), wxMessageBox(str, wxT("Nyquist"),
wxOK | wxCENTRE, mParent); wxOK | wxCENTRE, mParent);
return (!(GetEffectFlags() & PROCESS_EFFECT)); return (!(GetEffectFlags() & PROCESS_EFFECT)|| mInteractive);
} }
if (rval == nyx_labels) { if (rval == nyx_labels) {
@ -941,7 +942,7 @@ bool EffectNyquist::ProcessOne()
ltrack->AddLabel(SelectedRegion(t0 + mT0, t1 + mT0), UTF8CTOWX(str)); ltrack->AddLabel(SelectedRegion(t0 + mT0, t1 + mT0), UTF8CTOWX(str));
} }
return (!(GetEffectFlags() & PROCESS_EFFECT)); return (!(GetEffectFlags() & PROCESS_EFFECT)|| mInteractive);
} }
if (rval != nyx_audio) { if (rval != nyx_audio) {