Printing bar numbers with changing regular intervals

Using the set-bar-number-visibility context function, bar number intervals can be changed.