1
0
mirror of https://github.com/cookiengineer/audacity synced 2025-08-09 08:31:13 +02:00

814 Commits

Author SHA1 Message Date
james.k.crook@gmail.com
3da033cdb7 Andrew Hallendorff's multithreaded Equalization effect. 2014-10-09 21:52:19 +00:00
lllucius
c6faffd731 Further Nyquist Prompt bug fixing from Steve
With the addition of the preview button, it became evident
that if an effect were to return text instead of audio, the
processing loop would not stop properly.

And he also found a case where the debug state wasn't reset
after using the debug button.  If this was following by the
preview button the next time the effect was used, the debug
window would reappear before the preview.
2014-10-08 01:47:01 +00:00
lllucius
80c216cccf Reset the selection time after a preview.
Steve found that if you preview an effect and, say, cancel it
before it finishes preparing, an apply will not modify all of
the originally selected audio...just up to the preview length.

This is very easy to reproduce using the Paulstretch on a 30
second clip...just click stop on the "Preparing preview"
dialog and the click apply.
2014-10-06 21:53:58 +00:00
lllucius
bdcefb4850 Preliminary changes for wxWidgets 3.0.1
We can't go to 3.0.1 yet as there are still build issues on
Linux and OSX.  You can get Windows to build, but there's
still some display issues.

These changes should work with wxWidgets 2.8.12 as well, so
we can take our time to get things working properly before
switching over.
2014-10-06 08:10:50 +00:00
lllucius
8ecd6b538d Adding preview to Nyquist effects as requested by STF
He also added a new Nyquist control header that gives each
effect the ability to control the presentation of the Preview
button.  This will be used by effects are time based and, therefore,
do not produce the same results in preview as they do when applied.

I expect Steve will be committing changes to the effects that can
take advantage of this shortly.

Testing of this can be accomplished by adding:

;preview enabled

to the "tremelo.ny" effect, just after the ";action" line.

Adding that line will cause the "Preview" button to be shown and
you will then be able to preview, adjust, preview, apply...
2014-10-05 18:22:41 +00:00
james.k.crook@gmail.com
f5e593cc4c Paul L's new SelectedRegion class replacing use of t0 and t1. Also LabelTrack.h no longer in TrackPanel.h includes.
This change is believed to be a direct refactoring that does not change functionality.  It paves the way for more complex kinds of selection, such as selections involving frequency as well as time.  It also reduces risk of left and right edges being swapped in future code using SelectedRegion, as the default is to swap on assignment if needed.
2014-10-05 17:10:09 +00:00
richardash1981
d2b4eca65b Patch by Martyn Shaw to fix a crash when the output of the VST effect does not have exactly two channels - we can now have any reasonable number of outputs from the plugin. This has been crashing windows builds of Audacity. 2014-08-26 21:51:28 +00:00
v.audacity
c8ea76b80e rewordings based on Gale's suggestions, and a few of mine 2014-08-20 02:44:27 +00:00
stevethefiddle@gmail.com
41c3444f37 Fix for incorrect attack/decay time by Paul L and remove unused variable. 2014-08-06 02:19:09 +00:00
lllucius
de68121d79 This fixes bug #740 and another crash.
I can't believe two things...

I can't believe I didn't test the textual display!  I'm really ashamed about that.

And I can't believe that we've never had anyone report a crash when attempting to
using the textual display with plugins that do not supply textual parameters.  Some
examples are the ones from BBE Sound.

I went back to Audacity 2.0 and they would crash there as well.  I'd wager they
probably always caused Audacity to crash.

Not much can be done except to fall back to the graphical display.
2014-08-05 05:35:57 +00:00
v.audacity
c70c02130a Martyn's patch for Bug 721 - Equalization: Changing language from non-English to English creates two "unnamed" curves. 2014-08-01 20:15:30 +00:00
RichardAsh1981@gmail.com
3f49828d37 Standardise on working oof Recording and Playback rather than Input and Output throughout Audacity. Remove some very old junks strings at the same time. 2014-07-21 21:37:53 +00:00
lllucius@gmail.com
baa8f8a701 Gale found the reason I'd put in the yield during Nyquist processing,
so added it back for the Mac only.  See discussion in:

