Track#
- class ansys.sound.core.sound_composer.Track(name='', gain=0.0, source=None, filter=None)#
 Sound Composer’s track class.
This class creates a track for the Sound Composer. A track is made of a source (including its source control) and an optional filter (which models the transfer from source to receiver).
A track allows the generation of the sound corresponding to the source, optionally filtered with the associated filter.
Class instantiation takes the following parameters.
- Parameters:
 - name
str, default: “” Name of the track.
- gain
float, default: 0.0 Gain to apply to the track’s generated sound, in dB.
- source
SourceSpectrum,SourceBroadbandNoise,SourceBroadbandNoiseTwoParameters,SourceHarmonics,SourceHarmonicsTwoParametersorSourceAudio, default:None Source of the track.
- filter
Filter, default:None Filter of the track.
- name
 
Methods
Get the track data as a generic data container.
Get the generated signal of the track as a DPF field.
Get the generated signal of the track, as a NumPy array.
Plot the resulting signal.
Track.process([sampling_frequency])Generate the signal of the track, using the source and filter currently set.
Set the track data from a generic data container.
Attributes
Filter object of the track.
Track gain in dB.
Name of the track.
Source object associated with the track.