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

6829 Commits

Author SHA1 Message Date
Paul Licameli
181c137129 More envelope fixes, avoiding some unnecessary insertions of points 2017-05-25 08:38:02 -04:00
Paul Licameli
bcc0bed29a Envelope::SetTrackLen adds a point only when none was present...
... And if points were present, keeps only the leftmost.
2017-05-25 08:15:45 -04:00
Paul Licameli
6c2c2733f9 More Envelope::GetValueRelative; add point for join only as needed 2017-05-25 08:15:45 -04:00
Paul Licameli
250a2ea12a Merge branch 'master' into HEAD 2017-05-25 08:15:20 -04:00
Paul Licameli
a8ac80eda9 Bug1651: NoteTrack sync-lock and crash fixes...
Simplify the logic of duplication of NoteTrack.  Duplicates are always in
serialized state.  Un-serialization can happen on demand in any of the
NoteTrack operations that require a defined sequence.

Changing the duration of the sequence after paste is needed,
as it was also needed, when I fixed Stretch at commit
90eb4ec142f7d575d0870dd9c755589bff520cbe.  I don't know if this should be
considered a bug in Allegro that we are compensating.
2017-05-25 08:08:31 -04:00
James Crook
b3a70b5993 Add hyphen between fields and tooltips.
Tooltips tell users what the abbreviated names in the radio button group mean.  The hyphen helps a little in relating the title , which has a hyphen in it, to the two fields.
2017-05-25 11:39:30 +01:00
James Crook
8afeed5f78 Faster opening of preferences.
The slow opening was caused by sorting lists of commands.  The comparison function was slow because it created new strings, entailing malloc/free and used translation in the function.  Comparison function was being called about 4,000 times.
2017-05-24 22:08:43 +01:00
James Crook
01356f9e3e Add i18n hints for selection toolbar 2017-05-24 19:37:29 +01:00
James Crook
59a9539ba0 Fix Radio Buttons on SelectionToolbar for Dark Theme
The workaround for Dark Theme can require static text boxes for the radio labels to be able to colour the text.  These have been added back.
2017-05-24 19:26:59 +01:00
James Crook
3761ae3fe5 Replace dummy checkbox by vertical line.
Fortunately a vertical line works just as well as a checkbox in working around the bug where radio buttons change to the first field.  It is better for screen readers too as it is not included in the tab order.
2017-05-24 18:55:20 +01:00
James Crook
552a69df72 Add radio buttons for Start-End, Start-Length e.t.c.
The checkbox on the selection toolbar is a temporary work around for a bug in windows with tabbing.  Tabbing into a radio button will set the first item of the radio button group without it.  Still looking for a better workaround.
2017-05-24 16:56:49 +01:00
Paul Licameli
d210b18aad Limit consolidation of undo items by other means 2017-05-24 00:23:25 -04:00
Steve Daulton
0303d281cc Fix for bug 1650
Don't attempt to read plug-in file when spawned from Nyquist Prompt
because there isn't one.
2017-05-23 23:38:55 +01:00
Paul Licameli
4b2b0d9b91 Fix Windows warning: inconsistent DLL linkage between base & derived 2017-05-23 13:06:50 -04:00
Steve Daulton
f0040b09f1 Bug 1210, alternative fix for unfriendly message 2017-05-23 15:43:53 +01:00
David Bailes
cd6c9834f6 Clip move commands - minor fix.
Forgot that the name of data members should begin with the letter m. Fixed this.
2017-05-23 12:56:11 +01:00
David Bailes
f46ac268f4 Update commands for moving clips using the keyboard
Second attempt at getting the commands to update history, so that they can be undone (previous attempt at b911607, which didn't call the undo manager for each keydown).

Both a single keypress (keydown, then keyup), and holding down a key (multiple keydowns followed by a keyup) result in a single entry in Audacity's history dialog. Note that this code relies on a change to the undo mananger in commit 63ae687.
2017-05-23 10:29:49 +01:00
Paul Licameli
646c285913 Bug1646: Fix many defects in the Note Track stretching tool 2017-05-22 23:25:57 -04:00
Paul Licameli
646c66f78f Sync lock adjustment for NoteTrack stretch...
... It applies only at button-up, not in a previewing fashion during the drag.

Realizing that preview is more work than I want to do right now.
2017-05-22 23:25:39 -04:00
Paul Licameli
54636c65fa Allow NoteTrack to stretch left of zero 2017-05-22 23:16:44 -04:00
Paul Licameli
82ce041c75 Preview cursor for Stretch can take left, right, or center form 2017-05-22 23:16:42 -04:00
Paul Licameli
90eb4ec142 Make MIDI track stretch path-independent 2017-05-22 23:15:26 -04:00
Paul Licameli
9fb7185ea4 Rewrite undo handling for Stretch to be more like other drags...
... that is, push a state only at button-up.

The undo during each drag increment didn't actually happen, because of a check
in OnUndo whether there is a drag in progress!

But this is not necessary to fix the excessive number of undo items, because
commit 63ae687bafd1123bf4bf7d00070e1dd9f38dc8a2 already did that by other means.

It only removes an unusual usage.
2017-05-22 23:12:36 -04:00
Paul Licameli
2eb6285ddc Group some TrackPanel fields into a structure 2017-05-22 23:12:35 -04:00
James Crook
655fc9d9dc Smarter VoiceOver text for Selection controls. 2017-05-22 23:01:32 +01:00
James Crook
7a6dda19e4 Add title-clicking to SelectionToolbar
This is a convenience for sighted users.  If they are showing start, center, length, end, they can click on the title 'Center' to preserve it, and then modify length.  Similarly for the other controls.  This makes working with more than two controls much more intuitive.
2017-05-22 16:01:49 +01:00
Steve Daulton
2fcf715972 Update Help link for Spectrogram Settings 2017-05-22 15:11:39 +01:00
James Crook
6a9e0ffe28 Fix Travis Build
Missing wx includes.
2017-05-22 14:10:56 +01:00
James Crook
7d31691fd3 Allow selected controls on SelectionToolbar
The toolbar can now show subsets of the start, center, length and end numeric controls.  The choice is made using a button with a pop-up menu.  The two most recently modified controls 'drive' the other two, whether they are visible or not.  If shown, the driven controls are indicated in the name above (also for screen readers).

Most users will opt to just show two of the controls, e.g. start and end.

The menu button (Classic theme) has three dots on it.  Other themes don't yet have the icon and will show as black.
2017-05-22 13:46:06 +01:00
James Crook
62f75eb159 (Hi-DPI) No longer upscale ImageCache
I found a couple of problems working with upscaled image caches.

Firstly in GIMP a 'size 4 square pencil' is not 4x4, which makes editing an upscaled image very fiddly.
Secondly the wxIMAGE_QUALITY_NEAREST algorithm is not as dumb as I need it to be, and it is doing some blending when rescaling.  This leads to loss of image quality in some cases.

So when we do switch to Hi-DPI support, we need to be 'all in' and only be downscaling in Audacity, not upscaling too.
2017-05-22 13:46:05 +01:00
Steve Daulton
5a26afd7fd Update Help links: SilenceMarker.ny SoundFinder.ny 2017-05-22 13:03:40 +01:00
Steve Daulton
9c6bfd73ac Disable Debug button for some Nyquist effects
Plug-ins changed: adjustable-fade.ny crossfadetracks.ny highpass.ny limiter.ny
lowpass.ny notch.ny tremolo.ny
2017-05-22 12:59:39 +01:00
Steve Daulton
04ba10a1c3 Add help button support for other Nyquist effects 2017-05-21 23:11:21 +01:00
Steve Daulton
99e5516ee2 Save built-in browser size 2017-05-21 16:55:31 +01:00
Steve Daulton
e99b54e525 Add help button for Classic Filter 2017-05-21 12:04:15 +01:00
James Crook
4a08ea62c0 Make HTML dialog resizable (on windows). 2017-05-20 21:56:17 +01:00
James Crook
d549dccefd Bug 1649 - Freeze with Truncate Silence 2017-05-20 18:32:06 +01:00
Steve Daulton
b96f169e1f Fix link to Spectrogram Settings Help 2017-05-20 18:21:32 +01:00
Steve Daulton
d6a9011960 "Error opening sound device" as Error dialog
ShowErrorDialog could do with some polish, but it supports linking
a help button to the manual.
2017-05-20 17:11:02 +01:00
Steve Daulton
bba5a8fef1 Add help button for Nyquist Prompt 2017-05-20 14:49:07 +01:00
Steve Daulton
e7a9c37745 Add help buttons for normal built-in effects 2017-05-20 14:49:07 +01:00
Steve Daulton
fd3d41e82f Add help pages for shipped Nyquist effects 2017-05-20 14:49:07 +01:00
Steve Daulton
1dd6b848c2 Enable Help button for Nyquist effects 2017-05-20 14:49:07 +01:00
Steve Daulton
469120cebd Enable help button for effects 2017-05-20 14:49:07 +01:00
James Crook
429fad6f88 Send Spectrum Settings help to its own page in the manual
This commit provides a different help landing page (Settings) for preferences that are used outside the normal Ctrl+P preferences dialog - for example, 'spectrum settings' accessed from the track menu.   This should work for any settings that are used on their own in that way, though spectrum settings is currently the only example.
2017-05-20 13:57:16 +01:00
James Crook
c0b30e897d Update HiContrast Theme
The wave is now green, to match the known-good black/green contrast for this theme.  Corresponding changes were made to the buttons, slider pips, label shading and draggers.  Time before zero is now also a lighter blue which shows up better against black than the dark blue did.  Sliders are now (almost) white rather than grey.  Selection in label tracks now matches selection in wave tracks.  Envelopes are now (almost) white.
2017-05-20 13:02:33 +01:00
David Bailes
f9827a57a7 Minor fix for commands for shifting clips using the keyboard.
Fix for minor bug introduced in commit 9da999d. The selection wasn't being updated by the actual slide amount.
2017-05-20 11:26:59 +01:00
James Crook
4e187d0ce0 Bug 1648 - Crash clicking Help icon in Spectrograms Settings 2017-05-20 09:25:18 +01:00
Paul Licameli
01f853f174 Fix Windows build 2017-05-18 19:01:46 -04:00
James Crook
a6310d770d Fix Travis build
Add return 0.0
This does not fix the windows build, which is complaining about deleted functions.
2017-05-18 21:34:46 +01:00