74c4ca3e52
Reduce reliance on boost - the hard part
...
the rest from `tools/convert_boost.sh`.
* replace boost::function, boost::bind with std::function and std::bind.
This required some manual fixes, notably std::placeholders,
some static_casts<>, and boost::function::clear -> = {}.
2024-10-19 03:47:21 +02:00
16dfb95617
tempo/meter edits: no position fields if marker is part of a BBT marker
2023-08-02 15:23:43 -06:00
6319980746
Fix TempoDialog port-list when devices are hotplugged
2023-06-13 17:03:27 +02:00
05c29e25f9
reorder tempo dialog contents, provide non-presented var to control focus behavior
2023-06-12 18:00:21 -06:00
36056597ce
GUI: use new MidiPort::set_tracer API
2023-06-04 01:15:14 +02:00
d16c5d69ed
Prepare GUI for MIDI trace API update
2023-06-04 01:15:08 +02:00
bcafa3d6aa
Tempo dialog is modal, grab focus from parent
2023-05-14 20:42:31 +02:00
b35518e212
switch from boost::{shared,weak}_ptr to std::{shared,weak}_ptr
...
This is mostly a simple lexical search+replace but the absence of operator< for
std::weak_ptr<T> leads to some complications, particularly with Evoral::Sequence
and ExportPortChannel.
2023-03-24 14:19:15 -06:00
2c7bfa9ead
require use of BBT_Argument as both parameter and return type from most methods (GUI edition)
2023-02-15 16:02:56 -07:00
78ec9294e1
TempoDialog: MIDI port fixes
...
* hide TempoTap MIDI port
* fall back to port-name (without client name) if pretty-name
is unset.
* use namespace
2022-12-31 02:53:12 +01:00
54e1827e79
Allow to tap-tempo using a MIDI keyboard
2022-12-31 00:07:09 +01:00
2ec6d45d6d
temporal: remove the concept of a time domain for the tempo map (GUI edition)
2022-05-24 17:10:25 -06:00
Mads Kiilerich
5bf088e8d1
gtk2_ardour: use set_can_focus() on Gtk::Button
...
The code was calling the Gtk::Widget::can_focus() getter as on odd
statement without side effects.
It seems like it meant to call set_can_focus, and thus prepare for
actually grabbing the focus in the next line.
2022-04-08 21:11:07 +02:00
Mads Kiilerich
17fafc376b
gtkmm: use ALIGN_END instead of deprecated Gtk::AlignmentEnum::ALIGN_RIGHT
2022-04-08 21:11:06 +02:00
Mads Kiilerich
2aa72891f3
gtkmm: use ALIGN_START instead of deprecated Gtk::AlignmentEnum::ALIGN_LEFT
2022-04-08 21:11:06 +02:00
7cb7d83bb8
Cont'd "meter/time-signature" disambiguation
2022-04-05 19:26:01 +02:00
7e10061d16
Disambiguate "Meter" use "Time Signature for music meter
...
In general we should use
* "meter": signal level meter
* "time-signature": music meter / metrum
2022-04-05 18:56:10 +02:00
5f3ad2cde9
follow new const requirements associated with Meter/Tempo
2021-08-13 12:51:35 -06:00
b5e0bce101
tempo dialog should use integer notes types, not double
...
The days of "it's in Pi" are over.
2021-08-13 12:51:32 -06:00
2a6b2dfa7c
cease using BarTime for anything
2021-08-13 12:51:31 -06:00
3c00fab75e
remove/hide Session::tempo_map() and use TempoMap::use() instead (thread local shared ptr) (GUI edition)
2021-08-13 12:51:30 -06:00
f0d055ad4d
more updates for new tempo map API
2021-08-13 12:51:30 -06:00
749a49c278
incorporating new tempo map API
2021-08-13 12:51:29 -06:00
f67029bd02
random commit to facilitate trivial move of work from laptop back to main system
2021-08-13 12:51:29 -06:00
2a08e4bdaa
continued work on timeline types conversion. in theory, just editor_ops.cc remains
2021-08-13 12:51:29 -06:00
f4490f54c5
change Timecode::BBT_Time to use Temporal namespace, plus a couple of other minor changes to enable compilation
...
This still uses the tempo map object in libs/ardour, not the new one in libs/temporal, and isn't likely to be functional
(though it could be)
2021-08-13 12:51:28 -06:00
7cbecaedff
improve GUI behavior of the tempo dialog by preselecting the start bpm text field
...
most common user action will be: show dialog, type keys, press return. This works now.
2021-04-19 16:13:38 -06:00
4050ca5633
Update GPL boilerplate and (C)
...
Copyright-holder and year information is extracted from git log.
git history begins in 2005. So (C) from 1998..2005 is lost. Also some
(C) assignment of commits where the committer didn't use --author.
2019-08-03 15:53:15 +02:00
30b087ab3d
globally change all use of "frame" to refer to audio into "sample".
...
Generated by tools/f2s. Some hand-editing will be required in a few places to fix up comments related to timecode
and video in order to keep the legible
2017-09-18 12:39:17 -04:00
Thomas Brand
63ea7b6516
NO-OP whitespace (updated GH PR #357 )
2017-07-01 19:28:26 +02:00
ed4d17a8ff
Update Tempo Tapping:
...
* Allow tap with keyboard (Space, Enter)
* Ignore double-clicks (2nd rapid event skewed calculation)
2017-05-04 16:13:10 +02:00
nick_m
30dd692d13
rework tempo dialog formatting, add end bpm entry.
2017-03-07 03:59:42 +11:00
nick_m
bd8ab472f5
tempo dialog uses three decimal places in numeric entry.
2017-02-07 23:31:40 +11:00
nick_m
59daffea1d
rework snap
...
snap now fills in a struct (MusicFrame) which contins a snapped frame
along with a music divisor.
this gives useful information wrt magnetic snap which may or may not
have rounded to an exact musical position.
region position may now be set musically (using quarter notes for now).
this patch fixes several problems in the current code:
- dragging a list of music-locked regions now maintains correct
musical offsets within the list.
- splitting regions using magnetic snap works correctly (#7192 )
- cut drag should now work correctly with magnetic snap.
- musical length of split midi regions is no longer frame based.
2017-02-04 22:57:36 +11:00
ca9caa0394
Tweak spacings and layout of the Tempo+Meter dialogs.
2017-01-05 14:50:57 -06:00
nick_m
fb91e62d4b
tempo dialog disallows changing bbt position of a meter-locked tempo.
2017-01-06 02:56:01 +11:00
nick_m
3c3cdd1cbe
tempo dialog shows note type on first row where applicable.
2016-12-29 03:44:19 +11:00
nick_m
5f94259075
show all parameters when adding a meter via the tempo dialog.
2016-12-19 04:15:46 +11:00
nick_m
34e41a3ca6
rename MetricSection movable -> initial, but of course initial is !movable..
2016-12-12 02:07:00 +11:00
nick_m
33e95a1577
rename Tempo _beats_per_minute to _note_types_per_minute, provide pulse helpers.
...
- adds quarter_notes_per_minute(), note_divisions_per_minute (double)
pulses_per_minute() and frames_per_quarter_note()
- this should be a no-op except for the use of tempo by
the vst callback which definitely uses quarter notes per minute.
- the XML node for TempoSection named 'beats-per-minute'
has been renamed.
2016-11-11 03:37:08 +11:00
cf52d6e4b4
enough with umpteen "i18n.h" files. Consolidate on pbd/i18n.h
2016-07-14 14:45:23 -04:00
nick_m
34c9ac9dd7
Tempo ramps - rename bbt_time() -> bbt_at_frame(), frame_time() -> frame_at_bbt()
2016-05-27 23:38:17 +10:00
nick_m
baf8f37967
Tempo ramps - rename meter_at() -> meter_at_frame() & make the ticker slightly more efficient.
2016-05-27 23:38:17 +10:00
nick_m
8f3bc6f809
Tempo ramps - rename tempo_at() -> tempo_at_frame().. 3 decimals for the audioclock tempo display.
2016-05-27 23:38:17 +10:00
nick_m
74db6f6ad6
Tempo rampos -reorder tempo dialog.
2016-05-27 23:38:14 +10:00
nick_m
b4fce62651
Tempo ramps - newline fix.
2016-05-27 23:38:14 +10:00
nick_m
a117960480
Tempo ramps - first tempo and meter are always audio locked wrt gui.
...
- fixes some gtk warnings as well
2016-05-27 23:38:14 +10:00
nick_m
dabed0672d
Tempo ranps - fix compilation
2016-05-27 23:38:14 +10:00
nick_m
3d07cd79e1
Tempo ramps - api change, remove some code.
2016-05-27 23:38:13 +10:00
nick_m
b415b59f79
Tempo ramps - respect tempo note type and meter note divisor correctly.
...
- tempo and meter position is now pulse-based,
although meter still has a beat for convenience.
2016-05-27 23:38:11 +10:00