Commit graph

33869 commits

Author SHA1 Message Date
Paul Davis
087bdaa87b triggerbox: remove static signal added in dd842fdc5c
Bad design idea. Signal would be emitted from the triggerbox thread, and cannot
return a value from the GUI. Would also be problematic for clip loading
initiated from a control surface
2021-12-13 15:12:36 -07:00
Robin Gareus
5e38da36c6
Allow to drop file into dedicated Triggerbox slot 2021-12-13 23:05:03 +01:00
Robin Gareus
4f89834e7b
Remove comments that clash with git merge markers 2021-12-13 22:51:42 +01:00
Robin Gareus
28410ebb9a
Triggerbox accept file DnD 2021-12-13 22:51:16 +01:00
Robin Gareus
4720a45868
Make convert_drop_to_paths() reusable 2021-12-13 22:50:13 +01:00
Paul Davis
a9e1a8a885 fix compilation on macOS (usual conflicts over "Rect" typename) 2021-12-13 12:02:57 -07:00
Paul Davis
a0db260daa audio clip editor: hide ruler if we do not know the tempo, since we can't draw it under such circumstances 2021-12-13 09:21:06 -07:00
Paul Davis
dd842fdc5c triggerbox: add static signal to let the GUI do something when we cannot determine tempo 2021-12-13 09:20:32 -07:00
Ben Loftis
3e5606415f Trigger Cues: implement Stop button (gtk part) 2021-12-13 07:27:16 -06:00
Ben Loftis
e7569eabe7 Trigger Cues: implement master Stop button (libardour part) 2021-12-13 07:26:47 -06:00
Ben Loftis
c862b604e1 TriggerBox: change highlight behavior and experiment with black borders 2021-12-13 07:02:51 -06:00
Paul Davis
f5049cda74 audio clip editor: restore ruler removed during merge conflict resolution; incrementally improve its behavior 2021-12-12 22:49:29 -07:00
Paul Davis
9d4a1f080d triggers: return a segment descriptor 2021-12-12 11:20:58 -07:00
Paul Davis
483bdd99cc libardour: new SegmentDescriptor type added (but not used) 2021-12-12 10:55:05 -07:00
Robin Gareus
e5d40e86e7
Do not dynamically allocate persistent widgets 2021-12-12 14:34:14 +01:00
Robin Gareus
be7882d7a7
Skeleton for trigger clip file dialog 2021-12-12 14:25:49 +01:00
Robin Gareus
8bb0e18f3f
Fix merge-conflict and clang-format in previous commit 2021-12-12 14:01:46 +01:00
Robin Gareus
efed7343e0
NO-OP: clang-format, cleanup 2021-12-12 13:48:52 +01:00
Paul Davis
96e1735646 triggerbox: add heuristic to extract bpm from filename
If found, we do not do analysis of the audio data
2021-12-11 21:05:32 -07:00
Paul Davis
c233609c7c audio clip editor: add an incomplete ruler to the display 2021-12-11 21:05:32 -07:00
Robin Gareus
3753d97599
Add Lua binding for Temporal::TempoMap::write_copy 2021-12-11 18:30:29 +01:00
Robin Gareus
2003ca7b5f
Add Lua script snippet to query/modify tempo-map 2021-12-11 17:44:43 +01:00
Robin Gareus
ce15b6ed66
Cont'd work on TempoMap Lua bindings 2021-12-11 17:43:12 +01:00
Robin Gareus
3b18b025e3
Fix Lua TempoMap bindings
* Resolve ambiguity between typef'ed ARDOUR::timepos_t and
  Temporal::timepos_t (and timecnt_t, superclock_t)
* Add missing classes TempoPoint, MeterPoint, which are
  return value for various TempoMap methods.
