Paul Licameli
6f63226291
More const qualifiers and mutable members for drawing of tracks
2016-02-27 13:04:34 -05:00
Paul Licameli
70c1d57591
More const qualifications, and mutables, for functions that draw tracks...
...
... The display related members that had to become mutable are probably
ones that don't belong in the track classes, ultimately.
2016-02-27 12:35:17 -05:00
Paul Licameli
05f5375e4a
Use std::vector for wave track locations
2016-02-27 12:08:03 -05:00
Paul Licameli
3cc4754ac7
Fix warnings for nonexhaustive switches on enumerations
2016-02-26 14:56:31 -05:00
Paul Licameli
60bcd7aea2
Fix warnings for unused variables and functions
2016-02-26 14:56:26 -05:00
Paul Licameli
dbaa811577
Stack-allocate where possible! ...
...
... Removed many unnecessary naked news and deletes.
2016-02-17 18:15:57 -05:00
Paul Licameli
7c4c45a0d5
"new"->"NEW" in comments, easier to find remaining naked operator new
2016-02-14 18:52:41 -05:00
James Crook
53b8fd534e
Residuals from Bug 1296
...
Added forcing time64 to be positive. Fixes problem where large negative value overflows into int.
More careful computation of TimeToPosition() so floor is only called with in range values.
Re-instated 'true' flags for hiddenMid calls, which I'd mistakenly dropped, so that (later) FishEye can distinguish.
2016-01-08 22:05:48 +00:00
James Crook
104e8b50ba
Bug 1296 - Zooming to maximum in longer multi-clip tracks crashes in all clips except the last
...
Caused by a premature conversion of a wxInt64 to (int) so that a large positive number became negative.
We now do the conversion after minning it against an integer width.
2016-01-08 18:45:01 +00:00
Leland Lucius
9dd79c9f80
Remove flushing of preferences in ShuttlePrefs and only
...
flush when all settings have been written.
2015-12-21 20:07:24 -06:00
Paul Licameli
b84c1b322e
Bug1169: end the separate treatment of lin vs. log display bounds for spectrum...
...
... also make WaveTrack responsible for storing and validating the bounds
... also let the bounds vary per-track even though other settings are default
... also change some code names to mention "period" not "undertone"
2015-09-06 21:47:14 -04:00
Paul Licameli
9c483e2e86
Add (redundant) #include "Experimental.h" in all .cpp files using the symbols
2015-08-31 17:56:10 -04:00
Paul Licameli
375dea0c36
Bug1152: fix crash caused by inconsistent criterion for deciding to draw samples
2015-08-28 15:30:42 -04:00
Leland Lucius
ef711a75c4
Revert "Fix for bug #1152 "
...
This reverts commit 6eedbcd726 .
2015-08-28 11:35:42 -05:00
Leland Lucius
6eedbcd726
Fix for bug #1152
2015-08-28 03:03:43 -05:00
Paul Licameli
65b94d1fa5
travis
2015-08-27 16:51:08 -04:00
Paul Licameli
80d7ed36f0
Bug1162: Be careful remapping db scale extremes, when the db limit value changes
2015-08-27 16:06:13 -04:00
Paul Licameli
555aa14e9e
Bug1160: Fix scale limits in waveform views
2015-08-26 07:24:20 -04:00
Leland Lucius
b68cbcd012
Apparently we now have to contend with gtk2 and gtk3 differeence too :-(
2015-08-24 14:53:01 -05:00
Leland Lucius
6a9dae20f5
Appearance on OSX is now back to normal or better
...
Some additional wx3 cleanup as well.
2015-08-23 20:25:01 -05:00
Paul Licameli
1b8f44d053
ViewInfo does not redundantly (or inconsistently!) store the screen width
2015-08-21 22:39:18 -04:00
Paul Licameli
68cbd4fbfe
Fix bevels on vertical rulers
2015-08-21 11:32:27 -04:00
Paul Licameli
bc5aed7465
Bug1156, fix inconsistencies in mapping pixel heights to track vertical scales
2015-08-21 11:04:30 -04:00
Paul Licameli
23facd70c6
Bug1155: Fix off-by-one errors in painting of wave or label track backgrounds.
2015-08-20 23:08:48 -04:00
Paul Licameli
84ee685ee9
reassignment, internals, implementing time correction, but -- ...
...
... it does not yet interact correctly with caching, so results may be
slightly wrong if you scroll the view by less than a screen.
2015-08-17 09:17:46 -04:00
Paul Licameli
5aba06a8a2
simplify argument passing for drawing pitch views
2015-08-16 19:45:09 -04:00
Paul Licameli
cf45a58fdc
dB range is now in Waveforms preferences and view settings, and ...
...
... the preference is independent of those in Interface and Recording
preferences, which affect meters, sound activated recordings, time track,
and Plot Spectrum
2015-08-15 18:07:29 -04:00
Leland Lucius
37168ebbf6
Merge remote-tracking branch 'upstream/master' into wx3
2015-07-28 15:06:25 -05:00
Leland Lucius
5bdfcff97d
Menu shortcut hiding has been removed
...
It had been causing problems in Unity for a while now and they
were missing on OSX as well in wx3. So, the old menu Open/Close
method of hiding has been removed and replaced with an event
filter/monitor which looks for wxEVT_CHAR_HOOK events to pass
key events to the handler that has the keyboard captured.
2015-07-28 14:35:09 -05:00
Paul Licameli
e0621819ed
Move ENV_DB_RANGE out of Envelope.h; that file can be included in fewer places.
2015-07-28 11:55:52 -04:00
Paul Licameli
f81231efae
Remove Sequence.h from other headers
2015-07-28 10:02:08 -04:00
Paul Licameli
d39eaa4e65
Remove WaveTrack.h from other headers
2015-07-28 10:02:05 -04:00
Paul Licameli
b89c2a130c
Remove Track.h from other headers
2015-07-28 10:02:03 -04:00
Paul Licameli
5abbd463b2
Waveform dB is not a track type. Logarithmic is a Wavetrack scale type...
...
... Also removed one line from the track control drop-down, and changed
accelerators to more mnemonic choices.
Also the open page of View Settings... determines track view type after OK
2015-07-28 08:08:13 -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
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
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
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
786c1da645
Move class SpectrogramSettings to its own file
2015-07-26 21:10:13 -04:00
Paul Licameli
f37c37e67c
Fix travis errors by other means
2015-07-26 19:23:55 -04:00
Paul Licameli
ca30328e8f
Revert "Fix Travis Build (const in structure)"
...
This reverts commit 13c17d3d5d .
2015-07-26 19:08:33 -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
03984c48a5
Bug1096: Fix crash changing view types
2015-07-25 19:58:24 -04:00
Steve Daulton
df8ddde874
Added dB - linear amplitude conversion macros.
2015-07-24 21:59:34 +01:00
Leland Lucius
3fe146f306
Merge remote-tracking branch 'upstream/master' into wx3
2015-07-19 18:00:02 -05:00