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

@@ -72,9 +72,13 @@ def quickTest() :
def setup() :
global path
global sample_path
global sample
global sample2
global postfix
postfix = ''
path = 'C:\\Users\\James Crook\\'
sample_path ='C:\\Users\\James Crook\\Music\\'
sample ='C:\\Users\\James Crook\\Music\\The Poodle Podcast.wav'
sample2 ='C:\\Users\\James Crook\\Music\\PoodlePodStereo.wav'
startPipes()
@@ -89,8 +93,17 @@ def makeWayForTracks( ) :
def capture( name, what ) :
global path
global postfix
name = name.split( '.png' )[0] + postfix + '.png'
do( 'Screenshot: Path="'+path+name+'" CaptureWhat=' + what )
def loadExample( name ):
global sample_path
makeWayForTracks( )
do( 'Import2: Filename="'+sample_path+name+'"' )
do( 'Select: First=0 Last=0 Start=0 End=0')
do( 'FitInWindow' )
def loadMonoTrack():
global sample
makeWayForTracks( )
@@ -112,6 +125,7 @@ def loadMonoTracks( num ) :
loadMonoTrack()
do( 'SetTrack: Track=0 Name="Foxy Lady"')
for i in range( 0, num-1 ):
do( 'Select: First=0 Last=0')
do( 'Duplicate' )
do( 'FitInWindow' )
do( 'Select: Start=55 End=70')
@@ -121,6 +135,7 @@ def loadStereoTracks( num ) :
loadStereoTrack()
do( 'SetTrack: Track=0 Name="Foxy Lady"')
for i in range( 0, num-1 ):
do( 'Select: First=0 Last=0')
do( 'Duplicate' )
do( 'FitInWindow' )
do( 'Select: Start=55 End=70 First=0 Last=' + str(num*2-1) )