Commit Graph

16389 Commits

Author SHA1 Message Date
Robin Gareus 157ccbbdb5 C++11 fallthrough (2/2) 2023-05-19 05:34:25 +02:00
Robin Gareus d0a66ca389
Update Session Archive Dialog, allow to abort 2023-05-19 03:08:38 +02:00
Robin Gareus 56176bb627
Update GUI, use new Archive progress API 2023-05-19 03:08:31 +02:00
Robin Gareus 02055a1c96
Update codebase to use PBD::Progress (2/2) 2023-05-19 00:53:38 +02:00
Robin Gareus b5d3ef68bf
Prepare for FileArchive progress API update 2023-05-19 00:31:51 +02:00
Robin Gareus d2b24e8689
Rate limit progress-report, reduce excessive UI load
Session-archive or region analysis can produce excessive
progress callbacks (for each N samples read from disk).
2023-05-18 18:58:40 +02:00
Robin Gareus ffa893f23c
Add a warning that cut/copy section does not yet include the the Tempo Map 2023-05-18 03:45:53 +02:00
Robin Gareus 3ef5b0881f
Expose Cut/Copy Section in Edit Menu
Also remove it from the context menu, since it fails
with edit-point = Mouse.
2023-05-18 03:45:14 +02:00
Robin Gareus 86393ecfc3
Fix Blueberry-Milk theme 2023-05-18 01:26:52 +02:00
Robin Gareus dbebc0b7e0
Make Markers properly themable, use color-names
This simplifies code, and also immediately changes marker
colors when the theme is changed.
2023-05-18 01:26:35 +02:00
Robin Gareus 299e67f250
Facilitate multiple section paste operations 2023-05-17 23:30:13 +02:00
Robin Gareus 3bac043043
Update preferences metadata object 2023-05-17 02:04:52 +02:00
Robin Gareus d9f25ff2ea
Split Appearance/Editor Waveform into separate page
This reduces the vertical size requirement of the
Preference Window.
2023-05-17 02:02:55 +02:00
Robin Gareus cb78043adc
Indicate selection extents in time ruler 2023-05-17 01:53:40 +02:00
Robin Gareus 1ee2675716
Implement Selection Marker class and events 2023-05-17 01:50:51 +02:00
Robin Gareus cfba965db3
Prepare Selection Start/End Marker rendering 2023-05-17 01:45:48 +02:00
Robin Gareus 5f03253de6
Restore Ardour stripable-color-palette 2023-05-15 23:18:50 +02:00
Robin Gareus 68d910d58c
Catch another windows no-top-level issue
GTK+ on windows is weird on occasion :)
2023-05-15 22:47:36 +02:00
Ben Loftis 4b30239275 split route-coloring option into Tracks and Buses 2023-05-15 15:34:43 -05:00
Ben Loftis 9cb6c67f7b when coloring tracks: prefer the first strip-palette color, not a bg color 2023-05-15 15:34:43 -05:00
Ben Loftis f420c74598 avoid using red in the default stripable palette
* if regions-follow-track-color is enabled, regions kinda look selected
* red is generally reserved for active selection, recording, or errors
2023-05-15 15:34:43 -05:00
Robin Gareus b6b1aec50e
Fix selection after region duplicate (amend cfca2d2a) 2023-05-15 19:28:33 +02:00
Robin Gareus cfca2d2af9
Significantly speed up multiple region duplication
When multiple regions are duplicated Playlist::duplicate
is called sequentially for each region.

Previously that lead to a call to Playlist::flush_notifications
after each step, which is rather expensive.
Playlist::ContentsChanged and Playlist::LayeringChanged
trigger SessionEvent::Overwrite and GUI updates.
2023-05-14 20:42:31 +02:00
Robin Gareus bcafa3d6aa
Tempo dialog is modal, grab focus from parent 2023-05-14 20:42:31 +02:00
Ben Loftis cceb917806 handle special cases of the first and last tempo-mapping markers
TODO: once all cases are recognized, we can probably simplify the logic
2023-05-14 09:05:08 -05:00
Robin Gareus 0afc0dd50d
Log video-monitor version during startup 2023-05-13 17:08:47 +02:00
Robin Gareus ca88794ab7
Engine-dialog: push splash on error
When starting the engine fails, the splash screen
needs to remain behind the dialog.
2023-05-12 03:34:47 +02:00
Hoger Dehnhardt 0d2d30f1a7
Softube Console1 add surface (gtk2_ardour) 2023-05-07 18:19:45 +02:00
Robin Gareus 0b48d421d5
Add LV2 header include compatibility (1/2) 2023-05-06 16:20:01 +02:00
Paul Davis 240a85097c when editing tempo, round position to beat in GUI 2023-05-05 20:52:48 -06:00
Robin Gareus 6572b8d409
Fix cross-compile linking (libusb - see also 5794d21a76) 2023-05-04 21:31:13 +02:00
Ben Loftis a258b82ce9 tweak behavior and naming of tempo-map drags:
* correctly handle clicks on the immediate right or left of a beat line
* prefer Mid-Twist and End-Stretch terminology over Twist and Linear
* static-tempo vs ramped-tempo is orthogonal to mid- and end- drags (TODO)
2023-05-04 09:33:08 -05:00
Paul Davis 49e1f7f79d fix logic of editing tempo & meter
Old code use the TempoMetric (Tempo + Meter) in effect at the old
location of the tempo/meter to compute the position of the edited tempo/meter,
using a BBT time from the dialog.

