mirror of
https://github.com/cookiengineer/audacity
synced 2025-06-20 22:30:05 +02:00
Fix - final setup parameter was being carried through to the script code.
This commit is contained in:
parent
969db08acb
commit
2b28e840cc
@ -823,17 +823,23 @@ bool EffectNyquist::ProcessOne()
|
|||||||
mCurLen, mCurTrack[0]->GetRate());
|
mCurLen, mCurTrack[0]->GetRate());
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// Restore the Nyquist sixteenth note symbol for Generate plugins.
|
||||||
|
// See http://bugzilla.audacityteam.org/show_bug.cgi?id=490.
|
||||||
|
if (GetEffectFlags() & INSERT_EFFECT) {
|
||||||
|
cmd += wxT("(setf s 0.25)\n");
|
||||||
|
}
|
||||||
|
|
||||||
if (mDebug) {
|
if (mDebug) {
|
||||||
cmd += wxT("(setf *tracenable* T)\n");
|
cmd += wxT("(setf *tracenable* T)\n");
|
||||||
if (mExternal) {
|
if (mExternal) {
|
||||||
cmd += wxT("(setf *breakenable* T)\n");
|
cmd += wxT("(setf *breakenable* T)\n");
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
else {
|
||||||
// Restore the Nyquist sixteenth note symbol for Generate plugins.
|
// Explicitly disable backtrace and prevent values
|
||||||
// See http://bugzilla.audacityteam.org/show_bug.cgi?id=490.
|
// from being carried through to the output.
|
||||||
if (GetEffectFlags() & INSERT_EFFECT) {
|
// This should be the final command before evaluating the Nyquist script.
|
||||||
cmd += wxT("(setf s 0.25)\n");
|
cmd += wxT("(setf *tracenable* NIL)\n");
|
||||||
}
|
}
|
||||||
|
|
||||||
for (unsigned int j = 0; j < mControls.GetCount(); j++) {
|
for (unsigned int j = 0; j < mControls.GetCount(); j++) {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user