musicaiz.rhythm.ticks_per_bar

musicaiz.rhythm.ticks_per_bar(time_sig: str = '4/4', resolution: int = 96) Tuple[int, int][source]

This function calculates the ticks that correspond to one beat and bar.

Returns
ticks_beat: int

number of ticks in a beat of the bar.

ticks_bar: int

number of ticks in a bar.