remove debug output
This commit is contained in:
parent
b2e168e79e
commit
364c892c68
@ -3624,7 +3624,6 @@ MappingTwistDrag::motion (GdkEvent* event, bool first_move)
|
|||||||
const double scaling_factor = 0.4 * (spp / 1500.);
|
const double scaling_factor = 0.4 * (spp / 1500.);
|
||||||
|
|
||||||
delta += scaling_factor * pixel_distance;
|
delta += scaling_factor * pixel_distance;
|
||||||
std::cerr << "pixels " << pixel_distance << " spp " << spp << " SF " << scaling_factor << " delta = " << delta << std::endl;
|
|
||||||
|
|
||||||
if (_do_ramp) {
|
if (_do_ramp) {
|
||||||
map->ramped_twist_tempi (prev, focus, next, initial_focus_npm + delta); // was: PRE ... maybe we don't need 2 anymore?
|
map->ramped_twist_tempi (prev, focus, next, initial_focus_npm + delta); // was: PRE ... maybe we don't need 2 anymore?
|
||||||
|
@ -4217,7 +4217,7 @@ TempoMap::solve_ramped_twist (TempoPoint& earlier, TempoPoint& later)
|
|||||||
++cnt;
|
++cnt;
|
||||||
}
|
}
|
||||||
|
|
||||||
std::cerr << "that took " << cnt << " iterations to get to < 1 sample\n";
|
// std::cerr << "that took " << cnt << " iterations to get to < 1 sample\n";
|
||||||
|
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
@ -4309,9 +4309,6 @@ TempoMap::constant_twist_tempi (TempoPoint& prev, TempoPoint& focus, TempoPoint&
|
|||||||
* sample of its current position
|
* sample of its current position
|
||||||
*/
|
*/
|
||||||
|
|
||||||
std::cerr << "pre-iter\n";
|
|
||||||
dump (std::cerr);
|
|
||||||
|
|
||||||
if (!solve_constant_twist (focus, next)) {
|
if (!solve_constant_twist (focus, next)) {
|
||||||
prev = old_prev;
|
prev = old_prev;
|
||||||
focus = old_focus;
|
focus = old_focus;
|
||||||
@ -4338,25 +4335,15 @@ TempoMap::ramped_twist_tempi (TempoPoint& unused, TempoPoint& focus, TempoPoint&
|
|||||||
* to bail out because change is impossible.
|
* to bail out because change is impossible.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
std::cerr << "on entry\n";
|
|
||||||
dump (std::cerr);
|
|
||||||
std::cerr << "----------------------------\n";
|
|
||||||
|
|
||||||
TempoPoint old_focus (focus);
|
TempoPoint old_focus (focus);
|
||||||
|
|
||||||
/* set start tempo of prev tempo marker; we will iteratively solve for the required ramp value */
|
/* set start tempo of prev tempo marker; we will iteratively solve for the required ramp value */
|
||||||
focus.set_note_types_per_minute (tempo_value);
|
focus.set_note_types_per_minute (tempo_value);
|
||||||
|
|
||||||
std::cerr << "pre-iter\n";
|
|
||||||
dump (std::cerr);
|
|
||||||
|
|
||||||
if (!solve_ramped_twist (focus, next)) {
|
if (!solve_ramped_twist (focus, next)) {
|
||||||
focus = old_focus;
|
focus = old_focus;
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
std::cerr << "Twisted with " << tempo_value << std::endl;
|
|
||||||
dump (std::cerr);
|
|
||||||
}
|
}
|
||||||
|
|
||||||
void
|
void
|
||||||
|
Loading…
Reference in New Issue
Block a user