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

6706 Commits

Author SHA1 Message Date
James Crook
b196c7de8d Bug 1541 - Skip to Start/End buttons don't show that they respect SHIFT usage 2017-05-14 18:44:53 +01:00
James Crook
a9c417854c Bug 509 - Soloing/unsoloing in Mixer Board does not repaint waveform colour until window or Track Panel refresh 2017-05-14 18:14:39 +01:00
James Crook
18cec363c3 Bug 1607 - 2nd Screen issue with MixerBoard and Karaoke Window
Also Screenshot tools.  No joy for log-window, as that is created before Audacity starts up and recognises it is on the second screen.
2017-05-14 17:59:45 +01:00
James Crook
c8b2cc9d31 Bug 641 - ASSERT when adding recording not at start of track.
Cause by testing the track length before setting the track length.
2017-05-14 17:26:33 +01:00
James Crook
2f10c1ce25 Bug 1532 - Toolbars fail to arrange correctly when maximizing or restoring main window size 2017-05-14 16:08:02 +01:00
James Crook
6478895a39 Bug 1565 - Windows: Toolbars don't show tooltips when button is disabled 2017-05-14 14:58:50 +01:00
James Crook
cc38ba34a4 Bug 1607 - Some dialogs appear on primary monitor when Audacity is running on secondary monitor 2017-05-14 14:25:40 +01:00
Richard Bunel
4c3455c2c7 Bug 1523 - OK in Preferences changes language from "System" to the specific system locale 2017-05-14 10:52:30 +01:00
James Crook
07ce60218c Reinstate 48x48 Logo (for Linux/Mac use) 2017-05-13 19:50:37 +01:00
James Crook
978f09ba13 Lose unused images from theme. 2017-05-13 18:38:16 +01:00
James Crook
0ac2d90d8a SelectAllIfNone now selects all time if none, and all tracks if none.
This means you can now select just a time, and get all tracks selected, or some tracks, and get all time selected.
One side effect of this is that if you select a label (only) and apply 'cut' you now just cut the label, rather than cutting all tracks.  If you select a label and apply echo, you now get an error message, rather than applying echo to all tracks.
2017-05-13 10:06:52 +01:00
James Crook
c42a111a42 Add accelerator keys for Ext-&Bar and Ext-Co&mmand 2017-05-12 22:40:14 +01:00
Paul Licameli
e66028de0a Eliminate "Average RMS" redundancy in messages from Contrast...
... also gathered various formatting into some routines.  Should we regularize
the messages further?  That is, consistently put "dB" before or after "RMS"

Also added more i18n-hint comments
2017-05-12 16:06:18 -04:00
James Crook
35fe313f30 Smarter SelectAllIfNone
Now if there is a time selection and no tracks selected, then just select all the tracks, preserving the time selection.
This helps in the case a user has made a time selection, e.g. with selection toolbar, and then clicked on track panel, losing the selection of tracks but preserving the time selection.

I also shortened some repeated cut-and-pasted code.
2017-05-11 22:36:55 +01:00
David Bailes
ddb8db8dd7 Modify the screen reader messages of some of the keyboard clip commands
As suggested by Robert, add the word clip/clips to make the messages less confusing and noticeably different from the next/prev label messages.
2017-05-11 13:01:42 +01:00
David Bailes
495755b074 Fix for keyboard clip commands
Fix bug in AudacityProject::AdjustForFindingStartTimes.
Bug: When there is 0 or 1 clips, q - 2 is before the begin() of the vector, and caused crash.

Fix: split the test into two tests.
2017-05-11 11:42:56 +01:00
David Bailes
6c0e8c7d86 Change default setting of "move selection with tracks" to be "off" 2017-05-10 13:36:42 +01:00
David Bailes
b2d8f36969 Fix for bugs in keyboard clip commands due to rounding errors
When When two clips are immediately next to each other, the GetEndTime() of the first clip and the GetStartTime() of the second clip may not be exactly equal due to rounding errors. The existing code assumed they were equal, and this lead to the wrong clip boundaries or clips being found.

