carat.features.generate_tatum_grid

carat.features.generate_tatum_grid(beats, downbeats, n_tatums)[source]

Generate tatum temporal grid from time instants of the tactus beats.

A grid of tatum pulses is generated equally distributed within the given tactus beats. The grid is used to time quantize the feature signal to the rhythmic metric structure.

Parameters:
labels_time (np.ndarray) : time instants of the tactus beats
labels (list) : labels at the tactus beats (e.g. 1.1, 1.2, etc)
Returns:
tatum_time (np.ndarray) : time instants of the tatum beats