Audacity and pipe_test.py

Steve Gronicus at SGA.Ninja
Sat Sep 12 14:23:25 EDT 2020


>>My time.sleep(60) or the do_command("'Start Time'=0, 'End Time'=150")  
>>lines

>	The first does nothing for Audacity processing -- it only blocks the
>Python script itself. And you haven't provided the Audacity command
>completely -- since I can't find that on the script reference page.

You are correct.  I use the py timer to pause the commands being sent to the
pipe.  There seems to be something fluky about that too.  It looks as if
when I have four or more do_commands, it doesn't run as a timer.  Takes more
scrutiny...

I am not sure how I lost the entire Audacity command for the Audacity time
control. Still, I need a timer in there somewhere. 
Time will tell (-:

"ENDIF, ENDFOR, ENDWHILE statements" do exist in my python program.  I place
them as comments to document the end of the operations. It makes it easier
for me to follow the logic especially if they are nested.

-----Original Message-----
From: Python-list <python-list-bounces+gronicus=sga.ninja at python.org> On
Behalf Of Dennis Lee Bieber
Sent: Friday, September 11, 2020 1:32 PM
To: python-list at python.org
Subject: Re: Audacity and pipe_test.py

On Thu, 10 Sep 2020 18:22:29 -0400, "Steve" <Gronicus at SGA.Ninja> declaimed
the following:

>Your line worked except that I used copy/paste to place it in the program.
>I kept on getting something like "improper indentation or tab" and 
>pointing to the end of that line.  I guess hidden characters were 
>imbedded and when I deleted all spaces before and after the paste, then 
>placed them in again, those hiddens went away.
>
	Most likely your source had a series of spaces, my post had a
leading <tab>.

	In Python, a <tab> is counted as EIGHT spaces, even if an editor
only moved in by four spaces.

	Python uses indentation to indicate the block structure of the
language
-- you'll note there are no { } (C or Java), nor ENDIF, ENDFOR, ENDWHILE
statements.

>Also, this language certainly does not like spaces at all except where 
>IT wants them. The values for ThisList[T] entries were two words, words 
>with spaces between. No go....  I removed spaces and replaced them with 
>- where I wanted them, and it is working really nicely.
>

	If this is in response to my /first/ post, I forgot to include the '
'
delimiters around the string argument. That meant the command you were
sending to Audacity was seeing three or more parameters, not two. Python
didn't care at that point. If you have the ' ' in place, then Audacity is
the application that is complaining.

>My time.sleep(60) or the do_command("'Start Time'=0, 'End Time'=150")  
>lines

	The first does nothing for Audacity processing -- it only blocks the
Python script itself. And you haven't provided the Audacity command
completely -- since I can't find that on the script reference page.



-- 
	Wulfraed                 Dennis Lee Bieber         AF6VN
	wlfraed at ix.netcom.com    http://wlfraed.microdiversity.freeddns.org/

--
https://mail.python.org/mailman/listinfo/python-list



More information about the Python-list mailing list