http://bugzilla.audacityteam.org/show_bug.cgi?id=734
2014-07-15 02:41:21 +00:00
lllucius
fe241e4d23 Implement suggested fix for http://bugzilla.audacityteam.org/show_bug.cgi?id=734. Tested on Windows and Steve tested on Linux. 2014-07-12 14:29:54 +00:00
RichardAsh1981@gmail.com
6605ac07e2 redirect Help button to Audacity documentation, using new infrastructure. Based on a patch from Steve the Fiddle 2014-06-09 19:56:25 +00:00
RichardAsh1981@gmail.com
59b8cdeaa8 separate out Help system functions into their own source file (pending some extra ones) and change the required includes to accomodate this. As a result, some error class definitions have to move from .cpp file to .h file. 2014-06-06 21:34:36 +00:00
benjamin.drung@gmail.com
277932dccb Remove trailing spaces. 2014-06-03 20:30:19 +00:00
stevethefiddle@gmail.com
6003abb21d Bug 713 - remove duplicate "dB" label. 2014-06-01 13:01:42 +00:00
benjamin.drung@gmail.com
5308169b20 Include <wx/dynlib.h> on Linux for wxDynamicLibrary. 2014-05-31 20:30:39 +00:00
benjamin.drung@gmail.com
0fee6939e2 Fix default LADSPA search paths on Linux.
The default LADSPA search paths should be
/home/<user>/.ladspa:/usr/local/lib/ladspa:/usr/lib/ladspa according to
http://www.ladspa.org/ladspa_sdk/shared_plugins.html

Additional search in the ladspa subdirectory of the system library directory
(which could be /usr/lib/x86_64-linux-gnu/ on Debian, for example).

Bug-Debian: http://bugs.debian.org/724836
Bug-Ubuntu: https://launchpad.net/bugs/1261654
2014-05-31 20:01:21 +00:00
lllucius
e77ad86b8d Misplaced include broke Windows build... 2014-05-31 12:16:38 +00:00
lllucius@gmail.com
5b18fe3347 Enable VST support on Linux 2014-05-28 06:45:03 +00:00
lllucius
de27ef14c9 Restore preset behavior until a better solution is devised. 2014-05-27 07:08:10 +00:00
lllucius@gmail.com
bc6904077f Fixing a crash exposed by the kn0ck0ut LV2 plugin.
After reporting the crash to the kn0ck0ut LV2 maintainer, he pointed out that
Audacity wasn't connecting to all required LV2 ports.  In this case it was the
latency port.  This corrects that oversight.

In addition, since I was fiddling with the latency port, I figured I might as
well go ahead and add the necessary code to compensate for it.
2014-05-27 02:06:00 +00:00
lllucius
c79bf9b1fa Bug fixes and additions to VST plugins
Bugs fixed:

1)  When scanning for VSTs on Mac, bogus lines could show up in the list if the .vst
    file had more than one Info.plist in the bungle.  GRM and TAL plugins exhibited
    this issue.
2)  When scanning for VSTs on Mac, reuse of a variable caused the plugin to be
    accepted even though it was a synth.  So it would show up in the Generate menu.
3)  I recently disabled the the plugin list dialog once the OK button was clicked
    to prevent clicking it again.  This was overkill and prevented clicking Cancel
    while the scan was running.  So, changed it to only disable the OK button.
4)  The new Settings dialog would save the settings even if you clicked Cancel.
5)  Detecing the overlay window on Mac didn't work in all cases.  Did more research
    and I believe the revised method is correct. (Window list is z-order sorted)
6)  When changing the preset from the top combo, the return value from the
    plugin was not check when getting the current preset (program).  It assumed
    that there was always an active program.  This is not at all correct.

Most of the new additions are an attempt to be more compatible with more plugins.
I have not found any plugins that crash Audacity anymore, so I'm not sure how to
really give these changes a good workout.  However, Guitar Rig 5 and Reaktor 5
are now quite usable since one of the additions was window resizing.

1)  Refreshed the aeffectx.h header from the LMSS project and merged in some
    additional changes from Ardour.
2)  Changed the method prototypes to reflect the new aeffectx.h header.
3)  Plugin scan dialog now has a "Select All" and "Clear All" buttons.  (On a
    personal note, this was a major boon while testing...way easier to include
    a single VST.)
4)  Uses a timer now instead of the wxIdleEvent to send effIdle messages to the
    plugin.  Idle could be all many times more than was necessary.
5)  Process level is now reported when requested by the plugin.  Don't know how
    useful it is, but many plugins request it.
6)  Two new events are sent to the dialog from the audioMaster callback to support
    window updating and resizing.  Figured it was safer this way since the callback
    "might" be called from a different thread (as far as I could figure out anyway).
7)  Current sample rate is now returned to the plugin when requested.
8)  The dialog now resizes when the plugin informs us of a size change to its window.
    This was one of the major drawbacks to using Guitar Rig and Reaktor as their
    window would resize and pretty much be useless since the dialog didn't adjust to
    the new size.  Kontakt was another that even includes a draggable resizer in the
    bottom right corner which the dialog supports just fine now.  (Not that Kontakt
    is actually supported though.)
9)  The preset bar is now updated when the plugin informs us of "major" changes with
    the UpdateDisplay opcode.  I noticed that when changing presets within Guitar
    Rig, the preset bar didn't change.

Discovered limitation:

