1
0
mirror of https://github.com/cookiengineer/audacity synced 2025-04-30 15:49:41 +02:00
audacity/scripts/piped-work/docimages_all.py
James Crook fa49d94530 Script work
Add Envelope script
Add Clips and Boundaries Scripts.
Add docimages_oddments.py for the weirder cases.
Add make html script.
Add more spectral images
Add Dark versions of spectrograms (paul's comment)
Clean up oddments script.

- This commit also adds an option NOT to bring Audacity to the top when screenshotting.
-- That's because QuickPlay will disappear if you do -because you lose mouse capture.
- Also allow negative window IDs in the drag command.

- Registration names of align commands sorted.  They had &, : and / in them.
- Fixed bug in SetTrackInfo where bFocused was being ignored
- Fixed bug where command manager ignored multi-commands.
- Commit docimages_oddments.py again, to fix line endings.
2018-02-24 14:20:29 -05:00

47 lines
1.0 KiB
Python

# docimages_all.py
# Sends commands to get images for the manual.
# Execs all the docimage scripts.
# Make sure Audacity is running first and that mod-script-pipe is enabled
# before running this script.
import time
# records time, name of file and returns contents.
def inner( name ) :
global old_name
global start_time
global results
result = old_name + ' took ' + str( time.time() - start_time )
results.append( result )
print( result )
start_time = time.time()
if not name :
return ""
old_name = name
return open("docimages_" + name + ".py" ).read()
#initialise timing
start_time = time.time()
old_name = 'startup'
results = []
#do the different files...
exec( inner( 'tracks' ) )
exec( inner( 'labels' ) )
exec( inner( 'spectro' ) )
exec( inner( 'after' ) )
exec( inner( 'envelopes' ) )
exec( inner( 'cut_n_paste' ) )
exec( inner( 'clip_boundaries' ) )
exec( inner( 'oddments' ) )
#report on timing.
inner( "" )
print( "\n\nSummary:" )
print( "\n".join( results ) )