music.hrtf_dir

music.hrtf_dir()[source]

Where the measurements are, or would go.

Returns:
Path

$MUSIC_HRTF_DIR if it is set, and otherwise a directory in the per-user cache. It need not exist yet.

Return type:

Path

See also

setup_hrtf

puts them there.

Examples

>>> str(hrtf_dir()).endswith("kemar")
True

Setting $MUSIC_HRTF_DIR overrides it, which is how to use a copy of the measurements from somewhere else. This example does not set it, because a docstring that changes the environment changes it for whatever runs next.