fix 'snap to beat' havoc-causing misplaced bracket.
- should fix 7234
This commit is contained in:
parent
751662241a
commit
50fc9e0d0f
@ -3591,7 +3591,7 @@ TempoMap::exact_qn_at_frame_locked (const Metrics& metrics, const framepos_t& fr
|
|||||||
qn = floor (qn) + (floor (((qn - floor (qn)) * (double) sub_num) + 0.5) / sub_num);
|
qn = floor (qn) + (floor (((qn - floor (qn)) * (double) sub_num) + 0.5) / sub_num);
|
||||||
} else if (sub_num == 1) {
|
} else if (sub_num == 1) {
|
||||||
/* the gui requested exact musical (BBT) beat */
|
/* the gui requested exact musical (BBT) beat */
|
||||||
qn = pulse_at_beat_locked (metrics, (floor (beat_at_minute_locked (metrics, minute_at_frame (frame)) + 0.5)) * 4.0);
|
qn = pulse_at_beat_locked (metrics, (floor (beat_at_minute_locked (metrics, minute_at_frame (frame)) + 0.5))) * 4.0;
|
||||||
} else if (sub_num == -1) {
|
} else if (sub_num == -1) {
|
||||||
/* snap to bar */
|
/* snap to bar */
|
||||||
Timecode::BBT_Time bbt = bbt_at_pulse_locked (metrics, qn / 4.0);
|
Timecode::BBT_Time bbt = bbt_at_pulse_locked (metrics, qn / 4.0);
|
||||||
|
Loading…
Reference in New Issue
Block a user