1
0
mirror of https://github.com/cookiengineer/audacity synced 2025-05-05 14:18:53 +02:00

2560 Commits

Author SHA1 Message Date
Paul Licameli
03984c48a5 Bug1096: Fix crash changing view types 2015-07-25 19:58:24 -04:00
Paul Licameli
65f1bbe449 Disable spectral editing effects in one place in Nyquist.cpp...
... by passing invalid frequency values,
rather than by checking the 'view property in each effect.

Spectral editing is now permitted only for appropriate track view types.

But I would suggest reconsideration of the exact conditions in which we do
this.
2015-07-25 15:12:18 -04:00
Paul Licameli
7f7506dbcd Bugs 895, 1048: Now typing '-' can set upper or lower frequency to undefined 2015-07-25 14:41:44 -04:00
Paul Licameli
d3c9a9fd80 Bug1093: Now selection in Waveform view will not delete frequency selection 2015-07-25 13:53:39 -04:00
Paul Licameli
fd274e6d0e Bug892: Spec. Sel. Toolbar no longer forces selection below half project rate...
... rather, selections up to half of the maximum of project rate and all track
rates is permitted.

Also added some more cautions to the Nyquist code for spectral selection
effects, in case input frequencies exceed Nyquist for the track (as they
may now do).
2015-07-25 13:28:23 -04:00
Paul Licameli
cf9851c313 Bug 891: Changing low or high frequency in spectral selection toolbar...
... will not change the opposite bound, but will instead be constrained by it.
2015-07-25 11:41:52 -04:00
Steve Daulton
df8ddde874 Added dB - linear amplitude conversion macros. 2015-07-24 21:59:34 +01:00
Steve Daulton
da060228eb Update Normalize.cpp
Allow 2 decimal places in Normalize control (as requested by Gale).
I don't see any practical case where this is 'necessary', but it is a user request, there may be some obscure use case, and it does no harm.
2015-07-23 17:51:39 +01:00
Paul Licameli
0eca155060 Bug 1089: Spectrogram and Spectrogram log(f) views cannot be selected 2015-07-23 03:52:42 -04:00
Paul Licameli
007e0f7103 Bug 1089: Spectrogram and Spectrogram log(f) views cannot be selected 2015-07-23 03:51:46 -04:00
Steve Daulton
aa54699cf4 Improve input precision for some effects.
This addresses some minor regressions that occurred as a consequence
of the improved validation in 2.1.1.
2015-07-20 16:29:44 +01:00
James Crook
90d03f8351 More deconsting to satisfy Travis
const in struct not supported by Travis version of gcc.
2015-07-19 19:51:30 +01:00
James Crook
13c17d3d5d Fix Travis Build (const in structure)
Not supported by version of gcc used by travis.
2015-07-19 19:01:15 +01:00
James Crook
c4825967de Bug844 - Shortcuts that activate play abort recording
Six shortcuts for play after/before selection now added to shortcuts that are disabled if Audio is recording.
2015-07-19 18:43:49 +01:00
Paul Licameli
e70f91c64e Removed ShuttleGui.h from other headers 2015-07-19 12:31:03 -04:00
Paul Licameli
c02652b3ab rest of fisheye drawing code...
And finally, make ZoomInfo::zoom protected!
2015-07-19 11:44:29 -04:00
Paul Licameli
57e0ce56ed Draw tool does not assume editing is allowed all-or-none across the whole screen 2015-07-19 11:44:28 -04:00
Paul Licameli
e3a03ff07e Tick size on the time ruler will not jump when fisheye approaches ends 2015-07-19 11:44:26 -04:00
Paul Licameli
79e9f2b5dd Scrolling left of zero will work right with fisheye present. 2015-07-19 11:44:25 -04:00
Paul Licameli
a4482aa3af Stubs needed to eliminate remaining direct uses of ViewInfo::zoom ...
... and anticipate a problems fisheye will introduce with time ruler display
and horizontal scrolling past zero.

Will be used in waveform and spectrogram drawing, and in hit-test for sample
editing.  Those things will no longer make the assumption of uniform zoom
level across the width of the screen, though that does remain true without the
rest of the fisheye project.
2015-07-19 11:44:23 -04:00
Paul Licameli
c5754ee751 Remove Envelope::GetValueAtX 2015-07-19 11:44:19 -04:00
Paul Licameli
6b9e7506dd Ruler-drawing does not assume uniform zoom, ...
... and AdornedRulerPanel exposes an invalidation function for later use
2015-07-19 11:44:18 -04:00
Paul Licameli
8664c877ba WaveDisplay may or may not manage its own memory. 2015-07-19 11:44:16 -04:00
Paul Licameli
c14b326913 Publicize class SpecCache. TrackArtist will re-use it. 2015-07-19 11:44:15 -04:00
Paul Licameli
e0f4595485 TrackArtist, LabelTrack, TimeTrack, Envelope functions take ZoomInfo...
... and SelectedRegion, and not ViewInfo or zoom level as a double.

Also some leftOffset arguments.

