ZeroPad#
- class ansys.sound.core.signal_utilities.ZeroPad(signal=None, duration_zeros=0.0)#
Adds zeros to the end of a signal.
Class instantiation takes the following parameters.
- Parameters:
- signal
Field
|FieldsContainer
, default:None
Signal to add zeros to the end of as a DPF field or fields container.
- duration_zerosfloat: default: 0.0
Duration in seconds of the zeros to append to the input signal.
- signal
Methods
Convert a DPF fields container to a NumPy array.
Get the zero-padded signal as a DPF fields container or field.
Get the zero-padded signal as a NumPy array.
Plot the resulting signals in a single figure.
Pad the end of the signal with zeros.
Attributes
Duration in s of the zero-padding at the end of the signal.
Input signal as a DPF field or fields container.