Paul Licameli
adb4a534e8
Pitch is no longer a special view type... && bug fixes 1040, 1041
...
... It is a choice of algorithm in spectrogram settings, and any frequency
scale may be chosen with it. Spectral selection works in it.
2015-07-27 23:01:20 -04:00
Paul Licameli
66e939275f
Vertical ruler zooming uses NumberScale in a generalized way
2015-07-27 23:01:13 -04:00
Paul Licameli
43b7df701b
Use class NumberScale in TrackArtist and spectral selection, abstracting...
...
... the details of mapping to and from pixel height
2015-07-27 23:01:11 -04:00
Paul Licameli
7d379cde13
Conditional compilation (disabled) to make Spectral selection choice global...
...
... not per track,
and the preferences or View Settings page has a separate static box for
global settings as opposed to track settings. This is the only global setting
for now.
2015-07-27 23:01:06 -04:00
Paul Licameli
f74713f020
WaveTrack::WaveTrackDisplay does not encode scale or spectral selection...
...
... SpectrogramSettings does that instead, and Preferences or View Settings
are the user interface for changing it.
Handle invalidation of spectrogram pixel cache for scale type changes,
just as for other changes of settings. No more
TrackArtist::InvalidateSpectrumCache().
View type of track now switches to Spectrum when applying or OKing the
View Settings... dialog and the Spectrogram page is open (and for now
it is still the only page)
2015-07-27 23:01:04 -04:00
Paul Licameli
714f4ce0f1
Put track name in the title of the View Settings dialog, as Gale suggested
2015-07-27 07:19:48 -04:00
Paul Licameli
1f6f43bba7
Track control "View Settings..." makes alternative SpectrumPrefs accessible
2015-07-26 21:33:14 -04:00
Paul Licameli
1dffeace93
Access SpectrogramSettings via WaveTrack, which may be nondefault (no UI yet)...
...
... and add accessors to SpectrogramSettings, and remove TrackArtist functions
for getting and setting the globals.
2015-07-26 21:10:16 -04:00
Paul Licameli
786c1da645
Move class SpectrogramSettings to its own file
2015-07-26 21:10:13 -04:00
Paul Licameli
d3c9a9fd80
Bug1093: Now selection in Waveform view will not delete frequency selection
2015-07-25 13:53:39 -04:00
Steve Daulton
df8ddde874
Added dB - linear amplitude conversion macros.
2015-07-24 21:59:34 +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
Paul Licameli
e70f91c64e
Removed ShuttleGui.h from other headers
2015-07-19 12:31:03 -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
c5754ee751
Remove Envelope::GetValueAtX
2015-07-19 11:44:19 -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
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
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
Paul Licameli
9c957d43b1
Bug1013: normalize keystroke named in status bar, for Mac
2015-06-24 13:34:02 -04:00
Paul Licameli
ccebaf9d95
Bugs 1043, 1044 -- Be careful with new display modes in preferences
...
Write a new key so version 2.1.0 isn't confused by the reordered values
Add some future proofing against similar to 2.1.1 code
2015-06-23 13:12:07 -04:00
Paul Licameli
60956bad79
Merge: Fix hit test for samples in multi tool in Waveform dB view
2015-06-12 12:25:28 -04:00
Paul Licameli
a585b3bbac
Fix hit test for samples in multi tool in Waveform dB view
2015-06-12 12:22:51 -04:00
Paul Licameli
0bed89419f
More for bug 1014: stop scrubbing when switching out of select tool...
...
... Verified that this works for presses on tool buttons, and keys A, D, F1,
..., F6.
Also fix conditional compilation with EXPERIMENTAL_SCRUBBING_BASIC not defined.
2015-06-08 09:56:17 -04:00
Paul Licameli
e943382953
Bug1014: Do not change the cursor for selection adjustment while scrubbing.
...
(Cursor may still change to the "forbidden" symbol at a boundary between clips.)
2015-06-07 17:11:50 -04:00
Paul Licameli
952a22c8b1
Created a global structure to hold spectrogram preferences...
...
Don't read "/Spectrum/" preferences anywhere but in SpectrumPrefs.cpp.
Don't store global values in TrackArtist.
Possibly some day, there will be other instances of SpectrogramSettings so we
can have independent per-track settings.
2015-06-04 11:29:17 -04:00
Paul Licameli
1b57335dca
Enable draw tool in Waveform dB view
2015-06-03 02:38:17 -04:00
Paul Licameli
00ab193246
Bug1005: draw tool performance
2015-06-03 02:38:13 -04:00
Paul Licameli
6faf4c98c1
Bug1003: Use correct envelope value in pencil tool drag
2015-06-03 02:38:12 -04:00
Paul Licameli
7c48a76d18
Bug1002: Alt-click in pencil tool never starts a drag
2015-06-03 02:38:11 -04:00
Paul Licameli
a2bceee698
Bug1004: undo history message
2015-06-03 02:38:02 -04:00
Paul Licameli
f332df1f36
Pulled repeated code into a function; share some calcs with Envelope editor
2015-06-03 02:37:42 -04:00
Paul Licameli
85a533be79
Remove unused variables; fewer casts
2015-06-03 02:37:41 -04:00
James Crook
bca81066bb
Bug 855 - Data loss undoing sample edit while mouse is down
...
Chose the simple fix. Escape does not interrupt sample dragging now.
2015-06-01 22:09:57 +01:00
Paul Licameli
6a1227f039
zero-padding factor for spectrograms, internals
2015-05-31 16:43:09 -04:00
Paul Licameli
4f5483b4af
Scroll-seek improvements
2015-05-30 14:28:33 -04:00
Steve Daulton
2593331399
Update TrackPanel.cpp
...
Update access keys for Spectral Selection
2015-05-30 16:51:10 +01:00
James Crook
88a9e434f5
Select Spectral Edit from Track DropDown
2015-05-30 11:04:45 +01:00
Paul Licameli
bf931fcb0b
Do not show scrub speed during scroll scrub when left button is held
2015-05-30 00:11:20 -04:00
Paul Licameli
6ae8a656ab
Rewrote escape key handling, more like other Track Panel key handlers
...
... and removed some abandoned spectral editing code
2015-05-29 21:13:59 -04:00
Leland Lucius
0ef7ccb1d1
Fix permissions...not sure why this was happening though
2015-05-29 19:49:28 -05:00
Paul Licameli
8d2a29d376
Bug989, and scrub UI uses left button to seek, not Shift key
...
Updated mouse preferences and status bar message accordingly
Also, use the term "Scroll-scrub" in status bar and mouse preferences
2015-05-29 20:29:44 -04:00
Paul Licameli
9f2dfbc70b
Revert "Bug990 (seek key reponsiveness), and, change Scrub UI again, so Ctrl key seeks."
...
This reverts commit 841bca36ea321e6ea92578dd6668bc4011f1d30b.
2015-05-29 19:45:43 -04:00
Paul Licameli
841bca36ea
Bug990 (seek key reponsiveness), and, change Scrub UI again, so Ctrl key seeks.
...
Includes changes to Mouse Preferences and status bar messages.
2015-05-29 17:30:19 -04:00
Paul Licameli
6810095509
Removed some functions never called, code never reached, fields never used
2015-05-29 00:13:50 -04:00