But this TempoMetric uses the very tempo/meter that we're editing!

So we have to use previous_tempo() or previous_meter() to construct
the relevant TempoMetric, and if it is the first tempo or meter, then
obviously it cannot move position at all.
2023-05-03 21:55:23 -06:00
Ben Loftis 3f15a3a402 set playhead sensitivity via config (defaulted insensitive)
* in the 'fake_drag' case (dragging the playhead from the ruler), the
 mouse events are delivered to the playhead during the drag so we need
 to temporarily sensitize the playhead during that operation, then reset
 the sensitivity via config
2023-05-01 08:49:27 -05:00
Ben Loftis dd08d12475 desensitize playhead by default, and make a new config variable 'sensitize-playhead'
Historically, it was possible to grab the 1-pix-wide red line, and drag the playhead
In rare but annoying cases, the red playhead interferes with mouse clicks, because it is on top
De-sensitize the playhead by default, and provide a new config var for those who want the old operation
2023-05-01 08:49:27 -05:00
Robin Gareus 0b355c0412
Prepare for ControlProtocol API cleanup 2023-04-30 21:40:50 +02:00
Paul Davis f387cbae12 amend 82e03ac13e for better leave notify behavior
Don't clear the processor box selection when leaving for
a non-linearly related widget/window (e.g. a context menu)

Note that the deselect is a little buggy but that was
true before the referenced commit too. If you move the mouse too
fast out of a processor box, then depending on where the
mouse stops, no leave notify message is sent
2023-04-29 09:57:54 -06:00
Robin Gareus 3fe1fc77a9
Do not snap to rolling playhead 2023-04-29 01:04:34 +02:00
Robin Gareus d82ece39e1
Add Editor preference to snap to playhead position. 2023-04-29 00:40:06 +02:00
Paul Davis 78216b422f add new Playhead snap mode 2023-04-28 15:57:42 -06:00
Paul Davis 5c0886379b fix position of edited tempo marker in the presence of BBT markers 2023-04-28 15:57:42 -06:00
Ben Loftis 5b42422c60 allow single-click in the mapping ruler to add tempo markers (again)
* this is useful to make a 'guard point' ...
* ... this just preserves/sustains the tempo from the prior tempo marker
2023-04-28 09:29:01 -05:00
Paul Davis 57d2a85c0a NO-OP: remove unused variable warning 2023-04-27 19:56:18 -06:00
Paul Davis 408aed9e85 no need for a tempo map reset after the remove-while-moving 2023-04-27 19:56:12 -06:00
Paul Davis 82e03ac13e fix SNAFU with processor box bindings
Bindings were not loaded until after ProcessorBoxen were created,
meaning they had no effect (the ProcessorBoxen set their ardour
bindings to null).

Also handle leave-means-deselect at ProcessorBox level rather than
MixerStrip level, to include MonitorSection PB
2023-04-26 17:19:50 -06:00
Alexandre Prokoudine 5b19882be3 Update Russian translation 2023-04-25 20:26:46 +02:00
Paul Davis 87b5849a7b kbd bindings: fix issues with delete & backspace bindings in draw/i-edit mode
We now use the same actions in all modes, and the logic is:

1. is there a selected mixer strip and are we in it: if so, delete selected
   processors
2. are we in draw or internal mode? if so ..
   2a. if there are selected control points, delete them
   2b. if not, attempt to delete MIDI notes
   2c. done
3. continue with delete operation as before
2023-04-25 11:38:16 -06:00
Paul Davis c16ee928de fix ruler dialog 2023-04-22 17:58:28 -06:00
Robin Gareus 9625d22c0d
Add Lua bindings for TempoEditBehavior
See also 8fbf2c3f52
2023-04-22 22:15:00 +02:00
Paul Davis 65c81feb5e fix consistency and accuracy of tempo edit behavior setting 2023-04-22 11:12:21 -06:00