There are a number of ways of fixing this which could be explored. The current solution involves changing only the code for the keyboard interaction with clips.

The fix:
1. The test used for two clips being immediately next to each other is that GetEndSample() on the first clip is equal to to GetStartSample() on the second clip.
2. When searching for the start/end times of clips, the cases where GetEndTime() and GetStartTime() are not equal are taken into account. This is done in the two functions AudacityProject::AdjustForFindingStartTimes and AudacityProject::AdjustForFindingEndTimes.
2017-05-10 09:24:25 +01:00
Paul Licameli
85e984de63 More envelope fixes, including some for 1643, 1644 2017-05-09 09:23:45 -04:00
Paul Licameli
327e5d8557 Correct envelope update for Join that includes a gap between clips 2017-05-09 09:22:07 -04:00
Paul Licameli
a9160cf803 Envelope::InsertSpace preserves limiting values of the split point 2017-05-09 09:22:06 -04:00
Paul Licameli
8c4dc38047 WaveTrack::SplitAt no longer needs to insert envelope points...
... because partial-copy construction of the new WaveClip, and CollapseRegion
within WaveClip::Clear, handle it.
2017-05-09 09:22:06 -04:00
Paul Licameli
aba52bc79e Update envelope properly for TimeTrack and WaveTrack editing...
... Formerly this was done correctly only for cut and delete from WaveTrack,
paste into WaveTrack, and sync-lock adjustment of WaveTrack (either lengthening
or shortening).

Now also properly done for TimeTrack cut and paste, and also for:

Split cut
Split delete
Trim
2017-05-09 09:22:06 -04:00
Paul Licameli
2d84c65c94 When Envelope domain is shortened, evaluation inside won't change...
... It doesn't happen in practice yet, all present calls to SetTrackLen
make the track the same length or longer.  But this is for completeness.
2017-05-09 09:20:31 -04:00
Paul Licameli
945e411e2c Partial range copy of Envelope will not leave coincident points 2017-05-09 09:20:31 -04:00
Paul Licameli
f5a7e4ce7c Define private Envelope evaluator functions taking relative time...
... To be very sure we can avoid roundoff errors from adding mOffset and
subtracting it again; so that evaluation exactly at a control point time gives
the exact value of that point.
2017-05-09 09:20:31 -04:00
Paul Licameli
01b99f2849 Remove pointer back to Envelope from EnvPoint 2017-05-09 09:20:31 -04:00
Paul Licameli
2e7f806e90 Fix EqualRange for case of zero tolerance 2017-05-09 09:20:31 -04:00
Paul Licameli
a26b79d9fb Merge branch 'master' into HEAD 2017-05-09 09:19:55 -04:00
Paul Licameli
ebd1de4ffc Interim fixes for envelopes 2017-05-09 09:19:01 -04:00
James Crook
f859bf62c7 Remember Start/Center setting on SelectionToolbar
I mistakenly had it always set to ShowStart = true
Also tidied up a hastily written comment.
2017-05-09 13:29:15 +01:00
James Crook
52509d4bbd Add option of Start/Center to SelectionBar
We now have Start/Center and End/Length, per Robert and Martyn's suggestion
I've also tidied up the code here that was repetitive/messy.
2017-05-09 12:37:55 +01:00
James Crook
94c43773fc Bug 1641 - Don't use the 'space trick' on Linux/Mac menus.
The 'added space trick' to disable menu accelerators and still show them hides the accelerators completely on Linux/Mac.  Linux/Mac rejects the invalid accelerators.  Fortunately we don't need to disable the menu accelerators on Linux/Mac.  These menu accelerators causing a problem (in bug 1637) only happens on Windows.  So the 'space trick' is now used only on Windows.
2017-05-09 08:44:39 +01:00
windinthew
5b36f5d6a9 Fix missing access keys 2017-05-08 20:20:05 +01:00
Paul Licameli
5dfb47132e Interim fixes for Envelopes 2017-05-08 13:19:39 -04:00
James Crook
09607c278d Fix position of wxASSERTs
Moved one ASSERT that was in the wrong place and added a new one.  This might give a little more information in mac debug builds about Bug 1636 - (Mac) Equalization: Crash selecting the "RIAA" or "Telephone" curves.  This is NOT a fix.
2017-05-07 19:22:44 +01:00
James Crook
927c500acd Bug 1626 - Preview of non-RTP effects fails if all the track is selected
A length of zero for silence to insert is allowed.  It means 'do nothing'.
2017-05-07 19:09:37 +01:00
Paul Licameli
b6d43e4954 Various fixes involving Envelope. More to come later. 2017-05-07 11:16:50 -04:00
Paul Licameli
d2acf1f3e5 Bug842: rescale clip offsets, envelope times when setting track rate 2017-05-07 11:12:24 -04:00
Paul Licameli
e36070e671 Small fix to envelope operations in Equalization user interface 2017-05-07 11:12:07 -04:00
Paul Licameli
7ad910c0a6 Simplify envelope binary search and uses of it 2017-05-07 11:00:55 -04:00
Paul Licameli
30e67bcb8e some reindentation 2017-05-07 11:00:55 -04:00
Paul Licameli
26c4d65bd4 Public Envelope methods all take & return ABSOLUTE time values...
... rather than some of them being relative to the Envelope's offset.