Assumptions of uniform zoom level persist in TrackArtist::DrawClipSpectrum and
in TrackArtist::DrawClipWaveform but no longer in the rest.
2015-07-19 11:44:13 -04:00
Paul Licameli
5316032fee An overload of Envelope::GetValues for nonuniform time steps, taking ZoomInfo 2015-07-19 11:44:11 -04:00
Paul-Licameli
c4386f4dc8 Ruler event handler does not directly use zoom (pps) value 2015-07-19 11:44:10 -04:00
Paul-Licameli
bd08c7c778 Envelope event handlers do not directly use zoom (pps) values 2015-07-19 11:44:08 -04:00
Paul-Licameli
1f9113f5cc Label track event handler does not directly use zoom (pps) values 2015-07-19 11:44:07 -04:00
Paul-Licameli
fe36b636cb Rewrite SnapManager to avoid using ZoomInfo::zoom 2015-07-19 11:44:05 -04:00
Paul-Licameli
5418ce377b Move PositionToTime, TimeToPosition into class ZoomInfo ...
... and use them in many more places in TrackPanel.cpp, so there are fewer
direct uses of ZoomInfo::zoom.

Also use then in horizontal scrolling code
2015-07-19 11:44:04 -04:00
Paul-Licameli
5a6d5d1443 Add and use some ZoomInfo and ViewInfo member functions, so we can eliminate...
... miscellaneous direct uses of ZoomInfo::zoom to test and set zoom level.

This includes all the remaining assignments to it.

But moving TrackInfo::PositionToTime and TrackInfo::TimeToPosition into
ZoomInfo and using them is needed to eliminate many more uses.

Also #if'd out the unused AudacityProject::OnZoomToggle().
2015-07-19 11:44:02 -04:00
Paul-Licameli
8ba9ea5621 ViewInfo has a base class, ZoomInfo, containing only what TrackArtist needs besides the SelectedRegion 2015-07-19 11:44:00 -04:00
Paul-Licameli
ab21f75c77 ViewInfo is becoming a smart class, not a dumb struct
Now it has:
A constructor
XML attribute serializer functions (but no XML tag of its own)

Also removed unused lastZoom
2015-07-19 11:43:59 -04:00
Paul Licameli
35e0897bf7 Avoid needless mix/max/rms calculation when showing individual samples. 2015-07-19 11:43:55 -04:00
Paul Licameli
1b125f8fe3 more variable name changes 2015-07-19 11:43:53 -04:00
Paul Licameli
9a22b94d99 Change some argument names. I don't like one-letter variable names. 2015-07-19 11:43:52 -04:00
Paul Licameli
68174ad657 Envelope::GetValue works faster when called in a loop with increasing arugments 2015-07-19 11:43:50 -04:00
Paul Licameli
b759cc5483 collapse some repeated code into a loop 2015-07-19 11:43:49 -04:00
Paul Licameli
508abda309 Bugs 1043, 1044 -- Even better fix...
... With a careful sweep of uses of WaveTrack::GetDisplay() to remove
assumptions about the ordering of the values.

Using < and <= on enum values is mostly a bad idea.
2015-07-18 23:56:30 -04:00
Paul Licameli
b25994a82d Throw away EXPERIMENTAL_FFT_SKIP_POINTS...
... with James' consent.
2015-07-18 23:21:27 -04:00
Steve Daulton
78d0347be2 More complete fix for bug 1060 issues 2015-07-18 18:31:36 +01:00
James Crook
c43936f630 Bug1085 - Play-at-Speed key-binding broken
Caused by fix to Bug 844 not initialising mIsCapturing to false.  So play-at-apeed could mistakenly think recording was in progress, and so prevent play-at-speed.
2015-07-18 12:51:28 +01:00
James Crook
c929932f30 IsAlpha1 and now 2.1.2. 2015-07-16 17:17:50 +01:00
James Crook
510713b981 Merge remote-tracking branch 'leland/master' 2015-07-10 09:30:17 +01:00
James Crook
eaa1973051 Merge remote-tracking branch 'upstream/master' 2015-07-10 09:29:06 +01:00
James Crook
6423610f01 Bug 1061 - Chinese (Simplified) Missing
Previously we looked at wxLocale language names for matches to our names.  The change to use the language set in the installer reversed this.  However looking up zh (which is Chinese) in wxLocale yields  zh_TW.   So instead we now look up zh_CN.
2015-07-10 09:28:24 +01:00
Steve Daulton
ce9626d31c Minimal fix for bug 1060
Minimal fix for bug 1060 made with agreement of RM.
No documentation changes required.
Further fix/enhancements will wait until after 2.1.1 is released.
2015-07-08 18:47:33 +01:00
Leland Lucius
f434789f34 Fix crash in new binary AutoSave
Would happen when writing tags with a value whose length was greater
than 65535 due to the use of shorts.  Now uses int instead.
2015-07-08 10:13:34 -05:00
Leland Lucius
22c8f7fb76 Pretty sure this is the fix for the crashing VSTs 2015-07-05 13:48:59 -05:00