pyntbci.envelope.aud_space_bw

pyntbci.envelope.aud_space_bw(fmin: float, fmax: float, bw: float = 1.0, scale: str = 'erb') NDArray[source]

Auditory scale points specified by bandwidth. It computes a vector containing values equidistantly scaled between frequencies fmin and fmax at the auditory scale. All frequencies are specified in Hz. The distance between two consecutive values is bw on the auditory scale, and the points will be centered on the auditory scale between fmin and fmax.

Adapted from LTFAT: https://ltfat.org/doc/auditory/audspacebw audspacebw.m (Peter L. Søndergaard)

Parameters:
  • fmin (float) – Minimum center frequency.

  • fmax (float) – Maximum center frequency.

  • bw (float (default: 1.0)) – Bandwidth or spacing between center frequencies.

  • scale (str (default: "erb")) – Auditory scale.

Returns:

y – A vector containing the center frequencies.

Return type:

NDArray