CreateSoundField#
- class ansys.sound.core.signal_utilities.CreateSoundField(data=array([], dtype=float64), sampling_frequency=44100.0, unit='Pa')#
Creates a PyAnsys Sound field.
This class creates a DPF field with correct PyAnsys Sound metadata from a vector.
Class instantiation takes the following parameters.
- Parameters:
- data
numpy.ndarray
, default:np.empty
(0) Data to use to create the PyAnsys Sound field as a 1D NumPy array.
- sampling_frequency
float
, default: 44100.0 Sampling frequency of the data.
- unit
str
, default: “Pa” Unit of the data.
- data
Methods
Convert a DPF fields container to a NumPy array.
Get the data as a DPF field.
Get the data as a NumPy array.
Plot the resulting signals in a single figure.
Create the PyAnsys Sound field.
Attributes
Data to store in the created DPF field.
Sampling frequency in Hz of the data.
Unit of the data to store.