SourceBroadbandNoise#
- class ansys.sound.core.sound_composer.SourceBroadbandNoise(file='', source_control=None)#
Sound Composer’s broadband noise source class.
This class creates a broadband noise source for the Sound Composer. A broadband noise source is used to generate a sound signal from a given broadband noise and its source control. The broadband noise consists of a series of noise spectra, each corresponding to a control parameter value. The source control contains the control parameter values over time.
Class instantiation takes the following parameters.
- Parameters:
- file
str
, default: “” Path to the broadband noise file. Supported files are text files with the header AnsysSound_BBN. If left empty, the broadband noise source is not loaded.
- source_control
SourceControlTime
, default:None
Source control, consisting of the control parameter values over time, to use when generating the sound from this source.
- file
Methods
SourceBroadbandNoise.convert_fields_container_to_np_array
(fc)Convert a DPF fields container to a NumPy array.
Get the generated sound as a DPF field.
Get the generated sound as a NumPy array.
Source control verification function.
Load the broadband noise source data from a file.
Plot the resulting signal in a figure.
Plot the source control(s) in a figure.
SourceBroadbandNoise.process
([...])Generate the sound of the broadband noise source.
Attributes
Broadband noise source data, as a DPF fields container.
Broadband noise source control.