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

93 Commits

Author SHA1 Message Date
Steve Daulton
d9f3c432d4 Fix for bugs 943, 942, 941, 843 and 775.
Non-linear effects now process tracks before mixing.
This will be slower when multiple tracks are selected
but the preview should now match the applied effect.
SetLinearEffectFlag(true) allows linear effects to
preview more quickly when multiple tracks selected, by
pre-mixing selected tracks.
Simple generators like Tone and Noise may be marked as
'linear' so that they only preview a few seconds.
Generators that vary over time (such as Chirp) must use
the full duration that is set. As this currently
requires calculating the full duration, preview for
'non-linear' generators are not limited to the preview
length.
2015-05-15 12:51:51 +01:00
Leland Lucius
409cb45362 Make sure selection times are initialized
This should fix the initial duration issue when adding
generators to chains.
2015-05-12 23:19:56 -05:00
Leland Lucius
f0cd43236d Select generated audio on success 2015-05-04 20:52:25 -05:00
Leland Lucius
848ec5a9b9 Disable Apply button while the effect is running 2015-05-04 12:15:54 -05:00
Leland Lucius
bda5653d19 Bringing back the close/cancel button
But, it's at least in the right location now for modal effect dialogs
which might me it more agreeable.
2015-05-04 11:06:27 -05:00
Leland Lucius
7950d4fd5a Workaround text controls not getting autoselected
Also fix AutoDuck so the panel doesn't get focus.
2015-04-29 03:31:40 -05:00
Leland Lucius
06a2eab9f6 Center dialog...was in the top-left corner on OSX. 2015-04-27 21:14:47 -05:00
Leland Lucius
e684fe9e1f Change affirmative button label to OK for modal dialogs 2015-04-27 13:16:08 -05:00
Leland Lucius
7407243e25 Save/restore effect state during batch processing 2015-04-27 09:22:47 -05:00
Leland Lucius
e41db0e4b4 Preload the "Select Preset" with current setting
Also, loads the command parameters box with the default preset if
the selected effect doesn't expose any automation parameters.
2015-04-27 05:02:56 -05:00
Leland Lucius
4f4acffad1 Allow chains to use current/factory presets/settings
Also gives builtin effects a mean to determine if batch processing
is active, IsBatchProcessing() returns true if so.
2015-04-26 16:41:05 -05:00
James Crook
f955376372 No close button. Use the close X.
I find I keep clicking the close button by mistake.  It's rare to want to cancel a previewed effect.  So trying it like this instead?
2015-04-25 21:06:27 +01:00
Leland Lucius
f7a7674e97 Fix loading/saving user presets for external effects 2015-04-23 08:17:33 -05:00
Leland Lucius
dc12de8901 Fix factory reloading for external effects based on Peter's feedback. 2015-04-23 08:04:32 -05:00
Leland Lucius
e8b0ca8707 Bring back the Nyquist debug button 2015-04-22 15:55:58 -05:00
Leland Lucius
c7aa6d684e Change the NVDA trickery to the "\a" (audible bell) escape sequence. 2015-04-20 12:33:03 -05:00
Leland Lucius
06209756b6 Apply same NVDA trickery to the effect button panel 2015-04-20 10:05:53 -05:00
Leland Lucius
6212da3e2d Keep NVDA from saying "panel panel" when dialogs get focus
This will need to be tested with JAWS and Window Eyes.
2015-04-19 23:03:54 -05:00
Leland Lucius
5e27710495 All generator effects now use common Duration handling
(Also updated a few windows IDs to fit the pattern)
2015-04-19 19:48:04 -05:00
Leland Lucius
835000d916 Should fix the invalid initial duration for generator effects 2015-04-17 22:52:34 -05:00
Paul-Licameli
2b85d0edb4 Preliminary function argument list changes and comments, for scrubbing project
In particular, use an options structure for AudioIO::StartStream to simplify
calls

ControlToolBar::PlayPlayRegion also takes that structure as an argument, and a
SelectedRegion instead of two times

And other changes
2015-04-17 02:25:39 -04:00
Leland Lucius
8fbfa460c4 Migrating the remaining effects
This brings the builtin, LV2, and VAMP effects inline with the
Audio Units, LADSPA, and VST effects.  All effects now share
a common UI.

This gives all effects (though not implemented for all):

User and factory preset capability
Preset import/export capability
Shared or private configuration options

Builtin effects can now be migrated to RTP, depending on algorithm.
LV2 effects now support graphical interfaces if the plugin supplies one.
Nyquist prompt enhanced to provide some features of the Nyquist Workbench.

It may not look like it, but this was a LOT of work, so trust me, there
WILL be problems and everything effect related should be suspect.  Keep
a sharp eye (or two) open.
2015-04-16 23:36:28 -05:00
Paul-Licameli
14a36dad46 Bug834, part 2 - Memory leak and orphans after cancelling any generator
New project.  New track.  Generate sound -- do not cancel.  Select all,
generate sound again -- this time, do cancel the progress dialog.

Undo, so you see one, empty track again.  Save.  Close.  Reopen.

The cause of these orphans is different from the first case.  The previous
commit is necessary but not sufficient to fix this.
2015-04-08 11:41:38 -04:00
lllucius
10f62cdae5 Fix for bug #833
This allows duplicate items in the effects menus and provides a
means to uniquely identify each item.
2015-01-19 16:28:48 +00:00
lllucius@gmail.com
85f6279d21 This fixes a couple of issues with AudioUnits and 1 with latency
If latency was introduced by an effect, the input position could
get offset by the amount of latency, such that the same input
would be processed twice for the number of sample of latency.

There was an issue in AUs where a "latency done" flags wasn't
being reset and so the second and subsequent uses of an effect
could not latency correct.

And in research that, I found that you need to set the sample rate
on all 3 scopes (global, input, and output) instead of just the
global scope.
2015-01-11 22:52:08 +00:00
lllucius
ea112bddc1 Fix crash reported by Steve
Steps to reproduce:
1) Launch Audacity
2) File > New
3) Generate a sound in the new project
4) Open a LADSPA effect
5) In second project: File > Close, don't save changes.
6) In first project, generate a sound.
7) Click "Play" button - crash :-(
2015-01-06 18:01:04 +00:00
lllucius@gmail.com
aa49817563 Fixes 2 VST issues, an RTP issue, and relaxes an AU restriction
1)  Shell VSTs were completely unrecognized...that is no longer the case
2)  All VSTs will now ALWAYS be initialized and cleaned up from the main
    GUI thread.  I found that some Waves VSTs would freeze Audacity when
    initialized in the audio thread and closed in the GUI thread.
3)  While realtime previewing, it was possible that the wrong slave 
    could be used to process new blocks of audio.
4)  I found that the Waves AUs don't crash on a real Mac (instead of a
    virtual machine), so I removed the "black list" I'd put in just for
    them.  (Something to do with needing full 3D support I think.)

Anyway, #2 and #3 were quite intrusive, so as much RTP testing as possible
would be a good thing.
2015-01-02 05:24:43 +00:00
lllucius@gmail.com
02717da3a2 Fix for bug #808 2014-12-30 22:06:46 +00:00
lllucius
e64019dcf6 Trying a checkbox to control enabled state 2014-12-20 18:22:44 +00:00
lllucius
4382a5c835 Replaces enable/disable images and a few other changes
Makes the tooltips display the action that is going to
be performed rather than a generic description.

Disables transport buttons when the effect dialog is
initially displayed if another project has using the 
audio device.
2014-12-20 00:13:33 +00:00
lllucius
9bbc261321 Attempt #2 at taming the meter toolbars
It corrects several "multiple project" problems with the
meter toolbars and meters.

In addition, there was a "multiple project" issue where
the transport buttons didn't disable properly in the
non-active project.
2014-12-19 16:38:56 +00:00
lllucius
9fc254a627 Add missing button labels 2014-12-19 09:05:32 +00:00
lllucius
adeb0997e1 Replacing "power on/off" with "enable/disable" 2014-12-19 06:57:22 +00:00
lllucius
fe42e881a5 First stab at taming the meter toolbars
This should correct at least a couple of the reported
issues.  And it also has some fixes in for multiple
project support.
2014-12-17 19:16:08 +00:00
lllucius@gmail.com
9c4f68c6a3 Better "text bar" sizing on Linux and OSX 2014-12-16 22:35:29 +00:00
lllucius
7b6cbeec22 Distinct button bars for graphical and textual modes
This bit the textual mode plain old text based buttons
and retains the bitmap buttons for graphical mode.

It also allowed me to remove the manual accelerator table 
building (no access keys in GUI mode) which was a good 
thing as I really didn't know if the was gonna work for
non-English keyboards anyway.
2014-12-16 21:41:58 +00:00
lllucius
cd94cceb8a More updates suggested by Gale
1)  Manage Effect -> Manage on the menu button
2)  Update uncapped "Ladspa" to "LADSPA"
2014-12-16 15:05:08 +00:00
lllucius
f2bf4e7847 Addressing effect dialog suggestions from -quality and -devel
1)  Play now respects play region
    If there is a play region it will always play that no matter
    what the selection is and it will always "rewind" to the start
    of the region even if stopped in the middle.

2)  i18n-hints added to the labels and tooltips to let translators
    know that the access keys should be the same for the different
    labels/tips for a specific button.

3)  (ALT+...) removed from the Mac tooltips

4)  You now get a message if nothing is selected and Apply is pressed
    I thought this was simply the best way...nothing fancy.
2014-12-16 05:49:51 +00:00
lllucius
16ca4f17eb Re-adding localized menu labels for effects
If you can believe it, this whole big mess is
just to get localized effect labels back into
the menus.

I sure wish I'd had a little bit more time to
finish up all of the effects.  It sure would 
be a lot cleaner (code wise).
2014-12-15 21:54:23 +00:00
lllucius
f3f3844b25 Change play/stop label/tip to allow consisten translattion 2014-12-15 16:05:30 +00:00
lllucius
7509b7e84a Toggle the play button label/tip between Play and Stop 2014-12-15 09:18:42 +00:00
lllucius
7fd0f4e8bc Change label/tooltip for power button to indicate action
(Holler if it should indicate state instead and if the
play/stop button should do the same)
2014-12-14 16:28:19 +00:00
lllucius
6ecf2e38e9 Separate power button and playing state
This will allow the power button to function independently
of the actual playback state.  It also gets rid of the whole
"Bypass" folderol.
2014-12-13 18:24:11 +00:00
lllucius
6ea62095de (Hopefully) Provide for localized accelerator keys 2014-12-12 14:44:50 +00:00
lllucius@gmail.com
994acab14f Fix for bug #773
This is only a workaround since the real problem is in wxGTK.  Hoping
it has been fixed in wx3.
2014-12-12 08:53:28 +00:00
lllucius
a869490b44 Reintroduce the mnemonic characters
Per David Bailes, removing the "&" mnemonic characters also
removed the access key feedback present to screen reader
users.  He also found that having the mnemonic and the
accelerators still prevented the focus from jumping to the
transport button.

I'm hoping that with wx3, we can clean this up some as it
appears they've redone the whole bitmap button design.
2014-12-12 06:55:47 +00:00
lllucius@gmail.com
8f5084b665 Resolves two issues
On Windows, when the button access keys were used, the focus
would jump to the associated button.  This would be a real
pain for keyboard user since they would then have to TAB back
to the control they were on to make further adjustments.

By using the accelerator table instead of the normal mnemonic,
the access key isn't directly tied to the button, so focus
remains untouched.

On GTK, this actually makes the accelerators work.  It seems
that normal mnemonics do not work with a wxBitmapButton, so
using the accelerator table provides the access keys.
2014-12-09 02:58:09 +00:00
lllucius
969db08acb Added access keys to transport buttons in Effect dialog 2014-12-08 14:54:06 +00:00
lllucius
814ed57a68 Better resolution than r13716
The hairbrained "solution" I came up with in r13716
"worked" but it was simply unnecessary and this is
what I should have just done to begin with.

The previous "solution" actually caused some display
issues in the menus.
2014-12-08 03:11:20 +00:00
lllucius
9ce427f283 Fixes StereoToMono effect
The problem is that lookup of effects is based on their
ID and legacy effects didn't play well in this scheme, so
I've added a workaround for now.  This will go away when
I get all of the effects converted.

And removes some debugging.
2014-12-07 19:27:06 +00:00