Commit graph

18433 commits

Author SHA1 Message Date
Paul Davis
5498c433ad fix incorrect lexical scope introduced during rebase conflict resolution 2021-08-13 12:51:36 -06:00
Paul Davis
029fb065b7 fix timeline type issues 2021-08-13 12:51:35 -06:00
Paul Davis
0e264ad2db fix timeline arithmetic operations 2021-08-13 12:51:35 -06:00
Paul Davis
12fb9608d9 fix some timeline type issues 2021-08-13 12:51:35 -06:00
Paul Davis
5f4fa2d9ea fix gap callback argument types at point of use 2021-08-13 12:51:35 -06:00
Paul Davis
0114516c82 add Playlist::remove_gaps() with nutempo timeline types 2021-08-13 12:51:35 -06:00
Paul Davis
8fca5796d6 fix declaration of Playlist::ripple_unlocked() (lost in rebase conflict resolution) 2021-08-13 12:51:35 -06:00
Paul Davis
6e7f9029ec fix types of Playlist member objects (lost in rebase conflict resolution) 2021-08-13 12:51:35 -06:00
Paul Davis
caba355012 Add required copy constructor for Temporal::Meter 2021-08-13 12:51:35 -06:00
Paul Davis
ba3fc66aa5 cleanup mess from manual rebase against master 2021-08-13 12:51:35 -06:00
Paul Davis
8cc54e5c7e fix use of timepos_t for locates after rebase with new transport API changes 2021-08-13 12:51:35 -06:00
Paul Davis
f749d4f03e fix rebase issue with positional math (we don't allow " - 1") 2021-08-13 12:51:35 -06:00
Paul Davis
38aa2560f3 libtemporal: remove unnecessary initialization 2021-08-13 12:51:35 -06:00
Paul Davis
f61adcd738 temporal: knarly template code to consolidate and rationalize duplicated methods 2021-08-13 12:51:35 -06:00
Paul Davis
5838bcbe7c clean up unsafe use of printf() by commenting it out 2021-08-13 12:51:35 -06:00
Paul Davis
5327cf7be7 allow the click points for the click to contain points before the start (gracefully) 2021-08-13 12:51:35 -06:00
Paul Davis
73ad70648d bump session file version 2021-08-13 12:51:35 -06:00
Paul Davis
585346ce56 libtemporal: fix many different issues with tempo ramps
API changes, ensuring omega is computed, saved, and restored, generic methods to get tempo/meter at a position, and lots more
2021-08-13 12:51:35 -06:00
Paul Davis
18e2c36648 libevoral: fix arguments to Sequencer::iterator::invalidate()
clang picked up the mismatch (gcc did not), which reflects a realization while working
on the nutempo2 branch that nothing ever used the old set<Notes> that was being passed
as an argument
2021-08-13 12:51:35 -06:00
Paul Davis
3076d22987 macOS 10.12 finally started defining CLOCK_{REALTIME,MONOTONIC} and I think this is the correct way to test for that 2021-08-13 12:51:35 -06:00
Paul Davis
3256350ef8 libtemporal: needs "OSX" pseudo-lib to pick up required macOS flags 2021-08-13 12:51:35 -06:00
Paul Davis
5895909188 libtemporal: remove unnecessary inclusion of pbd/compose.h from beats.h
this causes breakage in clangs ADL lookup of various operator<<() overloads
2021-08-13 12:51:35 -06:00
Paul Davis
a7535ae8aa clang knows that we cannot use printf() to print Evoral::Event::time() ...
(why doesn't gcc?)
2021-08-13 12:51:35 -06:00
Paul Davis
8c23d6955d new timeline types for AudioUnits and CoreAudioSource 2021-08-13 12:51:35 -06:00
Paul Davis
3170f880c2 stop clang from complaining about a missing return after a guaranteed assert() failure 2021-08-13 12:51:35 -06:00
Paul Davis
153164c803 remove debug output 2021-08-13 12:51:35 -06:00
Paul Davis
f721655916 libtemporal: to quote the matrix, there is no lock 2021-08-13 12:51:35 -06:00
Paul Davis
8d67be784a remove #ifdef'ed out initialization from session.cc (possible rebase leftover, but redundant no matter the origin 2021-08-13 12:51:35 -06:00
Paul Davis
bcca1ad289 minor fixups post-rebase 2021-08-13 12:51:35 -06:00
Paul Davis
bccdc95f32 libtemporal: fix logic for ::get_tempo_and_meter() if starting point is the timeline start 2021-08-13 12:51:35 -06:00
Paul Davis
1f8290f154 generalize repeated code into a template method, add lots of const-ness to facilitate this 2021-08-13 12:51:35 -06:00
Paul Davis
c5ecd14622 temporal: fix logic errors in setting up TempoMetric objects
will likely revisit this to avoid code-duplication and "optimize" traversal of _points list
2021-08-13 12:51:35 -06:00
Paul Davis
8bada4b5e1 remove public ::bbt_at (INTEGER) methods, because of superclock_t/samplepos_t confusion
libtemporal still needs ::bbt_at (superclock_t) fairly often so retain it as a private method, but public
interfaces take either Beats or timepos_t
2021-08-13 12:51:35 -06:00
Paul Davis
53e411c011 fix logic error in conditional 2021-08-13 12:51:35 -06:00
Paul Davis
6f2fdc2695 functioning loading of older tempo map XML data 2021-08-13 12:51:35 -06:00
Paul Davis
552484978c fix call to ::bbt_at() inside LV2 plugin 2021-08-13 12:51:35 -06:00
Paul Davis
092a454648 fix timepos_t::string_to (wrong argument to samples_to_superclock() 2021-08-13 12:51:35 -06:00
Paul Davis
445ad2e383 rearrange if/else logic to avoid NOTREACHED condition 2021-08-13 12:51:35 -06:00
Paul Davis
b84402f4f8 intial steps for adding legacy (v0-5) tempo map deserialization support 2021-08-13 12:51:35 -06:00
Paul Davis
344dd26788 improved DEBUG_TRACE statements for tempo map 2021-08-13 12:51:35 -06:00
Paul Davis
cd34695944 fix TempoMap::quarters_at_superclock (superclock_t) 2021-08-13 12:51:35 -06:00
Paul Davis
74ff3b22b8 fix TempoPoint::superclock_at(Beats) 2021-08-13 12:51:35 -06:00
Paul Davis
216945a89c move TempoMap::write_copy() into .cc file instead of .h 2021-08-13 12:51:35 -06:00
Paul Davis
ce3fb0507c change return type of Tempo::set_{ramped,clamped} and fix call sites 2021-08-13 12:51:35 -06:00
Paul Davis
99c8c0b658 initial, tentative, untested implementation of TempoMap::remove_time() 2021-08-13 12:51:35 -06:00
Paul Davis
af4ba1cc01 fix start, length/position for recorded MIDI regions
Note that we should really set the position value as part of the
length, but then Playlist::add_region() would need to drop its
second argument (position). Maybe in a future commit
2021-08-13 12:51:35 -06:00
Paul Davis
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
Paul Davis
0ab2308523 reimplement TempoMap::midi_clock_beat_at_or_after() 2021-08-13 12:51:35 -06:00
Paul Davis
b276254551 reimplement quantization without (much) floating point 2021-08-13 12:51:35 -06:00
Paul Davis
48e68de180 remove another NUTEMPO warning by actually setting region time domain 2021-08-13 12:51:35 -06:00