pad

Contents

pad#

TrackData.pad(start_pad, end_pad)[source]#

Pads the track data along positional axes.

Parameters:
  • start_pad (int) – The amount of padding to add at the beginning.

  • end_pad (int) – The amount of padding to add at the end.

Return type:

TrackData

Returns:

A new TrackData object with padded values.

Raises:

ValueError – If start_pad or end_pad is not divisible by the resolution.