In case of the envelopes used in TimeTrack or Equalization, offset was
always zero, so this doesn't matter, except to make the contract of the
Envelope class more explicit and sensible in isolation.

In case of InsertSpace at least, this does fix an obscure bug, which could
only happen when you have a clip, with an envelope, that starts before zero,
and you select a region overlapping that clip and some other clip, with a void
between, and you use the Join command.

Aren't you relieved that's fixed now?
2017-05-07 11:00:55 -04:00
Paul Licameli
9c683a4f19 Rename some member functions of Envelope 2017-05-07 11:00:55 -04:00
Paul Licameli
4be19128c0 Better constructors for Envelope 2017-05-07 11:00:55 -04:00
Paul Licameli
3ba1ebc5c0 Remove unused members of Envelope 2017-05-07 11:00:54 -04:00
James Crook
f0bdfc10b5 Move record-new-track option
It's now in recording-prefs rather than track-behavior-prefs, and to make room latency options (which are related to device) ar enow in device-prefs.  Naming of new tracks has also been made slightly more compact.
2017-05-07 13:22:04 +01:00
James Crook
6a33e8303a Bug 1641 - Follow up. NUMPAD_ENTER, Backspace, Delete
3 Keys that were already illegal now added back with a space before them.
This should fix these keys in 1641 too.
2017-05-07 11:17:18 +01:00
James Crook
6e65596b47 Bug 1641 - Panel navigation accelerators don't appear in the menus
This attempted fix applies the 'space' trick to make accelerators invalid, so "Left" is added as " Left" into the menus, and appears normal but does not act as an accelerator.  This is now only done for the problematic accelerators rather than for all accelerators.  It's believed that doing it for all accelerators caused the problem.

In debug builds users will see messages like the one below in the console:

"Unrecognized accel key ' right', accel string ignored."

This fix additionally adds 0..9 to the specially handled accelerators.  This should address:
Bug 1260 - Cant type "1" in the Project Rate text box

The fix has been developed and tested on Window only.  Theoretically the space might cause problems on Mac and if it does the 'space' trick could be applied just on Windows and Linux, since Mac did not seem to have the problem reported in 1260.
2017-05-07 10:59:50 +01:00
James Crook
6491aed13c Fix build failure from absent gettext 2017-05-04 22:18:51 +01:00