1
0
mirror of https://github.com/cookiengineer/audacity synced 2025-05-05 22:28:57 +02:00

6622 Commits

Author SHA1 Message Date
James Crook
d0911638d8 Select SubMenu made into a full top level menu. 2017-04-03 16:05:31 +01:00
David Bailes
a7a4a70e5f Two commands added, neither on a menu:
Clip Left
Clip Right

If the cursor lies within a clip, the clip and the cursor is moved 1 pixel left/right.
If the cursor position is at both a clip end and a clip start, the second of these clips is moved.

The movement currently ignores the snap to setting on the selection bar, and there is no snapping to the clip boundaries of other clips.
Following the behaviour or shifting with the mouse, the distance moved is rounded to an integral number of samples, and the minimum distance moved is one sample.
2017-04-03 13:53:48 +01:00
David Bailes
c382139c05 New commands for selecting clips using the keyboard
Added two commands:
Select > Previous clip. Select the previous clip for which clip start < selection start/cursor position.

Select > Next clip. If the position of selection start/cursor is at the start of a clip, and selection end is not at the end of the clip, select that clip. Otherwise, select the next clip for which clip start > selection start/cursor position.
2017-04-03 13:45:58 +01:00
David Bailes
a519e6fc7d New commands for clip boundaries using the keyboard
Added the commands:
Cursor to > Previous clip boundary
Cursor to > Next clip boundary
Select > Previous clip boundary to cursor
Select > Cursor to next clip boundary
2017-04-03 13:35:46 +01:00
James Crook
8c8f38079d Make default theme depend on EXPERIMENTAL_DA #define. 2017-04-03 13:18:34 +01:00
David Bailes
0e3f4ce50c Fix for windows build
Trivial fix.
2017-04-03 09:29:39 +01:00
Paul Licameli
ae48ac2cbd Strong guarantee, void return from all mutating methods of Sequence 2017-04-02 21:35:10 -04:00
Paul Licameli
fc0f093db7 Sequence::Append* give strong guarantee 2017-04-02 21:33:23 -04:00
Paul Licameli
63cf80d244 Sequence::Delete gives strong guarantee 2017-04-02 21:33:23 -04:00
Paul Licameli
06f6953c91 Sequence::SetSamples, ::SetSilence give strong guarantee 2017-04-02 21:33:23 -04:00
Paul Licameli
73e61592aa Sequence::ConvertToSampleFormat gives strong guarantee 2017-04-02 21:33:23 -04:00
Paul Licameli
3c65731f38 Sequence::InsertSilence gives strong guarantee 2017-04-02 21:33:22 -04:00
Paul Licameli
160d846643 Sequence::Paste gives strong guarantee 2017-04-02 21:33:22 -04:00
Paul Licameli
2ba6065961 Sequence consistency check throws; new unused commit functions use it 2017-04-02 21:33:22 -04:00
Paul Licameli
6b0c5c096b WaveClip::Flush returns void, throws on error 2017-04-02 21:33:22 -04:00
Paul Licameli
ec3a4f5069 Merge branch 'master' into HEAD 2017-04-02 21:33:01 -04:00
James Crook
5e42fe8649 Merge branch 'master' into darkaudacity 2017-04-02 23:19:33 +01:00
James Crook
028ed19d90 Sync with DarkAudacity 2017-04-02 23:07:13 +01:00
James Crook
0fc04fd760 Complete DA/Classic conditionals 2017-04-02 22:59:20 +01:00
James Crook
48821a0cab Merge branch 'master' into darkaudacity 2017-04-02 19:08:38 +01:00
James Crook
ff40b956dd Make without-DA be more like Classic.
This commit includes:
- A tidy up of TrackInfo item positioning.
- Ability to draw the stretchy buttons to odd sizes.
- ClassicThemeAsCeeCode.h created/added.
- More Toolbars shown by default.
- Icon adjusts.
- Other resource info adjusts.
- Splash logo adjusts.
- About Dialog and Html text adjusts.
2017-04-02 18:55:13 +01:00
Paul Licameli
e633dc0c8b Document guarantees of now void-returning WaveTrack, WaveClip methods 2017-04-02 13:15:31 -04:00
Paul Licameli
5963f278f1 void returns from many WaveClip methods, comment safety guarantees 2017-04-02 12:49:47 -04:00
Paul Licameli
aa83c4cf29 Implement the more than weak guarantees needed for recording...
... in WaveClip and WaveTrack, to save as much recording as we can,
assuming the strong guarantees that Sequence will give.

