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

337 Commits

Author SHA1 Message Date
James Crook
c94df54157 Bug 1856 - Applying Macros to Files is no longer a batch process
This restores the 2.2.2 behaviour, with a subdirectory called 'cleaned'.  The problem was that 2.2.2 used special cases for MP3 Ogg and WAV exports, which were stripped out in favour of using the built-in Export command.  However, the differences in behaviour (prompting) between batch and non batch mode were not taken into account.
2018-08-04 19:16:32 +01:00
Paul Licameli
06eee27b9a Rewrite commit 1bc0f0f without further changes to lib-src...
... Reuse the external function registration added earlier in 2.3.0
development, for support of internationalization in Nyquist.

This way, we avoid making cyclic static linkage dependencies between the
library and the application.
2018-08-01 23:11:30 -04:00
James Crook
1bc0f0f4d0 Make Nyquist support (AUD-DO)
Nyquist AUD-DO calls out to a new function that executes script commands, and returns results in a lisp string.
2018-08-01 20:32:03 +01:00
James Crook
b975956812 Add re-entrancy checks to Nyquist
These changes below are paving the way for aud-do:

Nyquist Effect now detects self reentrancy and skips reentry if so.
Nyquist Effect now detects if another effect has run during effect processing, and does not send Nyquist
output if so.

Neither of these preparatory changes have an effect in absence of AUD-DO (or other function
that allows Nyquist effect to call out to Audacity functions).
2018-08-01 20:31:03 +01:00
Paul Licameli
e432883dec Fix deprecation warnings with wxFont, wxPen, wxBrush ctors...
... Replace some enum constants with the equivalent values from the more
special-purpose enums, as the wx header files recommend, so overloading
selects the ctors with non-int arguments.

In a full rebuild of the debug project on Mac, this reduces the count of
warnings from 264 to 274.
2018-07-23 13:21:15 -04:00
James Crook
0ea56874a6 Comment out a debug message. 2018-07-22 20:30:53 +01:00
James Crook
66e203cdca Transcription Toolbar -> Play-at-Speed Toolbar 2018-07-22 18:21:38 +01:00
James Crook
2739020342 Bug 1902 - "Nyquist Prompt" confusingly shown only as "Nyquist" when "Grouped by Type" is active
Now shown as "Nyquist Effects Prompt" (in Effects menu) and "Nyquist Tools Prompt" (in Tools Menu).
These prompts will have slightly different behaviour, e.g. only tools allow aud-do.
2018-07-14 16:51:49 +01:00
James Crook
d057dfb5d8 Move "Help Menu" after "Extra Menu". 2018-07-05 19:34:16 +01:00
James Crook
20178b15e1 Fix some 'declaration hides' warnings.
We were for example getting many of these:
\audacity\src\widgets\numerictextctrl.h(171): warning C4458: declaration of 'value' hides class member

MSVC2013 didn't warn about these, but MSVC2017 does.
2018-06-27 12:36:13 +01:00
Paul Licameli
a9e7a7e5d5 movable_ptr(_with_deleter) -> std::unique_ptr 2018-05-10 00:56:37 -04:00
Paul Licameli
b8a8712ba0 make_movable -> std::make_unique 2018-05-10 00:56:36 -04:00
Paul Licameli
7a0475e39f Remove most uses of AUDACITY_OLD_STD 2018-05-10 00:56:36 -04:00
James Crook
9e92f4f370 Use path separator that depends on platform (in screenshot tools). 2018-04-29 22:25:34 +01:00
Steve Daulton
0248c870b2 Rename "Sliding Time Scale/Pitch Shift" effect 2018-04-28 21:16:41 +01:00
James Crook
660dc03b9f GetInfo tweaks.
JSON now more consistent, using structs rather than arrays.
Removed unused GetInfo Command+
2018-04-27 12:45:29 +01:00
James Crook
ae36eea26c Bug 1855 - Accelerators not removed from names in translation 2018-04-22 19:46:09 +01:00
James Crook
121fdc5703 Fix non-ASCII characters in wxLogDebug
The LogDebugs aren't needed now, as we can get the info via Scripting.
2018-04-15 15:09:15 +01:00
Paul Licameli
0c99501bfb Initialize tables of effect and command names properly 2018-04-12 17:09:43 -04:00
James Crook
effab49a6f Improve Mac wx3.1.1 compatibility
1. Qualify hash as std::hash.
2. Ensure we have a header for the function 'free'
2018-04-12 20:10:41 +01:00
Paul Licameli
b200819f75 Use IdentInterfaceSymbol to identify commands and effects 2018-04-11 11:51:10 -04:00
Paul Licameli
0394660e9e Use IdentInterfaceSymbol for vendor strings, which are used in paths 2018-04-11 11:13:41 -04:00
Paul Licameli
915e6ead40 Use IdentInterfaceSymbol in old-style commands...
... Give each a translatable name, but don't use it anywhere yet, use
the CamelCase name
2018-04-11 11:13:40 -04:00
James Crook
68e4bf6c5e Bug 1557 - Win/Linux: Shortcuts for select/deselect all do not work in Mixer Board 2018-04-11 15:11:06 +01:00
James Crook
b60fae4470 Fix some warnings on mac
These are mostly missing 'overrides'
2018-04-07 20:28:27 +01:00
James Crook
0885fda459 Fix mod-nyq-bench compilation under Windows. 2018-04-05 19:41:10 +01:00
James Crook
d153afb11c Allow SetLabel to make a selection too.
The 'Selected' option previously only selected the text.
2018-03-27 22:23:43 +01:00
Paul Licameli
e1b60916b7 More consistent naming conventions for choice control items...
... This commit leaves at least a comment for all choice controls of all
built-in effects and commands.

