MCPcopy
hub / github.com/LCAV/pyroomacoustics / mic_array_at

Function mic_array_at

tests/test_issue_313.py:31–36  ·  view source on GitHub ↗
(pos: np.ndarray)

Source from the content-addressed store, hash-verified

29
30 # Microphones
31 def mic_array_at(pos: np.ndarray) -> pra.MicrophoneArray:
32 mic_locations = pra.circular_2D_array(center=pos, M=6, phi0=0, radius=37.5e-3)
33 mic_locations = np.concatenate(
34 (mic_locations, np.array(pos, ndmin=2).T), axis=1
35 )
36 return pra.MicrophoneArray(mic_locations, room.fs)
37
38 mic = mic_array_at(np.array([3, 3]))
39 room.add_microphone_array(mic)

Callers 1

test_issue_313Function · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected