AudioVisualiserComponent: change scrolling behaviour

Hi there,

how can i change AudioVisualiserComponent in order that the painted wave is not endlessly scrolling but starts again if it reaches the end of the defined width?
I could think of defineable widths as 1/4 bar, 1 bar, 2 bars, etc. where the chosen bar type is taken into consideration as well as the bpm set in the DAW.

Thanks a lot.