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

203 Commits

Author SHA1 Message Date
Paul Licameli
6930b63192 Redo track kind as an enum class defined at global scope 2018-09-29 21:41:47 -04:00
Paul Licameli
34cc1ff577 Rename, rewrite, and simplify use of FindPendingChangedTrack 2018-09-13 13:56:47 -04:00
Paul Licameli
a5c50a112a more const in drawing functions 2018-09-13 13:53:58 -04:00
Paul Licameli
e432883dec Fix deprecation warnings with wxFont, wxPen, wxBrush ctors...
... Replace some enum constants with the equivalent values from the more
special-purpose enums, as the wx header files recommend, so overloading
selects the ctors with non-int arguments.

In a full rebuild of the debug project on Mac, this reduces the count of
warnings from 264 to 274.
2018-07-23 13:21:15 -04:00
James Crook
4ae394ff5e Fix some warnings (MSVC) 2018-03-31 19:47:16 +01:00
Paul Licameli
aed6eb2215 Redo sample display choice in Tracks preferences 2018-03-25 14:35:59 -04:00
James Crook
ae564b2724 Bug 1837 - Unable to set empty track name
Also AudacityCommand dialogs now only show help button if there is help.
Also Track only shows track name over it, if there is a track name.
2018-03-25 13:43:49 +01:00
James Crook
8ce8e7bcce Bug 521 - Lower half of Waveform (dB) vertical scale does not show dB level.
Added a DbMirrorValue for two sided dB scale on Waveform VRuler when in dB view mode.
2018-03-24 20:35:08 +00:00
James Crook
a47df37ea4 Bug 1533 - Selection in label track offset from selection in audio Track
The problem was actually more general, and involves misalignment between selections
in clips and selections in the background and in the ruler - so could be seen with just
audio tracks and no label tracks.
2018-03-17 19:17:53 +00:00
andheh
809167d932 fixed an indentation warning in src/TrackArtist.cpp 2018-03-06 21:29:52 +00:00
Paul Licameli
d3493814e2 Fix Mac build 2018-03-02 19:46:35 -05:00
James Crook
3e8dec452c Give track name overlay a background.
- Also changed over from using the yellow color.
2018-03-02 19:27:42 +00:00
Paul Licameli
28eeca5fa7 Iterate over the pending tracks for drawing and sizing the scrollbars 2018-02-21 19:20:58 -05:00
Paul Licameli
52a7f2320d Re-fix some warnings about mixing signed and unsigned better...
... Assuming that large unsigned magnitudes with high order bit set are not
the problem, but signed negatives of small magnitude may be:

1) Always cast the unsigned to signed in comparisons, not the other way.

Also:

2) Cast unsigned TERM to signed by itself, before subtracting.  Don't cast
the result.

3) Rewrite some comparisons by moving subtracted term to other side.

See commits
d2fe7b1757d77d93d82d53685a118517a4d2e996
f463eda36c059236ecc168919c745eb687170c95
2018-01-23 18:51:53 -05:00
Paul Licameli
4ef8da8f16 Revert "Preliminaries to support better interaction of undo and recording"
This reverts commit 6e75ae58ac56d9c94af5a4ce97951f627808473a, reversing
changes made to 714d53e00f803643131bb775858ac930b39dd5b8.
2018-01-14 21:36:33 -05:00
Paul Licameli
ce5a67a9e9 Iterate over the pending tracks for drawing 2018-01-14 19:04:03 -05:00
Paul Licameli
5407079c62 Remove EXPERIMENTAL_OUTPUT_DISPLAY...
... Maybe a good feature idea, but the implementation pollutes the code in
too many places.

It's a special case of the more general idea of many-to-one associations
between screen rectangles and track objects.  More generalized ways to
accommodate that should be sought.
2018-01-12 12:08:09 -05:00
Paul Licameli
c975de8c5e More use of shared_ptr to Track, for safety...
... This even makes it possible to remove the prohibition of undo and redo
during transport, not that we want to though.  Playback and recording will
continue, using track objects that might not be in the current project.
2018-01-10 20:05:11 -05:00
James Crook
d2fe7b1757 Clean up most remaining MSVC warnings. 2018-01-06 13:03:48 +00:00
James Crook
f463eda36c Clean up some dead code and MSVC warnings.
- Dead code from experiments in SelectionBar removed.
- Many warnings about unused parameters fixed with WXUNUSED()
- Many warnings about signed / unsigned comparisons cleaned up.
- Several 'local variable declared but not used' warnings fixed.
2017-12-08 15:20:39 +00:00
James Crook
42c52de7f1 Coloured clips basics
These basics add a colour index to each clip and track, and allow for a choice of four colours to be set from the track menu drop down.  The additional wave colours (red, green and black) are not currently configurable, and the colour index is not currently saved.
2017-11-04 17:47:02 +00:00
James Crook
d0b49f1ec9 Bug 1671 (part 2) - Clock icons do not propagate into Sync-locked MIDI / Spectrogram view tracks
This is the second half of the bug and it does MIDI.
2017-08-12 15:08:29 +01:00
James Crook
3d5a4e8a45 Bug 1671 - Spectrogram Overlay made experimental.
In case we decide too much detail is lost in low intensity spectrogram - we can turn this off easily.
2017-08-11 23:20:04 +01:00
James Crook
78f273f30c Bug 1671 (part 1) - Clock icons do not propagate into Sync-locked MIDI Spectrogram view tracks
This is only half of the bug.  MIDI tracks still to do.
2017-08-11 22:55:00 +01:00
Paul Licameli
f725e937a4 Still better redrawing of resized Note tracks, still not perfect...
... The uses of GetPitchHeight(1) should be reexamined
2017-07-19 15:20:47 -04:00
Paul Licameli
d256bfedd2 NoteTrack, extreme vertical zoom-in: limit top & bottom margin height 2017-07-19 11:33:18 -04:00
Paul Licameli
c5fc8eef03 Revert "Split lines now only show over middle third of track height."
This was the fix for Bug 800 now considered unsatisfactory.

