1
0
mirror of https://github.com/cookiengineer/audacity synced 2025-06-19 09:30:06 +02:00

298 Commits

Author SHA1 Message Date
Paul Licameli
1cda717a14 Fix parse of line break in string inside list in header of .ny file 2018-03-23 21:28:01 -04:00
Paul Licameli
01a45a6b36 Strip ... from Nyquist effect names again (but none shipped have it) 2018-03-15 13:44:51 -04:00
Paul Licameli
bc773e02d3 Supply some missing translation in Macros dialogs...
... The "Set" prompt for checkboxes;

Strings in Choice controls, which had been declared translatable with XO, but
the translations not yet used.

This can be tested in Ukrainian locale now, for editing parameters of
commands like Select or Drag, but be aware that even uk.po is not up to date
for all recent changes in the Manage Macros dialog itself.
2018-03-07 15:06:55 -05:00
Paul Licameli
08a8cc4bcf Strings in Nyquist plug-ins not translated too early...
... So that if you change language in-session, they will update.
2018-03-06 01:21:50 -05:00
Paul Licameli
f6efacbda3 Untranslated from GetVendor; translated in effect info menu only 2018-03-06 01:14:54 -05:00
James Crook
8cd5d7f4fe Tools menu and EffectTypeTool
- Also add a 'Nyquist Prompt' to the Tools Menu.
- Currently it is the same as the Effects Nyquist Prompt.
- Chains moved into the Tools prompt.
2018-03-03 12:57:32 +00:00
Paul Licameli
da39cc451f Remove redundant ellipses from names in .ny files...
... The code that parses the header was always just throwing them out.

The code that populates menus deduces whether to add ellipses, as there are
controls or not, regardless what the $name line said.
2018-03-02 20:11:54 -05:00
Paul Licameli
ff3a869e83 Line breaks allowed in strings (or lists) in $ lines; \n means n ...
... because we must match how xgettext parses strings, and unlike XLisp, it
does it strictly according to this reference:

http://www.lispworks.com/documentation/lw70/CLHS/Body/02_de.htm
2018-03-02 20:11:47 -05:00
Paul Licameli
ad4843621b Allow Nyquist header lines to start with $ 2018-03-02 19:46:58 -05:00
Paul Licameli
ba8e6bd465 Change tokenization of header comment lines & translate strings ...
... allowing (_ "...") for single strings, and allowing a sequence of such
inside outer ( ) for choice controls, but still accepting the old syntax too
2018-03-02 19:46:58 -05:00
Paul Licameli
0879949904 Register translation functions for Nyquist effects into XLisp runtime 2018-03-02 19:46:57 -05:00
Paul Licameli
f10b9c68ec wxString in Nyquist prompt makes trip to UTF8 and back properly...
... Simple test:  In Nyquist prompt enter

(progn "Ü")

Using Alt+U, U.

Formerly it came back mis-encoded.
2018-02-27 01:35:01 -05:00
James Crook
33daaafc59 Make Nyquist effects define their parameters. 2018-02-24 14:20:30 -05:00
James Crook
0ad533a740 Automation -> Scripting. 2018-02-24 14:20:30 -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
Paul Licameli
097764d94c Distinguish Effect Family Id from Effect Family Name...
... and the distinction makes a difference only for built-in effects.

"Id" is meant to persist in pluginregistry.cfg, and is constrained by how
previous versions of Audacity were written.

"Name" is not persistent, so we have the liberty to change it, as done here
for the built-ins.
2018-02-21 21:43:01 -05:00
Paul Licameli
080dd34e61 Get rid of wx object arrays, use std::vector 2018-02-21 19:33:27 -05:00
Paul Licameli
6e7d7447c1 Use an enum class for numeric validator styles 2018-02-21 19:21:08 -05:00
Paul Licameli
0aad028c9b Simplify calls to Effect::Delegate 2018-02-21 19:20:53 -05:00
Paul Licameli
80a958f8a4 Rewrite empty prompts to ShuttleGUI functions as {} ...
... so we might more easily redefine the type of the function argument,
some other day (not this release)
2018-01-01 22:51:25 -05:00
Paul Licameli
7fd78183d2 Remove needless uses of wxString::c_str() in wxString::Format...
... and similar wx "variadics," which all treat wxString smartly enough that
you don't need this.