* Change TempoMap into a shared_ptr<> class.
* Move Tempo and Meter out of ARDOUR into Temporal namespace.
* add various bindings to access the TempoMap
* move Temporal enums out of ARDOUR::Temporal namespace
2021-12-11 16:49:28 +01:00
Robin Gareus
208010ff18
Fix Wreorder 2021-12-11 15:51:46 +01:00
Robin Gareus
3c03e4951e
Use updated temporal API 2/2 2021-12-11 15:51:31 +01:00
Robin Gareus
60be0c27a1
Use updated temporal API 1/2 2021-12-11 14:42:36 +01:00
Robin Gareus
506bc3a6f6
Disambiguate zero(bool) constructor and is_zero() comparison
This is mainly for the benefit of Lua bindings, but also increases
overall API naming consistency with functions and methods
`is_XYZ()` being used elsewhere.

This API change breaks builds!
2021-12-11 14:33:45 +01:00
Paul Davis
6f91dc0799 canvas: fix an issue with event coordinate translation by ScrollGroup
If there's a grabbed item (GtkCanvas only at present) then unless it belongs to the scroll
group used for scroll offset translation, the event coordinates should not be translated,
even if the mouse pointer moves into the scroll group.
2021-12-10 18:17:58 -07:00
Paul Davis
3efd26e864 audio clip editor: actual scrolling with the scroll bar
Some issues remain to be solved, related to scroll groups and coordinate offsets
2021-12-10 17:56:10 -07:00
Paul Davis
e61c493fa5 audio clip editor: not-quite-working scrollbar
Something about Canvas::ScrollGroup::scroll_to() is not working quite
as expected ... to be determined
2021-12-10 17:16:47 -07:00
Paul Davis
08e50934c9 canvas: add scroll offset info to Item::dump() 2021-12-10 17:16:10 -07:00
Paul Davis
0e9eef46a0 audio clip editor: lines belong to scroll group 2021-12-10 16:06:39 -07:00
Paul Davis
cb2b78bb41 audio clip editor: add scroll bar handle 2021-12-10 16:04:47 -07:00
Paul Davis
02026c98ff basic skeleton for clip editor bindings 2021-12-10 15:15:56 -07:00
Paul Davis
ef07d47bf8 audio clip editor: use scroll group for waves container 2021-12-10 15:15:16 -07:00
Paul Davis
82f2392d85 fix binding for "bar" key in step editing bindings
It is not possible to generate "bar" without the shift modifier on most (all?)
keyboards. The same condition exists for the _ key in the main bindings
2021-12-10 13:20:20 -07:00
Paul Davis
e3cac796b3 audio clip editor: primitive (left-focus) zoom 2021-12-10 12:50:44 -07:00
Paul Davis
5b4dd8dcf4 audio clip editor: basics of line dragging 2021-12-10 11:59:19 -07:00
Paul Davis
eac0f28642 audio clip editor: change line widths and fix frame color 2021-12-10 11:07:51 -07:00
Paul Davis
56835d342c audio clip editor: basic line drawing 2021-12-10 09:47:56 -07:00
Paul Davis
3bbe54f07a audio clip editor: draw entire source file(s), not just region 2021-12-10 08:54:38 -07:00
Paul Davis
5ada2b7ce1 audio clip editor: draw waveforms (not sized horizonally appropriately yet) 2021-12-09 21:44:23 -07:00
Paul Davis
fbfbdbe266 include size request for audio clip editor 2021-12-09 21:21:05 -07:00
Paul Davis
757debb711 start putting some relevant elements into the AudioClipEditor 2021-12-09 21:12:47 -07:00
Paul Davis
12dc428a60 change class names and heirarchy for the GUI elements that will be used to edit/trim clips 2021-12-09 19:45:25 -07:00
Paul Davis
7426c96812 remove incorrectly added files 2021-12-09 19:41:21 -07:00
Ben Loftis
972229a02f Remove some spurious printouts 2021-12-08 13:39:38 -06:00
Ben Loftis
be27e7359f Property Boxen: handle more {audio|midi} cases; move code around. 2021-12-08 12:58:12 -06:00
Ben Loftis
132779ab39 Property Boxen: populate the Trigger page with property-editor placeholders 2021-12-08 12:58:12 -06:00