pyampact.symbolicUtils.truncate_and_scale_onsOffsList
- pyampact.symbolicUtils.truncate_and_scale_onsOffsList(onsOffsList, target_length)[source]
Scale and truncate onsOffsList to match the target_length, adjusting values proportionally.
Parameters: onsOffsList (list of lists): List containing [ONSET_SEC, OFFSET_SEC] pairs. target_length (int): Desired length of the output list.
Returns: list of lists: Scaled and truncated onsOffsList.