mirror of
https://github.com/Ardour/ardour.git
synced 2025-12-07 15:25:01 +01:00
Minor cleanup (don't set pulse twice in Region::set_position()).
This commit is contained in:
parent
0b50945484
commit
8ae0c1b36c
1 changed files with 2 additions and 3 deletions
|
|
@ -596,9 +596,8 @@ Region::set_position (framepos_t pos, int32_t sub_num)
|
|||
if (sub_num == 0) {
|
||||
set_position_internal (pos, true, 0);
|
||||
} else {
|
||||
double beat = _session.tempo_map().exact_beat_at_frame (pos, sub_num);
|
||||
_beat = beat;
|
||||
_pulse = _session.tempo_map().exact_qn_at_frame (pos, sub_num) / 4.0;
|
||||
_beat = _session.tempo_map().exact_beat_at_frame (pos, sub_num);
|
||||
/* will set pulse accordingly */
|
||||
set_position_internal (pos, false, sub_num);
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue