Commit Graph

37 Commits

Author SHA1 Message Date
crpto-bug c2d3e500c9
Bug 2684 - Bitrot for Docimage script 2021-03-20 16:15:43 +00:00
SteveDaulton 85079fd2ee A little more documentation for docimage scripts. 2021-02-19 16:33:33 +00:00
James Crook d9eb723e13 Bug 2665 - Docimage script now runs ahead and stalls.
There are now extra blank lines in the results that
need to be dealt with.  Script updated to do so.

This bug 2665 is now fixed.  I think there is a small issue
with the label command not using the selection that
still needs to be addressed too, but it is minor compared
to bug 2665 and can wait.
2021-02-19 14:26:51 +00:00
Leland Lucius 443e4171f2 Make docimages_core.py py3 compatible 2021-02-18 22:51:26 -06:00
SteveDaulton dd6fe21853 Fix Bug 2552 - pipe_test.py fails to print return value from first command 2020-09-29 16:34:14 +01:00
SteveDaulton d31db975ee pipeclient.py: stop reader if pipe broken
Prevent 100% cpu if Audacity quits while pipeclient still running.
2020-06-15 23:17:32 +01:00
SteveDaulton 5f395ca6e9 Fix Python recording test
and update for Python 3
2020-05-26 20:44:24 +01:00
Steve Daulton 1639df03a4 Fix pipeclient.py for Windows 2019-05-21 17:54:24 +01:00
James Crook 0c38b9f41e Update names in scripts. 2019-04-11 22:26:17 +01:00
James Crook 9890b12619 Add README.txt for piped-work and results. 2019-04-10 16:28:50 +01:00
James Crook 0f256df79d Make scripted tests portable (e.g. to mac) 2019-04-10 15:04:09 +01:00
James Crook 5739c579fa Script changes to include the 'arrange' script. 2019-04-09 22:34:02 +01:00
James Crook 0188b7570d Do script changes for Pull request #271 that were previously missed. 2019-04-09 21:55:22 +01:00
Steve Daulton 6f9746b601 Update pipe_test.py for Python 3 2019-03-22 14:21:56 +00:00
Steve Daulton bedd4f1f3f Fix pipe_test for Python3 on Linux
The script still works with Python 2 on Linux, but it should be tested
(with Python 3) on Windows and Mac.
2019-03-22 10:15:51 +00:00
James Crook 6228b6033b Modify scripts to adjust to Pull request #271
Parameter enum values have changed.
2018-03-27 22:00:16 +01:00
James Crook 3896ff98dd Update scripts for revised commands. 2018-03-19 16:09:25 +00:00
James Crook ea0e0d71af Add scripts for names-on-tracks images. 2018-03-04 22:07:45 +00:00
James Crook ca2dc254b1 Added a regression test and an image mangling python script
- Added docimages_regression_tests.py
-- It's a test for Bug1844, concerning envelope points.
- Added decorate_images.py
-- It's a script to crop and drop shadow.
2018-02-27 22:26:30 +00:00
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
James Crook e9e9ee2998 Can choose by Channel or by Track in Set commands. 2018-02-24 14:20:28 -05:00
James Crook 8ab9345268 Work on Scripts.
Add script for spectrograms.
Add Script for 'after' with effects examples.
Add space and dc bias to afters script.
Add docimages_all.py script to call all scripts.
Shared part of scripts extracted into docimages_core.py
2018-02-24 14:20:28 -05:00
James Crook 5d36890cb0 Shorter command names. General tidying.
-More commands now have shorter names for parameters.
-New scripts for generating images.
-Several old-style commands retired.
2018-02-24 14:20:26 -05:00
James Crook 62ca1cce26 Improved labels script. 2018-02-24 14:20:26 -05:00
James Crook 29c96f5470 Add ability to set the selected label. 2018-02-24 14:20:26 -05:00
James Crook 26e1a33369 More screenshot options. 2018-02-24 14:20:26 -05:00
James Crook 5e2371c636 Use a-lists for Lispy output.
- Also bump long strings onto a new line in JSON and LISP formats.
2018-02-24 14:20:26 -05:00
James Crook 510f68e9ad Fix \n shenanigans in command output. 2018-02-24 14:20:26 -05:00
James Crook 65c160212e Script the images for Tracks page of manual.
- There's a problem with stem plot preference.  It isn't reloading properly from batch but is from menu.
2018-02-24 14:20:26 -05:00
James Crook 24e8bbc623 Scripts in Piped-Work
- New docimages script for the tracks.
- Added new option in screenshots to capture ruler as well as track.
- Typo fix (focussed)
2018-02-24 14:20:26 -05:00
James Crook 1c988b4e3a Automation: AudacityCommand
This is a squash of 50 commits.

