pyampact.symbolicUtils.combineRests

pyampact.symbolicUtils.combineRests(col)[source]

Helper function for the notes method.

Combine consecutive rests in a given voice. Non-first consecutive rests will be removed.

Parameters:

col – A pandas Series representing a voice.

Returns:

The same pandas Series with consecutive rests combined.