This reverts commit dc1193a0af83f1d43de5a30aea6b6b09087eea58.

(Some merge resolution was needed)
2017-07-14 23:09:41 -04:00
Paul Licameli
b11c3c8ccf Highlighting of Wave and Note track vertical rulers 2017-07-11 13:57:59 -04:00
Paul Licameli
ed4057ae1b Highlighting of cutlines and clip boundaries 2017-07-11 13:57:58 -04:00
Paul Licameli
ecebf7656e Highlighting of samples 2017-07-11 13:57:50 -04:00
Paul Licameli
2d65cdc46a Highlighting of time-shift grips 2017-07-11 13:57:43 -04:00
Paul Licameli
7fb107e143 Highlighting of envelopes 2017-07-11 13:56:41 -04:00
Paul Licameli
ada4b6307d Pass more context information into drawing routines 2017-07-09 12:34:27 -04:00
James Crook
0878de1dbb BLACK is the new WHITE (for split lines). 2017-06-30 21:45:19 +01:00
James Crook
dc1193a0af Split lines now only show over middle third of track height.
This allows selection and clicking on split lines to merge clips to act independently.  It also means we don't need a portmanteau explanation in the status line, and the action to select up to a split line is simpler and easier to explain.
2017-06-29 17:04:59 +01:00
Paul Licameli
bd0603b66a Remove the duplicate button-drawing functions that are now unused 2017-06-15 08:21:37 -04:00
Paul Licameli
ceaa050a24 Change some names in TrackArtist to match terminology in TrackPanel 2017-06-06 13:29:33 -04:00
Paul Licameli
71b63843a7 some const 2017-06-04 14:04:14 -04:00
Darrell Walisser
29df7e1ce3 Speccache performance improvments
Resolve #191 issues

- Disable reassignment cache
- Free memory when reasonable
- Add assertion
- Remove unused variables
- Add some comments
2017-05-30 20:39:00 -04:00
Paul Licameli
2ef243fe60 Revert the change in display of WaveTrack envelope at high zoom 2017-05-30 12:45:55 -04:00
Paul Licameli
e428425c7d Change the drawing of wave track envelope at high zoom...
... The function defined by the envelope is evaluated exactly at the times of
samples, but not between samples -- instead there is a simple interpolation.

Therefore the curve might not go through the control points when they are not at
sample times.

The exact value of the function defined by the envelope has no influence on
rendering of the sound in between samples.  So this can make it clear that
the middle point has no influence at all in case three points are very close.

Drawing of other envelopes (Time track, Equalization curves) is not changed.
2017-05-26 14:51:50 -04:00
Paul Licameli
537ccfbc4f Change evaluation of envelope near discontinuities...
... So that even if the time is "slightly" (less than 1/2 sample interval) left
of the discontinuity, the right-hand limit is always used.

Thus this compensates for some roundoff errors when pasting one clip with
an envelope into another.

This overcomes the objections that were in a comment in Envelope::Paste
to making control points with exactly equal times.

And therefore Paste can be rewritten to do so, but that has not happened yet.

Envelope points at exactly equal time coordinates can already be made by
dragging points in the envelope editor.
2017-05-26 14:50:43 -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
6d75d94572 Make Stem plots the default (when zoomed in) 2017-05-16 12:29:16 +01:00
Pokechu22
a76ad22c91 Fix midi channel toggling
This reintroduces the buttons to toggle display of individual midi
channels, and cleans up the code behind that feature.

This functionality has actually been present in production versions of
audacity for a while, at least for clicking.  However, the buttons
themselves were not drawn, making it exteremly painful (but possible) to
use.

As requested by PRL, this is always enabled if USE_MIDI is defined.
2017-05-02 00:37:31 -04:00
Steve Daulton
516570074b Add preference option for Stem Plot
Tracks 'behaviors' preferences split to sub-page to avoid over-long
page for Tracks preferences.
2017-04-27 15:16:05 +01:00
Steve Daulton
53a64757e7 Stem Plot option when displaying samples
Initial commit.
2017-04-27 15:16:05 +01:00
James Crook
60a53d560b Ensure colours of rulers and TimeTrack background update after a theme change. 2017-04-27 12:08:25 +01:00
James Crook
1114d5fa20 Add theming for NoteTrack 2017-04-26 22:33:50 +01:00
James Crook
c17a7f535e Improve repainting after a theme change.
Now most things repaint properly after a theme change.  The sliders on the tracks don't yet.
2017-04-04 14:43:47 +01:00