ZeroPad#

class ansys.sound.core.signal_utilities.ZeroPad(signal=None, duration_zeros=0.0)#

Adds zeros to the end of a 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

Get the sampling frequency.

ZeroPad.signal

Signal.