Guitar Rig and, it seems, other plugins will only report a maximum of 128 presets (or
rather programs) even if they support more.  I'd figure out a way to populate the
combo with all of the presets via some major hackage, but it didn't do any good since
Guitar Rig simply refused to set any program number above 128.

Not much can be done about this...just a heads up.
2014-05-26 01:36:14 +00:00
lllucius
8a5d31588a Rework some strings for consistency as suggest by Gale. 2014-05-23 07:52:56 +00:00
lllucius
a2d7b626fd Sven Giermann's FXP support changes 2014-05-23 06:07:27 +00:00
lllucius
631f6a119d Fix another loading issue with VST XML files. 2014-05-23 04:41:19 +00:00
lllucius
8b1d71c657 Fix VST XML file loading if it contained "chunks" 2014-05-23 04:18:43 +00:00
lllucius@gmail.com
31d23fdf3f Add some compatability for some Mac effects
Mac effects that use overlay windows should now work correctly.

And I made some minor changes to the settings dialog as suggested
by Gale.
2014-05-22 23:00:24 +00:00
lllucius
680896b1b9 Fix loading of VST XML programs. 2014-05-20 07:30:23 +00:00
lllucius
001c8a80f7 Add buffer delay compensation and settings dialog
The buffer delay compensation resolves the issue where an effect
may add a delay to the output.  This would cause the output to shift
and the final samples to get chopped off.

The settings (click Settings on any VST dialog) dialog allows the user
to enable/disable the BDC and to set their desired buffer size (within
reason) to help improve performance.

In addition it fixes a bug in the plugin scan list were you could click
OK twice and have two scans going, eventually asserting.
2014-05-20 05:30:41 +00:00
stevethefiddle@gmail.com
fbf9ca213c Bug 717 - Truncate Silence outLength calculation. 2014-05-17 14:54:26 +00:00
martynshaw99
acfac39316 Steve's patch for bug 698, getting 2 more effects into chains by identifying them properly. Also forces effects to identify themselves so we don't have this problem in the future. 2014-04-16 22:39:10 +00:00
windinthew
c7a82c3972 Clarify we are saving / loading a preset, not a program. 2014-04-07 21:41:30 +00:00
martynshaw99
1ffd419b11 Steve's changes to 'Truncate Silence' which compile for me, and the result seems sensible, but I have not done any 'code review' so committing this on trust. Very limited risk, one 'effect'. 2014-03-19 00:50:24 +00:00
martynshaw99
f1ce8a5cc2 Optimisation for speed, due to some code I found in an FFT routine. 2014-02-17 00:00:59 +00:00
martynshaw99
7f34f9c1ff More accurate control text (thanks to Steve).
Layout when required.
Remove commented out old code.
2014-01-28 23:36:52 +00:00
RichardAsh1981@gmail.com
488d5cd3cf Delete allocated buffers before returning error if subsequent allocation fails. Patch (to feedback@) by Martin Ettl. 2014-01-18 12:28:45 +00:00
james.k.crook@gmail.com
88bfabbd76 Indentation of EVENT_MAPS fixed. 2014-01-16 18:25:03 +00:00
james.k.crook@gmail.com
d847ee7162 Andrew Hallendorff's SSE accelerated Equalization. 2014-01-16 17:55:35 +00:00
v.audacity
d847bd1d66 " Contrast lacks access keys " bug 700 patch 2014-01-10 01:40:19 +00:00
v.audacity
be8823cce9 "Reverb: Access keys missing" bug 686 patch 2014-01-10 01:30:58 +00:00
windinthew
ba68f731d0 Make the effect dialogue read "Classic Filters" too. 2014-01-09 14:45:24 +00:00
martynshaw99
3f1ebbe3dd Don't allow 'Classic Filters' to be applied to mixed sample-rate tracks, as we don't support that.
Fix a typo in the name of 'Classic Filters'.
Improve consistency layout as we switch filter types.
Remove a win warning in EQ.
Improve some code readability / change styles (please don't shoot me for that!).   OK, possibly increased the inconsistency.
2014-01-09 00:13:34 +00:00
windinthew
4dd1aa50ad Missed this - can't use "C" access key either on Linux - used for "Cancel". 2014-01-08 12:29:40 +00:00
martynshaw99
45973724b3 Eject if tracks are not all at the same sampling rate.
We could perhaps apply the filter at different sampling rates, but that would require a lot of reworking.
2014-01-08 01:03:31 +00:00
windinthew
a2dbc06869 Shouldn't use "O" for access key as it's already used as the key for OK button on Linux. 2014-01-07 14:52:38 +00:00
martynshaw99
b6160db1b7 Rename 'Scinentific' filter as 'Classific Filters' 2014-01-07 01:25:16 +00:00
windinthew
ae5556ad1f Space between value and "dB" for consistency and readability. 2014-01-03 12:58:33 +00:00