Quantcast
Channel: Raspberry Pi Forums
Viewing all articles
Browse latest Browse all 4331

Python • Re: How do I fix this Python code?

$
0
0
No, the export is a whole different project. It just has to stop recording when the code is stopped.
It seems to be using the same program interface to Audacity?


In which case this might be the common feature you need to consider?

Ref: https://manual.audacityteam.org/man/scr ... l#Commands
After checking that the "pipe_test.py" script works, you could try adding other commands to the end of the pipe_test.py script. Each command name ends with a colon, and may be followed by parameters. For example:

do_command("Help:")

For practical scripting, the script "pipeclient.py" provides a useful starting point:


In both examples of your modified code the Stop and Export keywords lack colons.

Statistics: Posted by B.Goode — Mon Feb 26, 2024 10:17 pm



Viewing all articles
Browse latest Browse all 4331

Trending Articles