change grid display when grid is bars
All lines are shown, all lines are numbered, all have same visual density
This commit is contained in:
parent
8426bb3aaf
commit
99817e1170
@ -1506,22 +1506,13 @@ Editor::metric_get_bbt (std::vector<ArdourCanvas::Ruler::Mark>& marks, gdouble l
|
|||||||
// default:
|
// default:
|
||||||
bbt_nmarks = bbt_bars + 2;
|
bbt_nmarks = bbt_bars + 2;
|
||||||
for (n = 0, i = grid.begin(); i != grid.end() && n < bbt_nmarks; ++i) {
|
for (n = 0, i = grid.begin(); i != grid.end() && n < bbt_nmarks; ++i) {
|
||||||
if ((*i).is_bar()) {
|
if ((*i).bbt().is_bar()) {
|
||||||
if ((*i).bar % 4 == 1) {
|
snprintf (buf, sizeof(buf), "%" PRIu32, (*i).bbt().bars);
|
||||||
snprintf (buf, sizeof(buf), "%" PRIu32, (*i).bar);
|
mark.style = ArdourCanvas::Ruler::Mark::Major;
|
||||||
mark.style = ArdourCanvas::Ruler::Mark::Major;
|
mark.label = buf;
|
||||||
} else {
|
mark.position = (*i).sample (sr);
|
||||||
buf[0] = '\0';
|
marks.push_back (mark);
|
||||||
if ((*i).bar % 4 == 3) {
|
++n;
|
||||||
mark.style = ArdourCanvas::Ruler::Mark::Minor;
|
|
||||||
} else {
|
|
||||||
mark.style = ArdourCanvas::Ruler::Mark::Micro;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
mark.label = buf;
|
|
||||||
mark.position = (*i).sample;
|
|
||||||
marks.push_back (mark);
|
|
||||||
++n;
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
break;
|
break;
|
||||||
|
Loading…
Reference in New Issue
Block a user