SourceControlTime#

class ansys.sound.core.sound_composer.SourceControlTime(file_str='')#

Sound Composer’s time source control class.

This class stores the source control, that is the control parameter values over time, used by the Sound Composer to generate a sound from a BBN or harmonic source.

Class instantiation takes the following parameters.

Parameters:
file_strstr, default: “”

Path to the control data file (WAV format or text format with header AnsysSound_SoundSamples).

Methods

SourceControlTime.convert_fields_container_to_np_array(fc)

Convert a DPF fields container to a NumPy array.

SourceControlTime.get_output()

Get output.

SourceControlTime.get_output_as_nparray()

Get output as a NumPy array.

SourceControlTime.load_from_text_file(file_str)

Load control data from a text file.

SourceControlTime.load_from_wave_file(file_str)

Load control data from a WAV file.

SourceControlTime.plot()

Plot the control profile in a figure.

SourceControlTime.process()

Process inputs.

Attributes

SourceControlTime.control

Control profile (control parameter values over time).