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

7310 Commits

Author SHA1 Message Date
Paul Licameli
4925d0a54b Fix cursor changes for selection 2017-07-18 11:10:45 -04:00
Paul Licameli
c4995efed8 TCP buttons can distinguish up and down highlight backgrounds...
... But make them nondistinct in all themes, so this commit does not yet make
user visible changes.

This uses the HiliteButtonExpandSel resource which was previously unused.
Perhaps not the intended use of the resource so named, but names can change in
2.2.1.

The two were already alike in Classic but the unused one had been just black
in the others.
2017-07-17 22:09:56 -04:00
Paul Licameli
9b35792685 Simplify the error messages in case of disk i/o exceptions 2017-07-17 20:44:49 -04:00
Paul Licameli
a9a6f01214 Stop showing the tooltip for track rearrange after button down 2017-07-17 17:34:18 -04:00
Paul Licameli
64ce79fef8 Change Menu button tooltip, and it includes the shortcut 2017-07-17 12:10:40 -04:00
Paul Licameli
17c964e392 Distinct status bar message for Time track envelope edit 2017-07-17 11:59:25 -04:00
Paul Licameli
5f8cde43fa Fix condition for displaying (Esc to cancel) 2017-07-17 11:49:11 -04:00
Paul Licameli
ed4300fed1 Move status bar message texts out of class ToolsToolBar 2017-07-17 11:39:32 -04:00
Paul Licameli
14450d6d9f Fix flickering tooltips in TrackPanel 2017-07-17 11:17:23 -04:00
Paul Licameli
c72bb76301 Fix flickering TrackPanel tooltip 2017-07-17 11:12:20 -04:00
Paul Licameli
1b8f3daaec Again disable tooltips for vertical rulers. 2017-07-17 11:11:41 -04:00
Paul Licameli
e86fd3c990 Bug1688: MIDI stretch when select time extends beyond track end...
... The cursor may be the center or the right depending where you pick; both
those cases needed fixing.
2017-07-17 10:05:22 -04:00
Paul Licameli
f2deb1cc43 Bug1691: Make Mute and Solo shortcuts for focused track work for Midi 2017-07-17 09:09:51 -04:00
Paul Licameli
1faa234b9e Fix bug 1662 (crashing TCP menu commands on Windows) differently...
Previous fix was at commit f9865f39efe46224a1a77c742a789b2cc70f0c54

But then that had this strange effect on Mac:  when a menu command such as
rename brought up a modal dialog, then the first click in the dialog would pass
through to the tracks behind it, changing the selection, and only a repeated
click on the OK button would dismiss the dialog.

I don't know exactly why that happened.  This avoids it.
2017-07-17 02:58:37 -04:00
Paul Licameli
f3574c6238 build fix 2017-07-17 02:59:11 -04:00
Paul Licameli
abce981bc1 A few tooltips for TCP buttons, vertical rulers, track rearrange 2017-07-17 02:27:08 -04:00
Paul Licameli
bb970364c8 Tooltips for Wave & Note track vertical rulers 2017-07-17 02:26:41 -04:00
Paul Licameli
77d5a4cfa8 Tooltip for click and drag on TCP 2017-07-17 02:26:41 -04:00
Paul Licameli
42921b7e55 Tooltips for TCP buttons 2017-07-17 02:26:38 -04:00
Paul Licameli
812fd2adea move function 2017-07-16 23:01:12 -04:00
Paul Licameli
fa96dcffb9 Cursor was meant to change to hand only after click on TCP 2017-07-16 22:56:12 -04:00
Paul Licameli
cc0f76d076 Clear the tooltip when leaving the cell that defines it 2017-07-16 22:55:45 -04:00
Paul Licameli
a5e2854b73 Omit Note tracks from scrubbing and seeking 2017-07-16 21:09:28 -04:00
Pokechu22
03f9592f58 Bug 1690: Playback does not stop at the end of MIDI playback
This was caused by the indicator-passed-selection check being inside a loop over all wave tracks.  If there are no wave tracks, then the check never happened.  I added a duplicate version of the check if there are no wave tracks.  This may not be the best solution, but it works for now.

I'm not entirely sure why the check is in the loop (or what's going on with the len and maxLen variables); as such, I just haven't touched that.  Perhaps it would be safe to move the check always outside of the loop, but I'm not completely confident in that.
2017-07-16 20:52:09 -04:00
Pokechu22
4d3d32ca4d Remove MIDI-only playback (without portaudio) logic
Instead, always start a portaudio stream (if there is either a note track or a wave track).  This ensures that playback is always in sync (eg when recording), and gets rid of a lot of duplicate logic throughout.

Scrubbing (currently) still doesn't work with only note tracks, but it should be easier to fix that now than trying to reimplement all of the scrubbing time logic.