Also comment that some other WaveTrack methods can give strong guarantee,
incidentally to making HandleClear give strong.
2017-04-02 12:46:47 -04:00
Paul Licameli
e3d4a8dcfe Comment the strength of guarantees of some WaveTrack methods 2017-04-02 12:43:21 -04:00
Paul Licameli
3db132f9b0 Fix WaveTrack::SplitAt 2017-04-02 12:43:21 -04:00
Paul Licameli
9cdbd18cd0 Merge branch 'master' into HEAD 2017-04-02 12:42:29 -04:00
James Crook
46fc78919a Apply theme preference at start 2017-04-02 10:51:08 +01:00
James Crook
35a4f1a09c Move Sync-Lock renaming to internationalisation. 2017-04-02 09:08:57 +01:00
James Crook
9ec2bdb102 Comments on the DA conditionals. 2017-04-02 08:57:16 +01:00
James Crook
bd364ea0ec Merge branch 'master' into darkaudacity
Conflicts:
	src/TrackPanel.cpp
	src/toolbars/ControlToolBar.cpp
2017-04-01 23:05:03 +01:00
James Crook
1525f146da Update Greek Translation by Dimitris Spingos 2017-04-01 20:13:38 +01:00
Paul Licameli
08e57f3836 MIDI play changes for TrackPanel, MixerBoard; conditionally compiled 2017-04-01 12:49:20 -04:00
Pokechu22
1c93198d08 Re-implement note tracks in MixerBoard
This commit adds note tracks into the mixerboard.  It's done as a separate
slider this time instead of via subclasses (as PRL requested), so which
should be easier to use.

This also changes some of the gaurds to EXPERIMENTAL_MIDI_OUT from
USE_MIDI, as it's meaningless to have the note track code in mixerboard
when it cannot do anything (depends on methods that exist behind
EXPERIMENTAL_MIDI_OUT).
2017-04-01 12:48:44 -04:00
Pokechu22
59d740ad77 Use a dedicated velocity slider for note tracks
This gets rid of the offset rectangle hack that was needed to re-use gain
sliders for note track velocities.  It also removes the need for changing
the style of a single slider.  Perhaps most importantly, it fixes link
errors regarding GainSlider(int).

See https://sourceforge.net/p/audacity/mailman/message/35752524/ for
details on why this change is needed and what caused it.
2017-04-01 12:48:43 -04:00
Paul Licameli
1f0e01b8ca Merge branch 'master' into HEAD 2017-04-01 11:30:12 -04:00
Paul Licameli
7195f9a3f4 fix windows build 2017-03-31 22:53:58 -04:00
Paul Licameli
2c84657622 Exception handling: most "TO DO: Actually handle this" comments gone 2017-03-31 18:49:41 -04:00
Paul Licameli
0d7250578d Other methods of WaveTrack return void, will throw on failure instead 2017-03-31 18:26:52 -04:00
Paul Licameli
e1473dfe76 void return, not boolean success, from some Track virtual functions...
... The return codes were mostly ignored anyway, and exceptions will be thrown
instead.

It seems there was also confusion whether the return values of Track::Paste
and Track::SyncLockAdjust were to indicate success or indicate whether there
was any change.  No matter now.
2017-03-31 18:26:52 -04:00
Paul Licameli
71dd75a596 More exception handling; incidentally implement TimeTrack copy/paste 2017-03-31 18:23:47 -04:00
Paul Licameli
a23d6e2368 More exception handling; incidentally implement TimeTrack copy/paste 2017-03-31 18:19:24 -04:00
Paul Licameli
6b84dc1c1d Factory methods will return non-NULL or throw 2017-03-31 18:14:29 -04:00
Paul Licameli
f1b354b141 More pure virtuals in Track, supply Note and Time overrides 2017-03-31 18:03:37 -04:00
Paul Licameli
ad34145ded Clarify paste logic, throw to rollback on error, keep TimeTrack unique...
... though TimeTracks are not yet ever cut or copied; but next commit will
change that.
2017-03-31 18:02:22 -04:00
Paul Licameli
608dcc9b3f Reimplement prohibitions on moving clips by throwing exceptions...
... Also comment some strong and weak guarantees
2017-03-31 17:47:19 -04:00
Paul Licameli
8e2e4a53b8 Define SimpleMessageBoxException 2017-03-31 17:47:18 -04:00
Paul Licameli
d1cbac4181 more finally, more const, remove unused, fix warnings 2017-03-31 17:47:18 -04:00
Paul Licameli
699b9d0517 Merge branch 'master' into head 2017-03-31 17:46:47 -04:00
Paul Licameli
a1b88fe8d6 Fix assertion in MIDI prefs when there are no devices 2017-03-31 13:02:57 -04:00