pyampact.symbolicUtils.addTieBreakers

pyampact.symbolicUtils.addTieBreakers(partList)[source]

Add tie-breaker level to index. Changes parts in partList in place and returns None.

This is particularly useful to disambiguate the order of events that happen at the same offset, which is an issue most commonly encountered with grace notes since they have no duration. This is needed in several Score methods because you cannot append multiple pandas series (parts) if they have non-unique indices. So this method is needed internally to be able to use pd.concat to turn a list of series into a single dataframe if any of those series has a repeated value in its index.

Parameters:

partList – A list of pandas Series, each representing a part in the score.

Returns:

None