1
0
mirror of https://github.com/cookiengineer/audacity synced 2025-05-02 08:39:46 +02:00

8152 Commits

Author SHA1 Message Date
James Crook
93275b0ff8 Effect examples added 2018-02-21 20:30:01 -05:00
James Crook
c8bbbe3aa6 Script for 'after' 2018-02-21 20:30:01 -05:00
James Crook
825df0f213 More Screenshot options 2018-02-21 20:30:01 -05:00
James Crook
213202d4f1 Shared part of script extracted. 2018-02-21 20:30:01 -05:00
James Crook
0ec5cbb339 Remove "list" from LISP label format.
- Not needed if we can add a back tick at the start.
2018-02-21 20:30:01 -05:00
James Crook
7b4d55accd Add script for spectrograms. 2018-02-21 20:30:01 -05:00
James Crook
4567f2283a Less verbose LISPy output of GetInfo: Type=Labels 2018-02-21 20:30:00 -05:00
Paul Licameli
fda56c7d64 fix 2018-02-21 20:30:00 -05:00
James Crook
4274ba7d01 Support Spectral Selection and Spectrogram mode in Automation. 2018-02-21 20:30:00 -05:00
James Crook
a137885769 Add buttons. Help and Cancel. 2018-02-21 20:30:00 -05:00
James Crook
7c819595bf Make Message command into an AudacityCommand. 2018-02-21 20:30:00 -05:00
James Crook
8b4b16524a Prevent crash on reentrant Nyquist. 2018-02-21 20:29:59 -05:00
James Crook
57c50ff9ac Nyquist can now make a selection and not have it overwritten by Effect. 2018-02-21 20:29:59 -05:00
James Crook
3d0d28eb03 Add envelope commands
- Added SetEnvelope (which can also delete/clear an envelope.)
- Added GetInfo: Type=Envelope
2018-02-21 20:29:59 -05:00
James Crook
d7e4e338fa Nyquist now defines its parameters. 2018-02-21 20:29:59 -05:00
James Crook
9e33e9082f Allow using default parameters as not-an-error 2018-02-21 20:29:59 -05:00
James Crook
b93a2e53cc Protect Nyquist against effect-within-effect
The Effect code makes temporary copies of wavetracks.  If Nyquist invokes another effect,
its temporary copy is no longer valid.
My solution is to NOT apply the Nyquist effect results IF some other effect was successfully
invoked in creating them.  I do this by counting the effect invocations.  If it has changed, then
Nyquist output Is not applied back to the track.

The net result is that Nyquist prompt can invoke other effects, or process the audio itself,
but it cannot do both.
2018-02-21 20:29:59 -05:00
James Crook
15aad64f7b LISP format improvements (Thanks Steve)
- Readable by Lisp and humans (now), but indentation still a bit strange because of how it is being generated.
2018-02-21 20:29:58 -05:00
James Crook
6236a9fb94 Add support for aud-do command into Nyquist.
Examples:

(aud-do "GetInfo")
(aud-do "Select: Start=4 End=7")
2018-02-21 20:29:58 -05:00
Paul Licameli
e52552056a fix 2018-02-21 20:29:58 -05:00
James Crook
828d01a48c Shorter commands. Shorter scripts. 2018-02-21 20:29:58 -05:00
James Crook
54895655e8 Improved labels script. 2018-02-21 20:29:58 -05:00
James Crook
34f0b97a60 Add ability to set the selected label. 2018-02-21 20:29:58 -05:00
James Crook
a5de0ed0c6 More screenshot options. 2018-02-21 20:29:58 -05:00
James Crook
9ba3ec059b Use a-lists for Lispy output.
- Also bump long strings onto a new line in JSON and LISP formats.
2018-02-21 20:29:57 -05:00
James Crook
205dc13594 Fix \n shenanigans in command output. 2018-02-21 20:29:57 -05:00
James Crook
5d1b3189ac 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-21 20:29:57 -05:00
James Crook
ea4403ee65 Typo. 2018-02-21 20:29:57 -05:00
James Crook
4ee471adb1 Scripts in Piped-Work
- New docimages script for the tracks.
- Added new option in screenshots to capture ruler as well as track.
2018-02-21 20:29:57 -05:00
James Crook
590b471eb7 Fix ScreenshotCommand
- Show Status immediately (Flush), don't wait for window to be closed.
- Correct strings with _ in them.
- Remove unhelpful 'Received Script Command' message.
2018-02-21 20:29:57 -05:00
James Crook
e0ee34e877 Implement selection from ends of tracks. 2018-02-21 20:29:56 -05:00
James Crook
2caad0f407 Implement ReloadPreferences for SetPreferences Command. 2018-02-21 20:29:56 -05:00
James Crook
a8903a6c56 Include tips in command list. 2018-02-21 20:29:56 -05:00
James Crook
500765329f Fix Automation listing
- Now correctly shows optional fields
- Now includes the zero-parameter commands.
- Fetches the Short-Names for menu commands.
2018-02-21 20:29:56 -05:00
James Crook
a0c393a012 Fix GetInfo: Commands (Automated type matching matched 'the wrong thing'). 2018-02-21 20:29:56 -05:00
James Crook
7fa73dbde7 SetClip, SetLabel, SetProject added
- SetTrack also updated with more options.
2018-02-21 20:29:56 -05:00
James Crook
1a7700af8a Optional parameters now working. 2018-02-21 20:29:55 -05:00
James Crook
8b3726e8bc Compilation on Mac
Changes found/recommended by Paul.
2018-02-21 20:29:55 -05:00
James Crook
fa1cedb044 Fix extra spaces 2018-02-21 20:29:54 -05:00
James Crook
860110ff2d Cleaner class hierarchy 2018-02-21 20:29:54 -05:00
James Crook
c0b3c0d13a Doxygen, Clips and Labels
- Classes renamed and better doxygenated
- GetInfo: Type=Clips added
- GetInfo: Type=Labels added.
2018-02-21 20:29:54 -05:00
James Crook
425c8b92f5 Fix build 2018-02-21 20:29:54 -05:00
James Crook
210d4f1fe6 Support: JSON, Lispy or Other formats 2018-02-21 20:29:54 -05:00
James Crook
43e9c2365f Structured output for CommandContext 2018-02-21 20:29:54 -05:00
James Crook
3017f8dddf OldStyleCommandType - It's on the way out.
This renaming makes it clearer which code is still using Dan Horgan's Command system.
2018-02-21 20:29:54 -05:00
James Crook
4c65a74c03 Long message target
This allows interactive display of the results of new commands that generate
lots of text.
2018-02-21 20:29:53 -05:00
James Crook
037df23d3c More Menus Items, Better prompting Dialogs. 2018-02-21 20:29:53 -05:00
Paul Licameli
49a2bb293b fixes 2018-02-21 20:29:53 -05:00
James Crook
cf5ec042f3 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-21 20:29:52 -05:00
Paul Licameli
33b13018df Replace almost all wxArrays with std::vector, except for wxArrayString 2018-02-21 19:33:33 -05:00