CreateSignalField#
- class ansys.sound.core.signal_utilities.CreateSignalField(data=array([], dtype=float64), sampling_frequency=44100.0, unit='Pa')#
Create a PyAnsys Sound field containing a time-domain signal.
This class creates a DPF field from a series of time-domain - typically acoustic - signal samples.
Class instantiation takes the following parameters.
- Parameters:
- data
numpy.ndarray, default:np.empty(0) Time-domain signal data in the form of a 1D NumPy array.
- sampling_frequency
float, default: 44100.0 Sampling frequency of the data, in Hz.
- unit
str, default: “Pa” Unit of the data.
- data
Methods
Get the created time-domain signal DPF field.
Get the time-domain signal data as a NumPy array.
Plot the resulting signals in a single figure.
Create the PyAnsys Sound signal field.
Attributes
Time-domain signal data in the form of a 1D NumPy array.
Sampling frequency in Hz of the data.
Unit of the data to store.