Don't need c_str either to convert wxString to const wxChar * because
wxString has a conversion operator that does the same.
2018-01-01 20:34:33 -05:00
Paul Licameli
384300016d Define FileDialogWrapper, with localized default prompt and name 2018-01-01 17:50:04 -05:00
Paul Licameli
ccb4bbac33 Translate "Message" as default title of message box...
... This required a sweeping change of all calls to wxMessageBox!  But it seems
safe to me, despite the great number of touched files.
2018-01-01 17:50:02 -05:00
Paul Licameli
378c96fda1 Consistently use translated effect name in titles of message boxes...
... For built-in and Nyquist effects.
2018-01-01 17:50:01 -05:00
Paul Licameli
bdd1358f9b Error messages for failing to load Nyquist effects 2017-12-27 15:46:06 -05:00
James Crook
63de7f0884 Bug 305 - Analysis effects produce false indication that a label is open for editing
This was true of any Nyquist or VAMP effect that created labels.
2017-12-17 21:18:07 +00:00
Steve Daulton
430bd12304 Fix Regular Interval Labels
Save control values for NYQ_CTRL_INT_TEXT
2017-11-20 20:30:45 +00:00
James Crook
0bae8c3a90 Bug 1774 - Recording does not honor waveform color
New clip now takes colour from WaveTrack, and new WaveTrack takes colour of the WaveTrack its clips will be appended onto.
2017-11-07 14:26:32 +00:00
Paul Licameli
e5c07fae84 some missed translations, i18n-hints 2017-11-05 21:01:53 -05:00
Paul Licameli
da5e5e51c9 Config file keys do not need to localize 2017-11-05 20:36:19 -05:00
James Crook
7c49019669 Bug 1766 - Invalid check for unsupported Nyquist plug-in version
Issue/fix by David Binderman.
2017-11-04 17:47:32 +00:00
Steve Daulton
d78033887f Fix initialization of Debug and Preview buttons 2017-09-26 12:34:44 +01:00
Paul Licameli
adc2695688 i18n-hints about the name "Nyquist" ...
... Although "Nyquist" is a proper name, still, translators should have
discretion to transliterate it into another alphabet, and also make it
consistent with longer translated strings containing it.

Not so for debug messages mentioning actual keywords of Nyquist programming.
2017-09-10 19:15:46 -04:00
Steve Daulton
da3f28118b Fix: Nyquist PEAK property when NIL & Stereo
Fixes failure of Nyquist Generate effects when stereo track
selected and no time selection.
2017-08-08 11:55:47 +01:00
Paul Licameli
f0de38dec1 Scanned for bad naked new; found none; changed comments, used safenew 2017-07-23 09:35:01 -04:00
Steve Daulton
3aab1939f0 Fix Nyquist message logging
Incorrect use of wxLogMessage can cause crash on Windows
if '%' present in debug string.
2017-07-07 14:12:26 +01:00
Steve Daulton
cbe554e10a Ensure Nyquist Prompt initialises mName 2017-07-02 12:33:08 +01:00
Steve Daulton
a0eba9fb95 Set Nyquist default latency to 100 ms
The default for Standalone Nyquist is a very conservative
300 ms, but that's too long when using ALSA (see bug 570),
so use 100 ms default (same as Audacity).
2017-06-22 11:11:17 +01:00
Steve Daulton
1123ca293c More tweaks to Nyquist debug output 2017-06-13 18:30:07 +01:00
Steve Daulton
b92866be71 Nyquist debug handling tweaks 2017-06-13 01:06:19 +01:00
Steve Daulton
9816cc8c7b Reinstate FileNames::PlugInDir() for Linux
Reverting its removal in commit 1dd6b848c28.
Path added to Nyquist *SYSTEM-DIR* PLUG-IN property.
2017-06-04 18:01:49 +01:00
Steve Daulton
b6a1ca916b Fix for bug 376
Documentation required.
2017-05-30 20:43:50 +01:00
Steve Daulton
73d2478d0b Rename Nyquist plug-in debug button header 2017-05-30 20:43:50 +01:00
Steve Daulton
eea55f78ce Make Nyquist debug window resizable
and name window to match the effect.
2017-05-25 23:16:41 +01:00
Steve Daulton
0303d281cc Fix for bug 1650
Don't attempt to read plug-in file when spawned from Nyquist Prompt
because there isn't one.
2017-05-23 23:38:55 +01:00
Steve Daulton
04ba10a1c3 Add help button support for other Nyquist effects 2017-05-21 23:11:21 +01:00
Steve Daulton
bba5a8fef1 Add help button for Nyquist Prompt 2017-05-20 14:49:07 +01:00
Steve Daulton
1dd6b848c2 Enable Help button for Nyquist effects 2017-05-20 14:49:07 +01:00
Steve Daulton
469120cebd Enable help button for effects 2017-05-20 14:49:07 +01:00
Steve Daulton
ae24cab8fe Remove 'TODO's for completed documentation 2017-05-01 18:51:35 +01:00