mirror of
https://github.com/Ardour/ardour.git
synced 2026-01-04 04:39:33 +01:00
temporal: provide TempoMap::replace_tempo()
This commit is contained in:
parent
033b4c5152
commit
ae36f8e445
2 changed files with 10 additions and 0 deletions
|
|
@ -814,9 +814,17 @@ TempoMap::change_tempo (TempoPoint & p, Tempo const & t)
|
|||
reset_starting_at (p.sclock());
|
||||
}
|
||||
|
||||
void
|
||||
TempoMap::replace_tempo (TempoPoint const & old, Tempo const & t, timepos_t const & time)
|
||||
{
|
||||
remove_tempo (old);
|
||||
set_tempo (t, time);
|
||||
}
|
||||
|
||||
TempoPoint &
|
||||
TempoMap::set_tempo (Tempo const & t, BBT_Time const & bbt)
|
||||
{
|
||||
std::cerr << "ST with bbt = " << bbt << std::endl;
|
||||
return set_tempo (t, timepos_t (quarters_at (bbt)));
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue