ApplyGain#

class ansys.sound.core.signal_utilities.ApplyGain(signal=None, gain=0.0, gain_in_db=True)#

Applies a gain to a signal.

Methods

ApplyGain.convert_fields_container_to_np_array(fc)

Convert a DPF fields container to a NumPy array.

ApplyGain.get_output()

Get the signal with a gain as a DPF fields container.

ApplyGain.get_output_as_nparray()

Get the signal with a gain as a NumPy array.

ApplyGain.plot()

Plot the resulting signals in a single figure.

ApplyGain.process()

Apply a gain to the signal.

Attributes

ApplyGain.gain

Gain value.

ApplyGain.gain_in_db

Flag indicating if the gain is in decibels (dB).

ApplyGain.signal

Signal.