1
0
mirror of https://github.com/cookiengineer/audacity synced 2025-05-01 16:19:43 +02:00

3946 Commits

Author SHA1 Message Date
Steve Daulton
0792eb0cb3 Fix for bug 958
Bug 958 is due to rounding that is not visible to the user.
By providing one extra decimal place to the New Peak Amplitude (dB)
the user can see if they have exceeded 0 dB by a small amount.
2015-07-28 09:01:03 +01:00
Leland Lucius
94550bc0be Added src/NumberScale.h to Mac project 2015-07-28 02:29:48 -05:00
Paul Licameli
7bf2d9b92c travis 2015-07-27 23:11:43 -04:00
Paul Licameli
27a104b552 View types reduced to 3; more spectrogram scales; improved Pitch view...
... spectral selection enabling is a checkbox
... fix bugs 1038, 1039, 1040, 1041
2015-07-27 23:02:04 -04:00
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
981acf0bd2 Other spectrogram scales, easily defined!! -- and include bug fixes 1038, 1039 2015-07-27 23:01:18 -04:00
Paul Licameli
846c5d454e Other spectrogram scales, easily defined!! -- and include bug fixes 1038, 1039 2015-07-27 23:01:16 -04:00
Paul Licameli
9b9ceab6ab Ruler uses generalized number scale when plotting "log" 2015-07-27 23:01:14 -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
045828d744 Define class NumberScale and enum NumberScaleType 2015-07-27 23:01:10 -04:00
Paul Licameli
6b9cbbe50a Just one view type for Spectrum...
... Instead preferences or View Settings controls scale type and spectral
selection enablement
2015-07-27 23:01:08 -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
5928ac88b9 Merge branch 'master' 2015-07-27 23:00:14 -04:00
Leland Lucius
df4879b234 Fix build on OSX 2015-07-27 20:48:32 -05:00
Paul Licameli
1970d435a9 Put track name in the title of the View Settings dialog, as Gale suggested 2015-07-27 07:21:14 -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
504d4b5331 Add "View Settings..." to track drop-down and Apply button to Spectrogram prefs 2015-07-26 21:38:14 -04:00
Paul Licameli
5e1ac0a06d Add "View Settings..." to track drop-down and Apply button to Spectrogram prefs
Track control "View Settings..." makes alternative SpectrumPrefs accessible
  Apply button for Spectrograms Preferences and View Settings
  Checkbox for defaulting track spectrogram settings (not seen in Preferences)
  Static boxes distinguish the panel in Preferences from that in View Settings
  SpectrumPrefs takes SpectrogramSettings object as parameter, and...
2015-07-26 21:36:19 -04:00
Paul Licameli
1f6f43bba7 Track control "View Settings..." makes alternative SpectrumPrefs accessible 2015-07-26 21:33:14 -04:00
Paul Licameli
e6be4f5777 Apply button for Spectrograms Preferences and View Settings 2015-07-26 21:33:11 -04:00
Paul Licameli
e8e3b8bec5 Checkbox for defaulting track spectrogram settings (not seen in Preferences) 2015-07-26 21:33:08 -04:00
Paul Licameli
298bc981bf Future static text box distinguishing track settings from globals? ...
... Leave this idea just commented out for now.
2015-07-26 21:33:06 -04:00
Paul Licameli
113edcc70a SpectrumPrefs takes SpectrogramSettings object as parameter, and...
... writes global preferences explicitly, and only when it is the default
settings object.

Also impose validation of settings when constructing from preferences.
2015-07-26 21:33:03 -04:00
Paul Licameli
ca767c0f7a Some preliminary changes to SpectrogramSettings, for View Settings project 2015-07-26 21:12:04 -04:00
Paul Licameli
fa18e76e9b Preliminary changes to SpectrogramSettings for View Settings project 2015-07-26 21:11:09 -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
a1621f7d1b Define and use SpectrogramSettings::GetFFTLength() 2015-07-26 21:10:15 -04:00
Paul Licameli
778e7726df Safe copy constructor and assignment for SpectrogramSettings 2015-07-26 21:10:14 -04:00
Paul Licameli
786c1da645 Move class SpectrogramSettings to its own file 2015-07-26 21:10:13 -04:00
Paul Licameli
d71c7ae0a9 Some preliminary changes to PrefsDialog, for View Settings project 2015-07-26 19:56:53 -04:00
Paul Licameli
da90e1b7c1 Preference dialog code preliminaries for View Settings project
Fix crash initializing GlobalPrefsDialog for special case of undefined temp...
  Future subclasses of PrefsDialog may choose the preferred page by other means.
  PrefsDialog can vary the title prefix string
  Allow tree structuring of the Prefs dialog pages
  Table-driven construction of Prefs dialog.  A factory for each kind of panel...
2015-07-26 19:53:19 -04:00
Paul Licameli
b924c8ad62 Fix crash initializing GlobalPrefsDialog for special case of undefined temp...
... directory at startup time.
2015-07-26 19:53:17 -04:00
Paul Licameli
7b01339e51 Future subclasses of PrefsDialog may choose the preferred page by other means. 2015-07-26 19:53:15 -04:00
Paul Licameli
2361758316 PrefsDialog can vary the title prefix string 2015-07-26 19:53:13 -04:00
Paul Licameli
8399effc45 Table-driven construction of Prefs dialog. A factory for each kind of panel...
... and maybe a future plug-in protocol to break compilation dependency on
all of the PrefsPanel subclasses.
2015-07-26 19:41:20 -04:00
Paul Licameli
3e5d2af7cb Fix travis errors by other means 2015-07-26 19:36:00 -04:00
Paul Licameli
f37c37e67c Fix travis errors by other means 2015-07-26 19:23:55 -04:00
Paul Licameli
06d01ee424 Revert "More deconsting to satisfy Travis"
This reverts commit 90d03f835179c407d32d046c060ec96606abdab1.
2015-07-26 19:08:55 -04:00
Paul Licameli
ca30328e8f Revert "Fix Travis Build (const in structure)"
This reverts commit 13c17d3d5da5fdaf5d0f0ea99886b06194f4fc41.
2015-07-26 19:08:33 -04:00
Steve Daulton
5f164649c3 Fix build error on Linux.
Header file <limits> required for std::numeric_limits
2015-07-26 17:24:31 +01:00
Paul Licameli
cdc268f681 Bug 1097: Fix unsafe macro definitions which caused display bugs 2015-07-26 00:05:27 -04:00
Paul Licameli
7b4cc4f12a Merge Bugs 1090, 1095 2015-07-25 22:04:34 -04:00
Paul Licameli
a548303fdc Bug1090: Draw sync-lock tiles only when we should 2015-07-25 22:03:26 -04:00
Paul Licameli
dc9549df53 Bug1095 -- quantize times when drawing selection backgroun in wave track 2015-07-25 20:54:55 -04:00
Paul Licameli
fa115c4977 Merge Bug1096: Fix crash changing view types 2015-07-25 19:59:15 -04:00
Paul Licameli
03984c48a5 Bug1096: Fix crash changing view types 2015-07-25 19:58:24 -04:00
Paul Licameli
9df30a63e9 Merge branch 'master' into temp3 2015-07-25 19:57:07 -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