CropSignal#

class ansys.sound.core.signal_utilities.CropSignal(signal=None, start_time=0.0, end_time=0.0)#

Crops a signal.

Class instantiation takes the following parameters.

Parameters:
signalFieldsContainer | Field, default: None

Signal to resample as a DPF field or fields container.

start_timefloat, default: 0.0

Start time of the part to crop in seconds.

end_timefloat, default: 0.0

End time of the part to crop in seconds.

Methods

CropSignal.convert_fields_container_to_np_array(fc)

Convert a DPF fields container to a NumPy array.

CropSignal.get_output()

Get the cropped signal as a DPF fields container.

CropSignal.get_output_as_nparray()

Get the cropped signal as a NumPy array.

CropSignal.plot()

Plot the resulting signals in a single figure.

CropSignal.process()

Crop the signal.

Attributes

CropSignal.end_time

End time of the part to crop in s.

CropSignal.signal

Input signal as a DPF field or fields container.

CropSignal.start_time

Start time of the part to crop in s.