more debug information

This commit is contained in:
Paul Davis 2023-04-16 10:33:48 -06:00
parent d66f3e7c9d
commit 23a9ce4651
2 changed files with 8 additions and 1 deletions

View File

@ -3667,6 +3667,7 @@ MappingTwistDrag::motion (GdkEvent* event, bool first_move)
const double scaling_factor = 0.4 * (spp / 1500.);
delta += scaling_factor * pixel_distance;
std::cerr << "pixels " << pixel_distance << " spp " << spp << " SF " << scaling_factor << " delta = " << delta << std::endl;
map->twist_tempi (prev, focus, next, initial_npm + delta);
_editor->mid_tempo_change (Editor::MappingChanged);

View File

@ -2961,7 +2961,9 @@ Editor::choose_mapping_drag (ArdourCanvas::Item* item, GdkEvent* event)
BBT_Argument bbt = map->bbt_at (pointer_time);
bbt = BBT_Argument (bbt.reference(), bbt.round_to_beat ());
if (tempo.bbt() < bbt) {
if (tempo.bbt() != bbt) {
std::cerr << "ADD TEMPO MARKER " << bbt << " != " << tempo.bbt() << "\n";
/* Add a new tempo marker at the nearest beat point
(essentially the snapped grab point for the drag), so that
@ -2975,8 +2977,12 @@ Editor::choose_mapping_drag (ArdourCanvas::Item* item, GdkEvent* event)
focus = &added;
reset_tempo_marks ();
map->dump (std::cerr);
} else {
std::cerr << "USE TEMPO MARKER\n";
before = const_cast<TempoPoint*> (map->previous_tempo (tempo));
if (!before) {