1
0
mirror of https://github.com/cookiengineer/audacity synced 2025-10-18 16:41:14 +02:00

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.
This commit is contained in:
James Crook
2018-02-17 16:08:38 +00:00
committed by Paul Licameli
parent 4724c6a131
commit fa49d94530
22 changed files with 951 additions and 48 deletions

View File

@@ -5,8 +5,42 @@
# 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 ) )
exec( open("docimages_tracks.py" ).read() )
exec( open("docimages_labels.py" ).read() )
exec( open("docimages_spectro.py" ).read() )
exec( open("docimages_after.py" ).read() )