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 a filter. A tracks allows the synthesis of the source’s sound, filtered with its associated filter.
Class instantiation takes the following parameters.
- Parameters:
- name
str
, default: “” Name of the track.
- gain
float
, default: 0.0 Gain of the track, in dB.
- source
SourceSpectrum
,SourceBroadbandNoise
,SourceBroadbandNoiseTwoParameters
,SourceHarmonics
,SourceHarmonicsTwoParameters
orSourceAudio
, default:None
Source of the track.
- filter
Filter
, default: None, Filter of the track.
- name
Methods
Convert a DPF fields container to a NumPy array.
Get the generated signal as a DPF field.
Get the generated signal as a NumPy array.
Plot the resulting signal in a figure.
Track.process
([sampling_frequency])Generate the signal of the track, using the current source and filter.
Attributes
Filter object of the track.
Track gain in dB.
Name of the track.
Source object associated with the track.