Spectrum: Tabulate (verbose)

The command Tabulate (verbose) becomes available under Tabulate when you select exactly one Spectrum object.

When you choose Tabulate (verbose), a new Table (with the same name as the Spectrum) will appear in the list of objects. When you View & Edit this Table, you will see:

A column called bin.
This contains the bin number, running from 1 to the number of frequency bins in the Spectrum.
A column called frequency (Hz).
This is the frequency that is associated with the bin. In a Spectrum that you created from a Sound, the frequency that is associated with bin 1 is 0 Hz, and the frequency that is associated with the last bin is the Nyquist frequency of that Sound (i.e. half the sampling frequency). The frequency step between consecutive bins is always the same, and we call this step the bin step, abbreviated as df. Thus, bin 2 is centred at df, bin 3 at 2df, bin 4 at 3df, and so on.
A column called re (Pa/Hz).
This is the real part of the complex value of the spectrum in the bin.
A column called im (Pa/Hz).
This is the imaginary part of the complex value of the spectrum in the bin.
A column called energy spectral density (Pa2s/Hz).
For most bins this is computed as the square of the real part plus the square of the imaginary part. For bin 1 (where the imaginary part is zero) this is computed as 2 times the square of the real part. If the number of the last bin is odd, the imaginary part will be zero, and the energy spectral density is computed as 2 times the square of the real part. For an explanation of the factor of 2, see below.
A column called startOfBinWithinDomain (Hz).
The first bin starts at 0 Hz and ends at 0.5df, i.e. in the middle of the centres of bin 1 and bin 2. The second bin starts at 0.5df and ends at 1.5df, the third starts at 1.5df and ends at 2.5df. This column lists the beginnings of the bins. The part “within domain” refers to the fact that all bins represent both positive and negative frequencies, but we count only the frequencies in the domain of the Spectrum, which runs from 0 Hz to the Nyquist frequency.
A column called endOfBinWithinDomain (Hz).
This column is explained just above.
A column called binWidthWithinDomain (Hz).
Bin 1 runs from 0 Hz to 0.5df, so it has a width of 0.5df. Bin 2 runs from 0.5df to 1.5df, so it has a width of df; the same goes for almost all remaining bins. As for the last bin: if there are an odd number N of bins, then bin N runs from (N − 1.5)·df to (N − 1.0)·df (which is the Nyquist frequency), so its width is 0.5df.
A column called binEnergy (Pa2s).
This is the bin’s energy spectral density times the width of the bin. Thus, you get this mostly from multiplying the energy spectral density column by df, except for bin 1 and (if N is odd) bin N, where the energy spectral density is multiplied by 0.5df instead. The sum of all the values in this column is the total energy of the signal, i.e. it should be equal to the average of the squares of the samples of an original Sound, times the duration of that Sound.
A column called power spectral density (Pa2/Hz).
This is the power spectral density in the bin. It is computed as the energy spectral density divided by the duration of the original sound, which is the same as multiplication by df. This column is almost the same as the bin energy column, except for bin 1 and (if N is odd) bin N, where it is twice as large.

Links to this page


© Paul Boersma 2023-05-03