PointsGroup
points.tiers.PointsGroup(self, tiers=[SequencePointTier()])
A collection of point tiers PointsGroups have all the same methods and attributes as TierGroupMixins and WithinMixins
Parameters
| Name | Type | Description | Default |
|---|---|---|---|
tiers |
list[SequencePointTier] | PointsGroup | A list of SequencePointTiers | [SequencePointTier()] |
Methods
| Name | Description |
|---|---|
| get_nearest_points_index | Get indicies of nearest point |
| shift | Shift the times of all points within |
get_nearest_points_index
points.tiers.PointsGroup.get_nearest_points_index(time)
Get indicies of nearest point
Parameters
| Name | Type | Description | Default |
|---|---|---|---|
time |
float | time from which the nearest index should be returned. | required |
Returns
| Type | Description |
|---|---|
| list | A list of indices |
shift
points.tiers.PointsGroup.shift(increment)
Shift the times of all points within the PointsGroup by the increment size
Parameters
| Name | Type | Description | Default |
|---|---|---|---|
increment |
float | The time increment by which to shift the points within the PointsGroup. Could be positive or negative | required |
Reuse
GPLv3