Commit Graph

1924 Commits

Author SHA1 Message Date
Paul Licameli a7408a7f80 Remove TimeWarper.h from other headers 2020-06-13 11:22:41 -04:00
Paul Licameli 1bce7c1979 Disambiguate "Silence" 2020-06-06 15:14:42 -04:00
Paul Licameli 782ef138e0 Bug2431 residual: Restore commit 5e8cfb0...
... as urged by Leland.  It is really needed for a more complete fix.

This reverts commit 9894abc4f4.
2020-06-06 14:59:32 -04:00
David Bailes 13ec3300a9 Bug 2471 - Mix Stereo down to Mono fails if space at start of track
Fix:
In the constructor for Mixer, the start and end times should be in seconds, not sample numbers.

Also fixed in passing, in computing end time of a track, the max of the two channels should be used, rather than the min.
2020-06-05 14:33:45 +01:00
James Crook 296a9a2291 Bug 2468 - Python scripting of Nyquist effects must set ALL parameters, or all parameters are ignored.
My code is for normal Nyquist effects.  This fix also incorporates a fix from Leland for Nyquist Prompt.  Thanks Leland.
2020-06-03 12:45:15 +01:00
Paul Licameli 3646bb8afe Bug2431: Enable checkbox for ALL realtime effects should work...
... not just for AudioUnits, but also WahWah, VST, etc.
2020-05-29 20:54:45 -04:00
Paul Licameli c973f0d8ed Do restore a piece of 5e8cfb0c5adf9b3f917123e4d04d00423206d7d5...
... to initialize a variable
2020-05-29 20:54:45 -04:00
Paul Licameli 9894abc4f4 Revert "Bug 2431 - Mac: Real-time effects - Enable checkbox has no effect"
... so I can make a more general fix, for more than only AudioUnit effects