This merges the capabilities of BatchCommands and Effects using a new
AudacityCommand class.  AudacityCommand provides one function to specify the
parameters, and then we leverage that one function in automation, whether by chains,
mod-script-pipe or (future) Nyquist.

- Now have AudacityCommand which is using the same mechanism as Effect
- Has configurable parameters
- Has data-entry GUI (built using shuttle GUI)
- Registers with PluginManager.
- Menu commands now provided in chains, and to python batch.
   - Tested with Zoom Toggle.

- ShuttleParams now can set, get, set defaults, validate and specify
the parameters.
- Bugfix: Don't overwrite values with defaults first time out.
- Add DefineParams function for all built-in effects.
- Extend CommandContext to carry output channels for results.

We abuse EffectsManager.  It handles both Effects and
AudacityCommands now.  In time an Effect should become a special case of
AudacityCommand and we'll split and rename the EffectManager class.

- Don't use 'default' as a parameter name.
- Massive renaming for CommandDefinitionInterface
- EffectIdentInterface becomes EffectDefinitionInterface
- EffectAutomationParameters becomes CommandAutomationParameters
- PluginType is now a bit field.

This way we can search for related types at the same time.

- Most old batch commands made into AudacityCommands.
The ones that weren't are for a reason.  They are used by mod-script-pipe
to carry commands and responses across from a non-GUI thread to the GUI
thread.

- Major tidy up of ScreenshotCommand
- Reworking of SelectCommand
- GetPreferenceCommand and SetPreferenceCommand
- GetTrackInfo and SetTrackInfo
- GetInfoCommand
- Help, Open, Save, Import and Export commands.
- Removed obsolete commands ExecMenu, GetProjectInfo and SetProjectInfo
  which are now better handled by other commands.

- JSONify "GetInfo: Commands" output, i.e. commas in the right places.

- General work on better Doxygen.
    - Lyrics -> LyricsPanel
    - Meter -> MeterPanel
- Updated Linux makefile.
- Scripting commands added into Extra menu.
- Distinct names for previously duplicated find-clipping parameters.
- Fixed longstanding error with erroneous status field number which
  previously caused an ASSERT in debug.
- Sensible formatting of numbers in Chains, 0.1 not 0.1000000000137
2018-02-24 14:20:22 -05:00
Steve Daulton 76954f4bcd Update default tests in pipe-test.pl for 2.2.2 2018-01-21 23:24:37 +00:00
James Crook 8434c3903a Start of automated recording tests. 2018-01-18 20:42:40 +00:00
James Crook f9f3da384c Update Perl pipe-test.pl script. 2018-01-14 15:26:42 +00:00
James Crook ce697d052a mod-script-pipe python scripts working on linux too.
- Pipe names are different on Linux.
- End of line is different on linux.
- The pipe must be opened with 'w+' not just 'w'.
2018-01-13 13:54:44 +00:00
James Crook 27d2b7c51b Add AutomationCommands class
- AutomationCommands replaces GetAllMenuCommands, and can provide
information about menus, buttons and toolbars to a script.
- BatchCommands can now return textual results to a script.
- There's a new GUID for mod-script-pipe and it is included in the .sln.
2018-01-06 19:27:45 +00:00
James Crook b6138b1968 Move pipe scripts into a subdirectory. 2017-12-20 19:57:03 +00:00