music.available_azimuths

music.available_azimuths(elevation, directory=None)[source]

The azimuths measured at one elevation, in this package’s convention.

Parameters:
elevationinteger

One of ELEVATIONS.

directorypath, optional

Where the measurements are. Defaults to hrtf_dir().

Returns:
tuple of integers

Ascending, in degrees, measured from the ear axis as everything else in this package is: 0 is to the right, and the angle increases counter-clockwise, so 90 is straight ahead.

Raises:
FileNotFoundError

If the measurements are not there.

ValueError

If elevation is not one of the measured ones.

Parameters:
Return type:

tuple[int, …]

See also

hrir

reads one of them.

Examples

>>> available_azimuths(0)[:4]
(0, 5, 10, 15)
>>> len(available_azimuths(90))
1