A FreqSpectrum represents a sampled function in the frequency domain, in a polar form.
Create a new instance with the given magnitude and phase.
magnitude |
Frequency domain magnitude. If |
phase |
Frequency domain phase. If |
Create a new instance given a spectrum in complex form.
Create a new Array whose slots are filled with linearly spaced magnitudes to create a log shelf filter.1 See also: Signal: *logShelf.
size |
The size of the spectrum to return. |
freq0 |
The frequeny, at which to begin transition from gainDC to gainNy, in Hz. |
freq1 |
The frequeny, at which to end transition from gainDC to gainNy, in Hz. |
gainDC |
The gain at DC, in dB. |
gainNy |
The gain at Nyquist, in dB. |
sampleRate |
The sample rate, in Hz. |
Return a power-law spectrum. Magnitude at Nyquist is normalized to 1.
size |
The size of the spectrum to return. | ||||||||||||||||||
beta |
Power spectral density.
|
Return an Array of Higher Order Ambisonic signal (HOA) near-field effect (NFE), proximity radial filter spectra collected by Associated Legendre degree (ℓ).
size |
The size of the spectra to return. |
radius |
Radius, in meters. |
order |
Ambisonic order. |
sampleRate |
Sample rate, in Hz. |
speedOfSound |
Speed of sound, in meters per second. |
Offers FIR coefficients, equivalent to the IIR coefficients returned by NFECoeffs: -prox. Implemented as a frequency sampling design, with coefficients returned by HoaOrder: -proxWeights.
Return an Array of Higher Order Ambisonic signal (HOA) near-field effect (NFE), distance radial filter spectra collected by Associated Legendre degree (ℓ).
size |
The size of the spectra to return. |
radius |
Radius, in meters. |
order |
Ambisonic order. |
sampleRate |
Sample rate, in Hz. |
speedOfSound |
Speed of sound, in meters per second. |
Offers spectra, equivalent to those returned by NFECoeffs: -dist. Implemented as a frequency sampling design, with coefficients returned by HoaOrder: -distWeights. See also: Signal: *hoaDist.
Return an Array of Higher Order Ambisonic signal (HOA) near-field effect (NFE), control radial filter spectra collected by Associated Legendre degree (ℓ).
size |
The size of the spectra to return. |
encRadius |
Encoding radius, in meters. |
decRadius |
Decoding radius, in meters. |
order |
Ambisonic order. |
sampleRate |
Sample rate, in Hz. |
speedOfSound |
Speed of sound, in meters per second. |
Offers spectra, equivalent to those returned by NFECoeffs: -ctrl. Implemented as a frequency sampling design, with coefficients returned by HoaOrder: -ctrlWeights. See also: Signal: *hoaCtrl.
Return an Array of Higher Order Ambisonic signal (HOA) near-field effect (NFE), focalisation radial filter spectra collected by Associated Legendre degree (ℓ).
size |
The size of the spectra to return. | ||||||||
radius |
Radius, in meters. | ||||||||
order |
Ambisonic order. | ||||||||
window |
Angular weighting window.
| ||||||||
sampleRate |
Sample rate, in Hz. | ||||||||
speedOfSound |
Speed of sound, in meters per second. |
Offers zero phase spectra; implemented as a frequency sampling design, with coefficients returned by HoaOrder: -foclWeights. See also: Signal: *hoaFocl.
Return an Array of Higher Order Ambisonic signal (HOA) filter spectra combining multi-band beamforming and near-field effect (NFE) focalisation, collected by Associated Legendre degree (ℓ).
size |
The size of the spectra to return. | ||||||
radius |
Radius, in meters. Set to | ||||||
beamDict |
A dictionary specifying beam shapes and edge frequencies. See Beaming & Decoder Matching and discussion below. | ||||||
dim |
The number of dimensions: 2D or 3D. | ||||||
match |
Matching criteria, see Beaming & Decoder Matching:
NOTE: Prepend f to include focalisation in normalisation. E.g., \frms . | ||||||
numChans |
Number of loudspeakers. NOTE: Must be set when choosing match: \energy . | ||||||
order |
Ambisonic order. | ||||||
window |
Focalisation angular weighting window. See *hoaFocl. NOTE: Ignored if radius is set to nil . | ||||||
sampleRate |
Sample rate, in Hz. | ||||||
speedOfSound |
Speed of sound, in meters per second. |
Offers zero phase spectra; implemented as a frequency sampling design, with coefficients returned by *logShelf and *hoaFocl. See also: Signal: *hoaMultiBandFocl.
One band, with focalisation normalized for spherical harmonic energy.
Two bands, normalized for spherical harmonic energy, with focalisation normalized for pressure.
Three bands, normalized for pressure, with focalisation normalized for pressure.
Three bands, normalized for spherical harmonic energy. No focalisation.
FreqSpectrum size.
Coefficient frequencies.
Coefficient numbers.
Energy weighted average frequency.
Return bandwidth, in Hz.
fraction |
If < 1.0, return fractional power containment bandwidth. If |
sampleRate |
The sample rate, in Hz. |
Set or return the magnitude.
Return the peak magnitude.
Return energy weighted average magnitude.
mindb |
a minimum value in dB to clip amplitude response to. Prevents singularities. |
Synonym for -magnitude
Return the energy density.
Return the total energy.
Return the RMS.
Scale the magnitude in place.
Normalize the magnitude in place to 1.
Reset the magnitude in place to 1.
Set or return the phase.
Synonym for -phase
Synonym for -phase
Add pi
to phase.
Add pi
to phase in place.
Rotate the phase by a value in radians, in place. See also Signal: -rotatePhase.
Rotate the time domain waveform by a value in radians, in place. See also Signal: -rotateWave.
Return a spectrum with phase wrapped, preserving the magnitude, in place. See also -continuousPhase.
Return a spectrum with phase unwrapped, preserving the magnitude, in place.6 See also -principalPhase.
groupDelay |
group delay analysis, in samples. |
Return a linear phase spectrum, preserving the magnitude, in place. See also Signal: -linearPhase.
sym |
a Boolean indicating whether the window is symmetric or periodic. Default is false. |
Return a minimum phase spectrum, preserving the magnitude, in place.7 See also Signal: -minimumPhase.
mindb |
a minimum value in dB to clip amplitude response to. Reduces time aliasing. |
Return a gaussian noise phase spectrum, preserving the magnitude, in place. See also Signal: -gaussianPhase.
Return phase delay analysis, in samples.
Return group delay analysis, in samples.8
mindb |
a minimum value in dB to clip amplitude response to. Prevents singularities. NOTE: If set to -inf , returns group delay via central fininte difference, assuming phase is continuous.9 |
Return phase offset analysis, aka intercept phase, in radians.10
mindb |
a minimum value in dB to clip amplitude response to. Prevents singularities. NOTE: If set to -inf , returns group delay via central fininte difference, assuming phase is continuous. See also -groupDelay |
sampleRate |
The sample rate, in Hz. |
Return energy weighted average phase delay analysis, in samples. See also -phaseDelay
Return energy weighted average group delay analysis, in samples. See also -groupDelay
mindb |
a minimum value in dB to clip amplitude response to. Prevents singularities. NOTE: If set to -inf , returns group delay via central fininte difference, assuming phase is continuous. |
Return energy weighted average phase offset analysis, aka intercept phase, in radians. See also -phaseOffset
mindb |
a minimum value in dB to clip amplitude response to. Prevents singularities. NOTE: If set to -inf , returns group delay via central fininte difference, assuming phase is continuous. See also -groupDelay |
sampleRate |
The sample rate, in Hz. |
Return Polar.
Return Complex.
Return the real part of the complex spectrum.
Return the imaginary part of the complex spectrum.
TBD