Conflicts:
	src/AudioIO.cpp
2017-07-16 18:10:48 -04:00
Paul Licameli
23e517fce5 windows build 2017-07-16 14:46:47 -04:00
Pokechu22
c50567e1db Time track properly warps the MIDI event times (but not pitches)
mMidiPlaySpeed doesn't handle all of the options provided by time tracks,
and in fact doesn't even use time tracks.  Using the time track
instead allows note tracks to remain synchronized with the rest of the audio.

mMidiPlaySpeed _did_ work where it was used in the transcription tool
bar, but that already updates a time track so no special handling is
needed.
2017-07-16 14:28:58 -04:00
James Crook
8b37ac5c39 Merge pull request #199 from henricj/appveyor_fix
Update appveyor.yml.
Version 2.2.0 alpha, including gettext, our customised wxWidgets, and creating a build artifact
2017-07-16 18:30:59 +01:00
Paul Licameli
1d5a9453eb Various small fixes for MIDI playback, including Cut Preview (C key) 2017-07-16 12:05:47 -04:00
Pokechu22
19b11c09fe Fix cut preview with note tracks 2017-07-16 11:07:29 -04:00
Pokechu22
8a02687b5f Fix velocity offset edge case
If the velocity of a note was, for instance, 30, and the velocity slider was at -30, then you'd get a data2 of 0, which wouldn't be clamped (and would produce a note off).  However, if the note were 29 or 31, you'd get a velocity of 1.  This makes it so that note ons always have a velocity of at least 1, even in that edge case.
2017-07-16 11:07:28 -04:00
Pokechu22
896d5d682b Fix drawing MIDI channels with IDs greater than 16
PRL mentioned a while ago that it was possible to get channels greater
than 16 via allegro files.  This makes those channels correctly work with
the CHANNEL_BIT macro (which was supposed to handle them this way before).
2017-07-16 11:07:28 -04:00
Pokechu22
62ebb2f95d Remove unused and unneeded MIDI methods and variables
The fields in AudioIO are simply unneeded (commented out, declared but never implemented, or otherwise unused).

mLastMidiPosition (in NoteTrack) looks like the vestiges of a far older attempt at MIDI playback; the field itself is completely unused though so it is safe to remove it.
2017-07-16 11:07:28 -04:00
Pokechu22
437de15098 Add more method and field documentation
Mostly for MIDI-specific areas, and general AudioIO fields.
2017-07-16 11:07:28 -04:00
Pokechu22
bd294ea4ed Midi diag mentions conditional compilation flags, but only in ALPHA 2017-07-16 11:06:13 -04:00
Pokechu22
681161f60b Add MIDI device diagnostics
* MIDI Device Info menu item, like Audio Device Info

 * MIDI device info in crash reports

 * Only enabled with EXPERIMENTAL_MIDI_OUT, but tracks info related to the (unimplemented) EXPERIMENTAL_MIDI_IN
2017-07-16 10:58:53 -04:00
Paul Licameli
053b0b583d Fix highlight of TCP menu button after command 2017-07-16 00:55:16 -04:00
Paul Licameli
ca83b06e84 fix i18n-hint 2017-07-15 21:11:44 -04:00
Paul Licameli
5644bed8bd No TrackPanel tooltips for now, may later reenable selected ones...
... perhaps for the TCP buttons, to make their behavior consistent with toolbar
buttons.
2017-07-15 20:50:34 -04:00
Paul Licameli
e55393af69 Fix assertion when cancelling from selection drag 2017-07-15 20:50:00 -04:00
Paul Licameli
7a038c9e51 Remove tab key target cycling and snap escape; reimplement for Esc 2017-07-15 20:37:39 -04:00
Paul Licameli
d3572ebe10 Same tolerance for hitting clip boundaries as for selection snap 2017-07-15 14:12:32 -04:00
Paul Licameli
89c8e8ac39 null checks 2017-07-15 14:05:03 -04:00
Paul Licameli
38fd97b8e2 Fix "C" linkage of PaUtil_GetTime (TOUCHES lib-src !) 2017-07-15 13:32:42 -04:00
Paul Licameli
e81df8314f more use of final 2017-07-15 12:05:47 -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
7b93a3afe2 Whoops, we lost the non-multi draw tool! Fix that. 2017-07-14 23:05:44 -04:00
Paul Licameli
812f3649de Bug 1685: garbage status bar messages and tooltips, scrub in Windows 2017-07-14 23:02:32 -04:00
Paul Licameli
558efda20c A null check 2017-07-14 23:02:20 -04:00
Paul Licameli
52d8dc1525 Bug1682, maybe: More careful treatment of some Envelope corner cases 2017-07-14 22:49:46 -04:00