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:
signalField | 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.

Methods

ZeroPad.convert_fields_container_to_np_array(fc)

Convert a DPF fields container to a NumPy array.

ZeroPad.get_output()

Get the zero-padded signal as a DPF fields container or field.

ZeroPad.get_output_as_nparray()

Get the zero-padded signal as a NumPy array.

ZeroPad.plot()

Plot the resulting signals in a single figure.

ZeroPad.process()

Pad the end of the signal with zeros.

Attributes

ZeroPad.duration_zeros

Duration in s of the zero-padding at the end of the signal.

ZeroPad.signal

Input signal as a DPF field or fields container.