I am faced to another confusing problem, and i have no idea, what could be wrong.
I tried this single command to create a sine wave about 440Hz:
(hzosc 440.0)
Result :
When starting the Nyquist shell, nothing happens (as expected)
After pressing OK-Button to execute the script, a new track is created, containing one 440Hz sine wave (as expected). I can repeat this many times.
Then i close and restart Audacity and try the same command again.
Result :
When starting the shell, a new empty track is created (why ???, I didn’t press the OK button until now, so there is no command executed until now !)
When pressing the RUN (OK) button (execute the script) an error message raise up which says, that i have to select a track area before running the script.
Nyquist is a programming language that is built into Audacity. Technically it isn’t part of Audacity - it’s a thing in it’s own right that has been added to Audacity. This is an important distinction because it explains why Nyquist has only limited access to Audacity functions.
One thing that Nyquist cannot do, is to add an audio track. However, when we want to generate audio with Audacity, we need a track to generate the audio into. So for convenience, when you open the “Nyquist Prompt”, Audacity first checks to see if there is an audio track selected. If there isn’t an audio track selected, then Audacity creates a new audio track and selects it, before opening the Nyquist Prompt dialog.