midi clock: provide option to quantize incoming BPM values

This commit is contained in:
Paul Davis 2023-02-23 12:15:26 -07:00
parent dbd779bf85
commit 27205c7639
2 changed files with 5 additions and 3 deletions

View file

@ -843,6 +843,7 @@ TempoMap::add_meter (MeterPoint* mp)
void
TempoMap::change_tempo (TempoPoint & p, Tempo const & t)
{
std::cerr << "overwrite " << ((Tempo*)&p)->note_types_per_minute() << " with " << t.note_types_per_minute() << std::endl;
*((Tempo*)&p) = t;
reset_starting_at (p.sclock());
}