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

Function wrapper_random_ism

tests/test_random_ism.py:38–53  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

36
37
38def wrapper_random_ism():
39 room = pra.ShoeBox(
40 room_size, fs, materials=pra.Material(0.1), max_order=50, use_rand_ism=True
41 )
42
43 room.add_source(source_loc)
44
45 room.add_microphone(mic_loc)
46
47 room.compute_rir()
48
49 # measure of spectral flatness of sweeping echoes
50 # higher value is desired
51 ssf_rism = met.sweeping_echo_measure(room.rir[0][0], fs)
52
53 return ssf_rism
54
55
56def test_random_ism():

Callers 2

test_random_ismFunction · 0.85
test_random_ism.pyFile · 0.85

Calls 3

add_sourceMethod · 0.80
add_microphoneMethod · 0.80
compute_rirMethod · 0.80

Tested by

no test coverage detected