Resample#

class ansys.sound.core.signal_utilities.Resample(signal=None, new_sampling_frequency=44100.0)#

Resamples a signal.

Class instantiation takes the following parameters.

Parameters:
signalField | FieldsContainer, default: None

Signal to resample as a DPF field or fields container.

new_sampling_frequencyfloat, default: 44100.0

New sampling frequency to use.

Methods

Resample.convert_fields_container_to_np_array(fc)

Convert a DPF fields container to a NumPy array.

Resample.get_output()

Get the resampled signal as a DPF fields container.

Resample.get_output_as_nparray()

Get the resampled signal as a NumPy array.

Resample.plot()

Plot the resulting signals in a single figure.

Resample.process()

Resample the signal.

Attributes

Resample.new_sampling_frequency

New sampling frequency in Hz.

Resample.signal

Input signal as a DPF field or fields container.