Bugzilla – Bug 1573
Multi-line SAL scripts fail in Nyquist Prompt
Last modified: 2018-08-20 11:46:07 UTC
Reported on Audacity 2.1.2, Mac OS X 10.11.6 Also occurs on Audacity 2.1.3 alpha, Debian Stable. Multi-line Nyquist input with SAL syntax doesn't work. Example: define variable myosc = hzosc(300) return myosc Error: Your code looks like SAL syntax, but there is no return statement etc. trying: define variable myosc = hzosc(300) return myosc works fine. Workaround (tested on Debian with Audacity 2.1.3 alpha): Make the code type explicit by adding the ;codetype header as the first line. Example: ;codetype sal define variable myosc = hzosc(300) return myosc
(In reply to Steve Daulton from comment #0) It looks like this bug crept in with the new Effect UI https://github.com/audacity/audacity/commit/8fbfa460c Assigned to myself.
DEVEL-FIXMADE https://github.com/audacity/audacity/commit/67810d35bff48aa4863ce37fde4c5e4e21ee1334
The statement that failed and its two workarounds work for me on Ubuntu 14.04 and Sierra 10.12.3.