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

7681 Commits

Author SHA1 Message Date
Paul Licameli
bb4a1b862a Bug1688, more: fix Midi stretch when selection goes to end 2017-07-20 10:21:12 -04:00
Pokechu22
6d47a79d3e Bug 1689: Fix MIDI devices not being found on linux
PortMidi requires PMALSA to be defined to compile with ALSA support.  Without it, it simply does not find any devices.  (There is also PMNULL, but the files controlled by that define do not actually exist)
2017-07-20 09:41:15 -04:00
Paul Licameli
cfeb7bced1 Zoom to fit after any import (labels, audio, or midi) 2017-07-19 22:10:22 -04:00
Paul Licameli
cfab325af2 Never permit import of MIDI as audio...
... It was seen to happen, at least for some MIDI files on Windows, because
the FFmpeg library may render them without reporting an error, but the rendering
was really bad!
2017-07-19 21:01:18 -04: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
8279adc797 Changing NoteTrack height, keep # of piano keys (roughly) constant...
This fix is imperfect, but quick and easy
2017-07-19 14:46:23 -04:00
James Crook
c45adf6fc1 Update audacity.pot and .po using more source files. 2017-07-19 19:31:04 +01:00
James Crook
b4c3119c8f Updated source for translatable strings. 2017-07-19 19:31:01 +01:00
Paul Licameli
207db5e547 Improved Note Track vertical ruler zooming...
... Make consistent zoom in and out limits for mouse picks and for scrollwheel

Make scrollwheel do in or out by a constant multiplier, analogously with wave
track

The Note track remembers a continuously varying key height, but rounds it off
whenever it draws
2017-07-19 14:28:17 -04:00
James Crook
c476110589 Update audacity.pot and .po files. 2017-07-19 18:22:12 +01:00
James Crook
bcf21ad0fd Make building without EXPERIMENTAL_MIDI_OUT possible again. 2017-07-19 18:02:03 +01:00
Paul Licameli
bba9b9986d NoteTrack, extreme vertical zoom-in: limit top & bottom margin height 2017-07-19 11:42:29 -04:00
Paul Licameli
d256bfedd2 NoteTrack, extreme vertical zoom-in: limit top & bottom margin height 2017-07-19 11:33:18 -04:00
James Crook
60405eb7fe Theme Tweaks
- Highlighting of Buttons in TCP and Sliders
- No crinkly Help Icon anymore
- Invisible numbers in NoteTrack fixed
- Better visibility of label track dragger elements
- Theme rearranged more logically, and dead images culled
2017-07-19 15:27:00 +01:00
David Bailes
c1c19774b4 When a VST effect is opened, the dialog is not the focus.
Problem caused by commit: 79c3bef
SetFocus() is being called when !success.

Fix: Move the call to SetFocus back to its original place in the code.
2017-07-19 14:10:34 +01:00
Dimitris Spingos
36dcddf56f Update Greek Translation 2017-07-18 21:45:08 +01:00
Paul Licameli
ea9f86e541 remove unused variable 2017-07-18 16:10:46 -04:00
Paul Licameli
7f289a9ed9 Revert "Remove unused variable"
This reverts commit 0ca907a1a74ee2c5340c981c0392404789730b14.
2017-07-18 16:06:25 -04:00
Paul Licameli
0ca907a1a7 Remove unused variable 2017-07-18 16:03:18 -04:00
Paul Licameli
48889d36f0 Precaution in case a certain assertion fails (I haven't observed it) 2017-07-18 14:10:29 -04:00
Paul Licameli
fcd175183f Bug1632: correct length of non-WAV exports >= 2^32 samples long...
... WAV format simply can't do that, others (FLAC, ogg, mp3) can and should

Some history:

This got broken very badly for an interim starting at
919d77d1760bab320ae963e1e54fc6e4981b6000.
Exported files were only tens of bytes!

This was broken differently after
ad04187a4122556c9a91ce1ac6d6a7cf3b4162ac with symptoms as in the bug report.
2017-07-18 12:25:32 -04:00
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