This reverts commit 5e8cfb0c5a.
2020-05-29 20:54:45 -04:00
James Crook 637712489f Bug 2428 - Nyquist Effects do not display a Progress Dialog if run from a Macro. 2020-05-29 21:54:18 +01:00
Paul Licameli 9360359e9d
Module manager (#549)
* Eliminate ModuleManagerInterface...

... It was there only to provide RegisterModule(), but that was not used
anywhere.  So simplify.

* Remove nested #include of ModuleInterface.h
2020-05-29 10:48:52 -05:00
Paul Licameli e9f63d43d1 Contexts & i18n-hints suggested by Joachim Huffer (thanks!) 2020-05-28 16:34:00 -04:00
Paul Licameli f3d91f488e Remove extern declarations from .cpp files...
... Require the declarations to be in .h files, to be sure graph.pl detects the
dependencies.

Only one more #include was needed in Nyquist.cpp.   This doesn't reveal any
more hidden cycles.
2020-05-28 05:50:25 -04:00
Paul Licameli fa4d35296e AllThemeResources.h has a .cpp & doesnt include Theme.h...
... (it used to, via MacroMagic)

This splits a cycle of 8 into 6 + 1 + 1
2020-05-28 05:50:24 -04:00
Paul Licameli 4ff0a9d74e Can build for windows without precompiled headers...
... Requires some more wx header inclusions, a renaming of CopyFile (to avoid
colliding with a certain macro changing it to CopyFileW), and an explicit
deletion of a copy constructor and assignment (to avoid generation of
std::vector members for an incomplete type)
2020-05-27 17:36:25 -04:00
Paul Licameli 83d5c81578 Change a function return from wxString to TranslatableString 2020-05-26 12:04:11 -04:00
Leland Lucius 5e8cfb0c5a Bug 2431 - Mac: Real-time effects - Enable checkbox has no effect 2020-05-25 18:27:46 -05:00
Paul Licameli 7fbfc2b292 Finish the job of 30dbdf4, deleting abandoned source files...
... And correcting #include paths, and removing mentions in read-me files, and
correcting CMakeLists.txt
2020-05-25 17:21:05 -04:00
Paul Licameli 95195a783f Enable optional context arguments for i18n in Lisp 2020-05-24 14:55:08 -04:00
Paul Licameli 67ce74d5ef Some example uses of XC and XPC...
... Really needed only for "White" but harmless in the other uses.  Also more
i18n-hint comments.

There may be need to disambiguate other strings.
2020-05-24 14:55:08 -04:00
Paul Licameli 6beeb86a6a Nyquist can still parse the older format for file controls 2020-05-24 12:22:40 -04:00
Paul Licameli 55c5a5f692 Allow continuations of Nyquist control lines either with $ or with ; 2020-05-24 12:20:46 -04:00
Leland Lucius fadc024432 Initial changes to build against wx313 2020-05-23 13:08:21 -05:00
Paul Licameli 7cf9263889 Simplify Loudness effect UI with a notebook...
... so that we don't need to recreate the validators and change label texts
after constructing the dialog.

This eliminates 4 uses of macro _ .
2020-05-23 13:56:39 -04:00
Paul Licameli 63c49db0ce Don't internationalize logged strings; -29 macro _ calls 2020-05-23 08:07:24 -04:00
Paul Licameli db690d94f7 Remove 27 various macro _ ...
... and supply a few missing translations in Dependencies.cpp

And substitute-don't-concatenate in a few places in Internat.cpp
2020-05-23 08:07:24 -04:00
Paul Licameli 7fb4652c88 Remove some unused functions and forward declarations 2020-05-23 05:16:59 -04:00
Paul Licameli c941647db6 Replace last wxProgressDialog with ProgressDialog; remove all wx/progdlg.h 2020-05-22 20:44:08 -04:00
Paul Licameli f1ae8109ee Internationalize file type choices for Nyquist as we do in C++ ...
... That is, present translators with msgids containing only the descriptions
of the file types.  No punctuation.

This eliminates the last wxFileDialog, replacing it with FileDialogWrapper.
2020-05-22 20:34:42 -04:00
Paul Licameli 3542eb4ca0 Replace wxFileDialog with FileDialogWrapper in two places 2020-05-22 20:19:02 -04:00
Paul Licameli c44ae15a4d Remove inclusions of wx/filedlg.h 2020-05-22 20:18:51 -04:00
Paul Licameli c63cbf01eb Be careful of static initialization of arrays of FileType 2020-05-22 20:14:02 -04:00
Paul Licameli 4d09705a73 Change XO to XXO in many more places, with no effects at all...
... because the two macros have the same expansion, and are both checked for
in the --keyword arguments passed to msgfmt by locale/update_po_files.sh.

This commit makes ONLY such changes, and comments in Internat.h.  It is big
but quite harmless.

The intention is to introduce a type distinction in a later release, by defining
XXO differently.  XXO is used where & characters in strings (for hotkeys of menu
items or control prompts) are permitted, XO where not.
2020-05-22 13:07:50 -04:00
Paul Licameli 5cef2cd3e4 Remove a few macro _ 2020-05-22 13:07:49 -04:00
Paul Licameli d22b650e6a Fix two typos for translated strings, now that strings are unfrozen...
... See commit 97fba037a4.
2020-05-22 12:48:49 -04:00
Paul Licameli f8a070dde7 Rename macro wxPLURAL as XP (brief, and eliminates mention of "wx") 2020-05-22 12:48:49 -04:00
SteveDaulton 29d1a7b7b1 Fix bug 2392
Commit 66fd95f3d6 reverted.
2020-04-20 11:26:57 +01:00
Paul Licameli 106119cb28 Make a scale factor in Compressor like all other scale factors...
... Multiply by it before putting value TO the slider.  Divide by it taking the
value FROM the slider.
2020-04-19 21:07:51 -04:00
Paul Licameli ee797f59de Fix bug in effect presets dialog...
... introduced at 46e99bb038
2020-04-18 22:31:51 -04:00
Leland Lucius e8f9f4a7e9 Bug 1336 - Tracks -> Mix Stereo to Mono ignores envelope 2020-04-17 14:52:31 -05:00
Leland Lucius a6d0b3f902 Bug 2360 - Scripting: "Message:" command may crash when using Nyquist with Python 2020-04-16 22:14:45 -05:00
Leland Lucius 9827d4a753 Bug 2360 - Scripting: "Message:" command may crash when using Nyquist with Python 2020-04-15 10:10:00 -05:00
Leland Lucius 9f5177056d Bug 2365 - Show Log text is invisible on W10- set to "High Contrast" 2020-04-14 16:42:00 -05:00
Leland Lucius 3653f5f3bf Bug 1807 - NyquistPrompt Scripting command is not functional
Try #3, but I'm pretty sure this is the one.  :-)
2020-04-14 11:37:57 -05:00
James Crook 97fba037a4 Two typo fixes for translated strings.
The extra logic causes the new string to be used, if the old one is untranslated.
2020-04-14 15:49:46 +01:00
Leland Lucius bbbe58719f Bug 2036 - Mac: Some AU plug-in effects can be enabled but fail to register 2020-04-12 14:02:10 -05:00
Paul Licameli 8fad3651a0 More corrections in comments 2020-04-11 10:26:49 -04:00
Yuri Chornoivan d1ada5f08c Fix minor typos 2020-04-11 10:06:24 +01:00
Leland Lucius ead26dd2aa Bug 1807 - NyquistPrompt Scripting command is not functional
2nd attempt... :-(
2020-04-05 14:54:11 -05:00
Paul Licameli 61abb87a77 Reviewed all i18n-hint comments...
... Moved many misplaced ones, which msgfmt would not have extracted into
audacity.pot.

Duplicated some of them, to appear with related but distinct msgids.

Added a few new comments.

Deleted one that was no longer needed in ProjectManager.cpp.
2020-04-05 09:00:00 -04:00
Leland Lucius 0523e292a3 Bug 1807 - NyquistPrompt Scripting command is not functiona 2020-04-04 16:11:11 -05:00
Leland Lucius c840133dd8 Bug 2384 - Filter Curve EQ error in non-English locale 2020-04-04 02:54:55 -05:00
SteveDaulton 8e57ce451a Add spectral delete effect 2020-04-02 22:41:06 +01:00
Leland Lucius 8ae9a708fe Fix disabled OK button in effects when monitoring 2020-03-31 13:54:02 -05:00
Leland Lucius 4b76af5314 Bug 2376 - Crash when attempting to use AudioUnit in Basic mode 2020-03-30 00:39:07 -05:00
David Bailes 203d801293 Built-in Generate and Analyse dialogs: add missing access keys 2020-03-27 14:40:26 +00:00
David Bailes eeeb4f3e1f Built-in effect dialogs: add access keys where necessary
Several of the dialog were missing acccess keys.
Note: access keys not added to Distortion effect as yet, due to complexity of control names changing when the Distortion type is changed.
2020-03-27 10:51:34 +00:00
Paul Licameli 9f076b5179 Make changes to Change Tempo dialog during preview work as intended...
... See commits b22f6b59d2 and
19fa6d2833
2020-03-26 11:13:43 -04:00
Paul Licameli 85c34132f4 fix sync-lock adjustment in effects, see commit a93c447 2020-03-26 11:08:22 -04:00
Paul Licameli 491b1d40a3 Remove unused member of Effect 2020-03-26 11:02:53 -04:00
Paul Licameli 8570ab7402 Fix incorrect type shuttling Loudness parameters 2020-03-22 22:08:31 -04:00
Paul Licameli 210fc28863 Bug 2368: Effects with clip boundaries differing across channels...
... Wrong results could happen in effects that don't compute the channels
independently, such as the built-in Reverb.

To fix it, always fetch same position of left & right channels when
computing effects.
2020-03-22 07:56:40 -04:00
Paul Licameli 8eee265c38 Fix error in generator code...
... see commit 5378b0a951

complete the change that was intended there, for both channels
2020-03-22 07:56:40 -04:00
James Crook d809745a55 Bug 2367 - Residual: Change Speed effect may create spurious clip at end
Also the fix for Change Pitch was not complete as it only worked for mono tracks.
2020-03-22 11:49:39 +00:00
Paul Licameli 37c8a6ef23 Remove unused member variable 2020-03-21 16:19:13 -04:00
Paul Licameli 7ae5c65580 Remove test in Loudness effect for same clip boundaries in channels...
... it was not correctly written, and anyway WaveTrack::Get doesn't really
report sufficient information to test as intended.
2020-03-21 15:48:58 -04:00
James Crook 0fe483f0e2 Bug 2367 - Change Pitch effect may create spurious clip at end 2020-03-21 19:40:56 +00:00
Paul Licameli b683ed8c07 Remove vestiges of unification of Normalize with Loudness 2020-03-21 11:14:13 -04:00
Paul Licameli 7224671628 Fix a comment 2020-03-19 15:47:55 -04:00
Paul Licameli 76a896845c Use safenew (appropriately!) in two places 2020-03-19 14:34:16 -04:00
Leland Lucius 9cf80a41ee Bug 2334 - Mac: AU effects cannot Export or Import the effect's settings
This removes the ability to import/export multiple presets at
once and add the standard method used by the other plug-ings.

It also adds a workaround for the AU view not updating after
setting a new preset.  I will continue to look for the true
cause of this, but the workaround does correct the display
issue.
2020-03-14 18:58:55 -05:00
Paul Licameli 76c3008759 Remove unused variable 2020-03-14 14:52:47 -04:00
Leland Lucius 12c940cdf6 Suppress deprecation warning 2020-03-11 23:47:55 -05:00
Paul Licameli c2feee6cea Bug2346: Complete fix...
... without making undesirable dependency cycles.

Eliminate calls to NewWaveTrack in effects, but in Edit>Copy too, which was
not mentioned in the bug report.  (Copying a track, deselecting all, and pasting
preserved CLIP colors, but not the TRACK color setting which applies to newly
generated clips.)

Instead, always use the new function WaveTrack::EmptyCopy from the track to be
later replaced, getting color information.

NewWaveTrack is still used in benchmark test, import, the Track menu
commands that make new tracks, recording to new tracks, and generators without
a selection, where there is no track to copy from.

Also when deserializing tracks from the .aup file, in which case the saved
color is later retrieved from the file.

Also, in mix-and-render, where other logic decides whether to copy colors
afterward.

See commit a9658e6ef7
2020-03-10 22:32:23 -04:00
Paul Licameli 046ee21e72 Move GetEditClipsCanMove to global function in TracksBehaviorsPrefs.cpp 2020-03-09 11:23:08 -04:00
Paul Licameli 37d730edfe Break dependency cycle of Effect and EffectManager 2020-03-08 16:21:28 -04:00
Leland Lucius ced4c21700 Bug 2334 - Mac: AU effects cannot Export or Import the effect's settings
Nearly all of the entire preset handling was broken.  It was based
on the parameter names only and for various reasons, that was very
inadequate.

So, it now uses the recommended approach.
2020-03-07 02:06:15 -06:00
Leland Lucius 35fa6cf399 Bug 2036 - Mac: Some AU plug-in effects can be enabled but fail to register
None of the effects listed in the bug expose any parameters.
2020-03-07 01:39:11 -06:00
Leland Lucius d15308b7e7 Bug 1602 - Mac: AUPeakLimiter plug-in visual corruption makes it hard to use the effect
And fix for #3 listed here:

https://forum.audacityteam.org/viewtopic.php?f=47&t=109165&p=387698#p387698
2020-03-06 23:20:23 -06:00
Paul Licameli a9658e6ef7 Alternative fix for Bug2346 without dependency cycles 2020-03-06 17:32:24 -05:00
James Crook f1b6843b9a Bug 2321 - Crash on editing ChangePitch parameters in a Macro
EffectChangePitch:: Don't use the inputTracks() when building the GUI
in Batch mode.

Repeat and NyquistEffect had the same problem as they could call
FindProject() which used inputTracks() on a closed project.  Fixed by a change in Effect::GetSelectionFormat().
2020-03-06 19:14:31 +00:00
James Crook 09883646ec Fix Linux builds (Case sensitive include paths) 2020-03-05 23:00:05 +00:00
James Crook 95bbe617b8 Bug 2343 - Presets: Effect Ids not the same in Presets as for Macros 2020-03-05 22:14:17 +00:00
Paul Licameli b8fd99692d Preview button of Noise Reduction always disabled when editing macro...
... as was intended but not properly implemented
2020-03-03 12:47:34 -05:00
James Crook 042b0f6b9b Bug 2338 - Graphic EQ: Frequency sliders cannot be identified by just looking at the effect UI. 2020-03-02 18:57:09 +00:00
Paul Licameli 91503a91f1 Amplify effect should correctly restore the saved can-clip setting...
... bug began at commit d98e41a

When not batch processing, don't overwrite mCanClip
2020-03-02 12:12:27 -05:00
Paul Licameli 310b5dea30 Fix (again) calls to AddCheckBox...
... Force you to pass bool now.  Break compilation in case you pass literal
"false", rather than implicitly converting it to bool true !

See commit 7766d9a192 which was in 2.3.2

But Max merged later at d9608cddea in 2.4.0, with
his effect apparently written analogously with the old code in Normalize from
before that, and this quetly compiled with the wrong effects.
2020-03-01 22:17:20 -05:00
James Crook ec00a7352f Bug 2340 - Macros: Graphic Eq and Filter Curve may open with wrong settings from Macro Editor 2020-02-26 12:31:31 +00:00
Paul Licameli da2e02242f Bug2325: Don't hang exporting effect presets twice...
... or, what I saw in my Mac builds:  there wasn't a hang, but there was
incorrect behavior on alternate attempts to export presets.  Sometimes, instead
of (correctly) giving a file overwrite warning, there was instead a message
box about failure to open a non-existent file path, which had the last path
component duplicated.
2020-02-25 11:39:46 -05:00
James Crook 3653af42fc Bug 2326 - Further wording tweaks. 2020-02-25 11:41:36 +00:00
James Crook d70365ba2b Bug 2326 - Wording improvement (as requested). 2020-02-25 11:09:43 +00:00
James Crook 64811e49f9 Bug 2326 - Export settings from one effect can be attempted to be imported into another effect - silent fail, with no error message 2020-02-24 20:57:47 +00:00
Paul Licameli 25d0871e55 Move i18n-hint to proper place...
... It must be on the line preceding the string to get into the .pot file
2020-02-23 14:41:58 -05:00
James Crook 24e5c9bde9 Remove old printfs
These were introduced when working on import/export of presets.
2020-02-22 19:06:01 +00:00
James Crook acf91a70e0 Clean up EQ changes.
- i18n comment
- Remove hanging not-needed comment.
- Remove some already commented out code.
2020-02-22 19:02:28 +00:00
Leland Lucius 80662a1b60 Add missing value initialization 2020-02-21 11:17:59 -06:00
James Crook 3332c9451e Slightly faster parsing of Nyquist programs.
This reads the program into a buffer first.
It also preallocates space for the Nyquist program.
2020-02-21 15:39:37 +00:00
David Bailes f5b8b4028b Accessibility: AutoDuck and Truncate silence effects.
Problem:
Screen readers don't automatically read the units of the values in text boxes.

Fix:
Add units the the accessibility name of the text boxes.

Thanks to Paul for providing ShuttleGui::NameSuffix(), which makes the code neat and readable.
2020-02-21 14:55:15 +00:00
SteveDaulton 3ba5f69089 Fix bug 2328: Ensure fade out at end of each DTMF tone 2020-02-19 19:42:21 +00:00
Paul Licameli 33b5d151ac Bug2271, Compressor ratio slider should not overlap the label...
... commit 707a069 was at fault
2020-02-18 14:21:11 -05:00
James Crook 970061483b Bug 2269 - Linux: Graphic Eq crash 2020-02-17 22:17:16 +00:00
James Crook a6699ed494 Bug 2283 - Crash on editing Nyquist Generator plug-in parameters in Macro
Big Thanks to Steve for finding this and writing clear steps to reproduce when logging this bug in Bugzilla.  Also thanks to Peter for confirming the same bug is present on Windows, i.e. is all platforms, not just Linux.
2020-02-17 16:31:40 +00:00
James Crook 1d9aa20a40 Bug 2261 - Graphic EQ sliders have no frequency labels 2020-02-17 14:10:37 +00:00
James Crook 4d54430c7c Bug 2270 - Graphic Eq: GUI opens too small vertically 2020-02-17 13:27:13 +00:00
James Crook 3d7cf17950 Bug 2254 - Graphic Eq: Inappropriate presets 2020-02-17 13:21:44 +00:00
James Crook 83c294c844 Bug 2237 - Equalization effects have no Import or Export for curves
This is a minimal fix for this bug, and can be improved on in time.  There is almost no error checking in the file read and write, so if you use a bad presets file, you won't be told (yet).

It does provide import and export for all effects that have presets.
2020-02-17 11:59:40 +00:00
SteveDaulton 63c7f6b722 Nyquist: Handle nyx_list return value
Required to avoid error on running Macoro Scripting commands
from Nyquist.
2020-02-15 15:28:01 +00:00
David Bailes 7ff9f1b302 Bug 2293 - Change Tempo effect fails
Problem:
Validation of the length fails, because what should be the min and max are in fact the max and min.

Introduced by commit 1d32824, which got the min and max the wrong way round.
2020-02-10 10:44:03 +00:00
SteveDaulton b85a393af4 Increase size of Nyquist string widget 2020-02-09 12:03:46 +00:00
Leland Lucius 70a67c51d2 Get rid of warning in LV2Effect.cpp
Use the wxCRT_StrdupA to use the appropriate strdup
function for the platform.
2020-02-06 23:18:48 -06:00
Leland Lucius 37f24ee3b0 Get rid of warnings
Must use the deprecated types to support older plug-ins.
2020-02-05 19:00:49 -06:00
Leland Lucius df1aeb8f3f Ensure suil can find the interface modules
Suil uses loadable modules to embed different
UI toolkits within other toolkits, so he needs
to be told where to find them.
2020-02-05 15:30:05 -06:00
Leland Lucius 703f59d709 Ensure a native window exists
Don't send a size event to a native window unless the native
window actually exists.
2020-02-05 15:26:08 -06:00
Paul Licameli 3b77af5dfc Remove TranslatableStringArray.h 2020-02-02 18:02:32 -05:00
SteveDaulton 3e94dfdca0 bug 2300: Limit number of clips in *track* clips property
Nyquist has a limit (less than 2000) for the number of arguments
which may be exceeded when creating the *track* clips property.
In the event that there are more than 1000 clips in a track,
Audacity will now only add the first 1000 clips to the *track* property
and add NIL as the 1001th.
2020-02-02 21:24:44 +00:00
Paul Licameli 4d43967add Restore commit c1d129ec98 2020-01-31 23:51:12 -05:00
Paul Licameli 2c25a37994 Revert to a465ce0046 2020-01-31 22:34:25 -05:00
Paul Licameli d9d3f95570 Several nonmodal top level window tools register their menu items...
... removing link dependencies on them from src/menus, so they are now suitable
for moving out into modules.

They are:
Mixer Board
Karaoke (also called Lyrics)
History
Contrast
Plot Spectrum

Their header files are now no longer included anywhere but in their own
implementation files!
2020-01-31 21:12:36 -05:00
Leland Lucius 6da68f2035 Remove obsolete config*.h files
These are ancient and "configunix.h" was being pulled in
via Types.h.  Nothing major, but they were generated for
a 32-bit system and "may" cause problems when used on
64-bit systems.

(That's unlikely though since they haven't all this time.)
2020-01-31 09:29:15 -06:00
Paul Licameli 9093364b8c Fix other problems since commit f6e5696...
... Problem with static initialization order of ReservedCommandFlags, caused
wrong enablement of menu items (at least on Mac), such as Plot Spectrum or
Contrast enabled when there was no selection
2020-01-28 17:49:07 -05:00
Leland Lucius d28009c93e Remove unneeded include 2020-01-24 22:25:52 -06:00
Max Maisel 17ef5b1c75 Fix two bugs in loudness effect (#410)
* Calculate loudness for short or silent selections as well.

In case of selections shorter than 400ms (one momentary loudness block),
take what we have got and divide only be the actual length.

Abort loudness normalization silently if the selected audio is all
silent.

* Fix loudness effect bug when selection includes a gap.

If the selected audio in a track contained a gap between two clips,
an incorrect amount of samples was processed.
2020-01-24 18:04:19 +00:00
Paul Licameli 921d7f28ef Correct a naked new 2020-01-24 10:25:51 -05:00
Paul Licameli b5b9ab6ecd EffectUIHost::BuildButtonBar uses ShuttleGui 2020-01-23 19:06:23 -05:00
Paul Licameli c28c170cc0 EffectUIHost::Initialize uses ShuttleGui 2020-01-23 19:06:23 -05:00
Paul Licameli eb3e5d8f6f Factor EffectUIHost::Initialize 2020-01-23 19:06:23 -05:00
Paul Licameli 1c84932dfa EffectUIClientInterface::PopulateUI takes ShuttleGui & 2020-01-23 19:06:23 -05:00
Paul Licameli eff5b2ef92 Make Effect::PopulateUI final (no special case for Equalization) 2020-01-23 19:06:23 -05:00
Paul Licameli 46e99bb038 Move EffectPresetsDialog out of Effect.cpp 2020-01-23 15:23:46 -05:00
Paul Licameli 808d4accfd Remove some friends from Effect 2020-01-23 15:23:46 -05:00
Paul Licameli e5625bfb89 Move EffectDialog out of Effect.cpp 2020-01-23 15:23:43 -05:00
SteveDaulton 9a0ee24c5c bug 2290: Add error message
See https://bugzilla.audacityteam.org/show_bug.cgi?id=2290#c9
2020-01-23 12:59:53 +00:00
SteveDaulton 32a60103b4 bug 2290: Bail if no DTMF sequence 2020-01-20 21:29:50 +00:00
Paul Licameli bbdc27b462 LoadEffects.cpp doesn't depend on individual effect classes... 2020-01-19 19:16:51 -05:00
Paul Licameli 69dab8b552 Each built-in effect class registers itself with BuiltinEffectsModule 2020-01-19 19:16:51 -05:00
Paul Licameli 4579835911 Eliminate one of the ## macro hacks in LoadEffects 2020-01-19 19:16:51 -05:00
Paul Licameli 83be5b3045 All loaded built-in effects have nullary constructors 2020-01-19 19:16:50 -05:00
Paul Licameli f2ed21f9e5 Fix some comments 2020-01-19 13:23:30 -05:00
Paul Licameli 2570b56176 Rename Maybe and its members more like std::optional of C++17 2020-01-19 11:38:12 -05:00
Paul Licameli d2ccde77e7 Remove another exhaustive switch on view sub-types, in Nyquist.cpp 2020-01-18 20:28:53 -05:00
Paul Licameli 7cff170cf7 Sub-view objects report their complete type, not just an enum value 2020-01-18 20:28:53 -05:00
Paul Licameli d9ddb41410 Un-fix smart single quotes in Nyquist prompt too; see commit 45a0ce1 2020-01-18 19:34:40 -05:00
Paul Licameli 73fd60543d Amending commit 1176b61 to avoid compatiblity break in macros using EQ 2020-01-18 11:14:41 -05:00
Paul Licameli 705d4a26a5 Don't supply "Waveform (dB)" to the 'VIEW property in Nyquist...
... consistently with the drop-down menu, and now the Tracks Preferences too.

Only distinguish Waveform and Spectrogram and nil.

See also commit e3d9fd9.
2020-01-17 22:48:23 -05:00
James Crook 1176b61953 Wording changes, per wiki:
https://wiki.audacityteam.org/wiki/Wording
2020-01-10 17:02:31 +00:00
Paul Licameli 66fd95f3d6 Rewrite the path through NyquistEffect, in the case that...
... you use the prompt, and you enter a complete script with control comments
that are reinterpreted to put up a second dialog.

This simplifies Effect::Delegate() and avoids mutual recursion of ShowInterface
with DoEffect.
2020-01-08 16:48:37 -05:00
Paul Licameli e8c8db8b33 Parent and dialog factory arguments of Effect::DoEffect are optional 2020-01-08 16:47:21 -05:00
Paul Licameli 4385326e9d Fewer calls to Effect::FindProject when only rate is needed 2020-01-07 18:38:56 -05:00
SteveDaulton 8b1ecf03a4 Fix bug 2280 2020-01-07 16:47:50 +00:00
Paul Licameli 6a0aed3884 Eliminate uses of GetActiveProject in src/effects 2020-01-06 14:14:21 -05:00
Paul Licameli a93c4472f5 TrackList has back-pointer to project...
... and Track::GetOwner() is publicized, so that now you can find the
the AudacityProject, if any, that owns a given Track; this will help eliminate
some uses of GetActiveProject
2020-01-06 14:14:21 -05:00