|
99c8c0b658
|
initial, tentative, untested implementation of TempoMap::remove_time()
|
2021-08-13 12:51:35 -06:00 |
|
|
991a7bf8a7
|
add TempoMap::count_bars() to allow bar counting even with position (BBT) markers in the tempo map
This just reuses the algorithm in TempoMap::get_grid() by asking for just the bar grid, and counting the
size of the result
|
2021-08-13 12:51:35 -06:00 |
|
|
0ab2308523
|
reimplement TempoMap::midi_clock_beat_at_or_after()
|
2021-08-13 12:51:35 -06:00 |
|
|
0b1d44f422
|
temporal: fix timepos_t::decrement() to not switch domains
|
2021-08-13 12:51:35 -06:00 |
|
|
daad7b74ae
|
libtemporal: rename TempoMap::full_duration_at() to ::convert_duration() and reorder parameters
|
2021-08-13 12:51:34 -06:00 |
|
|
7773fc5b64
|
libtemporal: TempoMap::full_duration_at() returns correct value for unchanged time domain call
|
2021-08-13 12:51:34 -06:00 |
|
|
b7bc3b1947
|
libtemporal: expand comment to explain more about what TempoMap::full_duration_at() does
|
2021-08-13 12:51:34 -06:00 |
|
|
c0c3fd07c9
|
libtemporal: add timecnt_t::end() and timecnt_t::set_time_domain()
|
2021-08-13 12:51:34 -06:00 |
|
|
beaa1b3fcb
|
be sure to check the return from the RCU mgr ::update method() inside TempoMap::update()
|
2021-08-13 12:51:34 -06:00 |
|
|
0877500437
|
libtemporal: don't compile file removed (too early) in a55df1ad6
|
2021-08-13 12:51:34 -06:00 |
|
|
5b3c5d3782
|
libtemporal: fix implementation of timepos_t::max() to avoid overflow for Beats time
|
2021-08-13 12:51:34 -06:00 |
|
|
b2510c0da2
|
libardour: use appropriate method to set AutomationList time domain from ::set_state()
|
2021-08-13 12:51:34 -06:00 |
|
|
2049cc44b2
|
libtemporal: tweak: don't both with local tempo map ptr
|
2021-08-13 12:51:34 -06:00 |
|
|
433a9ebe48
|
libtemporal: catch attempts to convert max audio time values into beats, early
|
2021-08-13 12:51:34 -06:00 |
|
|
d576fc8ca9
|
libtemporal: when computing Beats from a ticks value, do not try to pass potentially overflowing ticks value
|
2021-08-13 12:51:34 -06:00 |
|
|
1af74f7398
|
libtemporal: correct the definition of std::numeric_limits<Beats>::max(). Comment in code contains details.
|
2021-08-13 12:51:34 -06:00 |
|
|
bbb3ca01fa
|
libtemporal: remove several BBT-related methods that are not used and problematic for BBT/position markers
|
2021-08-13 12:51:34 -06:00 |
|
|
0667a50a11
|
libtemporal: improve TempoMap::get_grid()'s decision making about what bar points to include when bar_mod == 1
|
2021-08-13 12:51:34 -06:00 |
|
|
877e896caf
|
libtemporal: TempoMap::apply_with_metrics() needs to use *all* metrics (inc. MusicTimePoints)
|
2021-08-13 12:51:34 -06:00 |
|
|
a49ed5505e
|
libtemporal: no need for a default MusicTimePoint in the tempo map (default tempo+meter points serve same role)
|
2021-08-13 12:51:34 -06:00 |
|
|
34a3db7eaa
|
use existing (inline) method for updating thread local tempo map after update (avoid code duplication)
|
2021-08-13 12:51:34 -06:00 |
|
|
901f593af5
|
avoid unnecessary extra fetch of thread-local tempo map after undo/redo
|
2021-08-13 12:51:34 -06:00 |
|
|
cffc25a11c
|
libtemporal: make TempoMap::metric_at() variants use all Points, to account for music time points as well as explicit tempo/meter points
|
2021-08-13 12:51:34 -06:00 |
|
|
c2401c3097
|
libtemporal: redesign TempoMap::get_grid() to iterate over _points rather than separated _tempos and _meters
|
2021-08-13 12:51:34 -06:00 |
|
|
8124bec5a1
|
libtemporal: fix XML node structure for MusicTimePoint
|
2021-08-13 12:51:34 -06:00 |
|
|
1035f9bd62
|
libtemporal: fix crash caused by thinko
|
2021-08-13 12:51:34 -06:00 |
|
|
388fa1b894
|
libtemporal: when removing tempos/meters/musictime points, remove them from TempoMap::_points also
|
2021-08-13 12:51:34 -06:00 |
|
|
982ccec7ab
|
libtemporal: when adding tempos/meters/musictime points, add them to TempoMap::_points also
|
2021-08-13 12:51:34 -06:00 |
|
|
b43eca15b0
|
Revert "libtemporal: the TempoMap::_points list serves no purpose, so remove it"
This reverts commit edc93fc62b6a36949b3cc37aee333904bc6b97f0.
|
2021-08-13 12:51:34 -06:00 |
|
|
d6d0eb0d9e
|
libtemporal: MusicTimePoint now IS-A Point,Tempo and Meter, all at once
|
2021-08-13 12:51:34 -06:00 |
|
|
cc0d065443
|
libtemporal: preparations to solve upcoming diamond inheritance problem
|
2021-08-13 12:51:34 -06:00 |
|
|
4e6c06bc95
|
libtemporal: add maybe-not-required operator>> for timeline types
|
2021-08-13 12:51:34 -06:00 |
|
|
ce82efafcf
|
libtemporal: slightly improve output from conversion statistics
|
2021-08-13 12:51:34 -06:00 |
|
|
ffc9ab66b5
|
libtemporal: remove TempoMap::metric_at_locked() methods
There is no lock anymore, all modifications are done via RCU
|
2021-08-13 12:51:33 -06:00 |
|
|
c9d3381935
|
libtemporal: increase DEBUG_TRACE utility for ::get_grid() and related matters
|
2021-08-13 12:51:33 -06:00 |
|
|
bd1b6dcda3
|
libtemporal: start making tempo map work with non-monotonic BBT "bar times" present
|
2021-08-13 12:51:33 -06:00 |
|
|
c8175b7c49
|
libtemporal: add new constructors for MusicTimePoint and MeterPoint
|
2021-08-13 12:51:33 -06:00 |
|
|
f86395688e
|
libtemporal: Beats::round_to_subdivision() was incorectly folding the "beats" part of the value back into the answer.
The "beats" value is already implicit in the "ticks" we actually do the math with
|
2021-08-13 12:51:33 -06:00 |
|
|
97a3469972
|
use new Tempo API in two places where Tempo is explicitly constructed
|
2021-08-13 12:51:33 -06:00 |
|
|
b8a7de43b6
|
libtemporal: change Tempo API to ensure that the correct construtor is called
This could be probably be improved with an even more distinct ramped/non-ramped API
|
2021-08-13 12:51:33 -06:00 |
|
|
c32de2355e
|
extra DEBUG_TRACE statement in tempo map grid computation
|
2021-08-13 12:51:33 -06:00 |
|
|
25375ee6f4
|
add timepos_t::set_time_domain() to potentially change time domains
|
2021-08-13 12:51:33 -06:00 |
|
|
eccfc1db10
|
libtemporal: fix grid generation if we pass additional markers before reaching the end
|
2021-08-13 12:51:32 -06:00 |
|
|
3017cd0c1f
|
libtemporal: remove unnecessary debug output
|
2021-08-13 12:51:32 -06:00 |
|
|
a9bf1cff81
|
libtemporal: add and use TempoMap::superclocks_per_grid_at() to return superclock duration of a measure/bar division. This corrects the results of ::get_grid()
|
2021-08-13 12:51:32 -06:00 |
|
|
7f19f13ea9
|
libtemporal: superclocks_per_bar/grid() do not need a sample rate argument, so remove it
|
2021-08-13 12:51:32 -06:00 |
|
|
e187752771
|
libtemporal: use DEBUG::Grid inside TempoMap::get_grid() for slightly easier debugging
|
2021-08-13 12:51:32 -06:00 |
|
|
8f147f273a
|
add new debug bit for Temporal grid stuff
|
2021-08-13 12:51:32 -06:00 |
|
|
7ec5af0b60
|
libtemporal: fix/improve TempoMap::move_meter() for audio-time case
|
2021-08-13 12:51:32 -06:00 |
|
|
84f53e3dc9
|
libtemporal: return value from function
|
2021-08-13 12:51:32 -06:00 |
|