Use CamelCase with no spaces for the internal identifiers, given in
wxT("...")

Use more idiomatic English with spaces in the user-visible names, given in
XO("..."); these strings go to the message catalog for internationalization

Do not use underscores

In case these strings are the same, give it just once in XO("..."), but if in
a future version it is decided to change the name in XO("..."), then the
original should be kept also in a distinct wxT("...") string, so that
saved configuration or plugin settings or macro files don't become gratuitously
incompatible just because of that user-visible name change.

Left TruncateSilence alone for now -- I think that choice demands a rewrite
as a slider instead.
2018-03-27 15:57:48 -04:00
Paul Licameli
2065eebff6 IdentInterfaceSymbol to distinguish internal vs visible enum settings 2018-03-27 07:51:44 -04:00
Paul Licameli
81dd580c57 Pass array and count separately to read/write/define enum 2018-03-27 07:51:43 -04:00
James Crook
a4a588610e Revert "Bug 893 - Spectral Selection Toolbar misnamed"
This reverts commit eaada3a51d1cea89e737eb73f607a089e07816a2.
2018-03-26 20:18:37 +01:00
Paul Licameli
277537c7b8 Store choices as numerical codes in ScreenshotCommand, not strings...
... there was confusion whether they were meant to be a translated strings or
not
2018-03-26 14:45:22 -04:00
James Crook
460ff4644e JSONify the JSON (Thanks Robert)
Added quotes around the keys in JSON key value pairs.
Before this fix, we had Javascript, not JSON.
2018-03-26 09:56:51 +01:00
James Crook
eaada3a51d Bug 893 - Spectral Selection Toolbar misnamed 2018-03-25 21:41:56 +01:00
James Crook
ae564b2724 Bug 1837 - Unable to set empty track name
Also AudacityCommand dialogs now only show help button if there is help.
Also Track only shows track name over it, if there is a track name.
2018-03-25 13:43:49 +01:00
James Crook
872eec6142 Make finer gradations on SetTrack sliders
Also use log scale for Gain
Also fix unused parameter warnings
Also Gain before Pan.
2018-03-23 22:20:59 +00:00
James Crook
2f89c57b18 Fix defaults for unchosen optional values.
Previously when using a scriptable via dialog the unchosen optional values from the dialog were still being used.
Now unchosen options are reset to their default values, if they would be used.
2018-03-22 19:19:59 +00:00
James Crook
56bca74272 Add new dialogs to screenshot list. 2018-03-19 22:52:14 +00:00
James Crook
bd30e1f16d Add long names for some commands in menu. 2018-03-19 19:08:37 +00:00
James Crook
8f8429f9a5 Allow SelectTrack to select channels using 0.5 of a track.
This is a feature possibly only Audacity developers will actually use, but does allow for some cool use of stereo tracks.
2018-03-19 16:09:25 +00:00
James Crook
0a7d0068ec Use track selection for SetTrack, SetClip and SetEnvelope
These commands now have shorter dialogs.
Also fixed SetEnvelope optionals, which were not being honoured.
2018-03-19 16:09:24 +00:00
James Crook
2c57cd4344 Format dialogs more evenly. 2018-03-18 20:05:27 +00:00
James Crook
e978840044 Remove 'Set' from optional items.
This removes the text saying 'Set' beside an optional item.
It's a more far reaching change, as it allows the optional items to be
aware they are optional, paving the way for future nicer presentation.
2018-03-18 20:05:10 +00:00
James Crook
825160b755 Add six (smaller) dialogs to commands.
- These are the big dialogs, Select and SetTrack split into three smaller dialogs.
2018-03-18 19:08:31 +00:00
James Crook
913bd6f187 Split SetTrackCommand into three dialogs. 2018-03-18 19:08:15 +00:00
James Crook
7b658d7925 Fix problem where effects had gone from KeyConfigPrefs. 2018-03-17 21:20:09 +00:00
James Crook
e6a9bd70a2 Fix SetTrack for stereo tracks.
Stereo tracks have selection on both channels.  Both must be set or cleared.
We also need to explicitly remove focus, if it was set.  Code was only setting it.
2018-03-17 19:17:55 +00:00
James Crook
d7406b3b0f Update Fade-Ends Macro, and RelativeTo enums.
- FromEnd boolean parameter is now replaced by RelativeTo enum.
2018-03-17 19:17:54 +00:00
Paul Licameli
bc6ed77498 Fix missing translations in Choice controls again, see bc773e02d336cd 2018-03-16 17:58:32 -04:00
James Crook
e51a9734e0 Tweak Select Command.
- Now does a SetFocus
- Has options for what to select relative to.
2018-03-16 16:53:41 +00:00