ToneToNoiseRatio#
- class ansys.sound.core.psychoacoustics.ToneToNoiseRatio(psd=None, frequency_list=None)#
Computes the ECMA 418-1/ISO 7779 tone-to-noise ratio (TNR).
This class computes the TNR on a power spectral density (PSD) following the ECMA 418-1 and ISO 7779 standards.
Methods
Convert a DPF fields container to a NumPy array.
Get the vector of the peaks' TNR values in dB.
Get the maximum TNR value in dB.
Get the number of tones.
Get TNR data as a generic data container.
Get TNR data in a tuple as a NumPy array.
Get the vector of the peaks' frequencies in Hz.
Get the vector of the peaks' higher-frequency limits in Hz.
Get the vector of the peaks' level values in dB SPL.
Get the vector of the peaks' lower-frequency limits in Hz.
Get a reference curve to compare the TNR with.
ToneToNoiseRatio.get_single_tone_info
(tone_index)Get the TNR information for a tone.
Plot the TNR for all identified peaks, along with the reference curve.
Compute the TNR.
Attributes
Get a list of the frequencies in Hz of the tones to calculate TNR for.
Power spectral density.