SourceBroadbandNoiseTwoParameters#
- class ansys.sound.core.sound_composer.SourceBroadbandNoiseTwoParameters(file='', source_control1=None, source_control2=None)#
Sound Composer’s broadband noise source with two parameters class.
This class creates a broadband noise source with two parameters for the Sound Composer. A broadband noise source with two parameters is used to generate a sound signal from a given broadband noise and its two source controls. The broadband noise consists of a series of noise spectra, each corresponding to a pair of control parameter values. The source controls contain each a control parameter’s values over time.
Class instantiation takes the following parameters.
- Parameters:
- file
str
, default: “” Path to the broadband noise with two parameters file. Supported files are text files with the header AnsysSound_BBN_MultipleParameters.
- source_control1
SourceControlTime
, default:None
First Source control, consisting of the control parameter values over time, to use when generating the sound from this source.
- source_control2
SourceControlTime
, default:None
Second source control, consisting of the control parameter values over time, to use when generating the sound from this source.
- file
Methods
SourceBroadbandNoiseTwoParameters.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.
SourceBroadbandNoiseTwoParameters.load_source_bbn_two_parameters
(file)Load the broadband noise source with two parameters data from a file.
Plot the resulting signal in a figure.
Plot the source control(s) in a figure.
Generate the sound of the broadband noise source with two parameters.
Attributes
Source data for broadband noise source with two parameters.
First source control for broadband noise source with two parameters.
Second source control for broadband noise source with two parameters.