LCAV / pyroomacoustics

Pyroomacoustics is a package for audio signal processing for indoor applications. It was developed as a fast prototyping platform for beamforming algorithms in indoor scenarios.
https://pyroomacoustics.readthedocs.io
MIT License
1.41k stars 423 forks source link

directivity argument of Room.add_microphone_array #356

Open tomato18463 opened 2 months ago

tomato18463 commented 2 months ago

If I do

dir_mics = CardioidFamily(
            orientation=DirectionVector(azimuth=azimuth, colatitude=colatitude, degrees=False),
            pattern_enum=DirectivityPattern.OMNI
        )    
room_sz = [x, y, z]
room = pra.ShoeBox(room_sz, fs=16000)
room.add_microphone_array(mic_array, directivity=dir_mics) 

Would it be the same as

room_sz = [x, y, z]
room = pra.ShoeBox(room_sz, fs=16000)
room.add_microphone_array(mic_array, directivity=None)

In other words, if I use an omnidirectional microphone pattern, is it equivalent to pass directivity=None to Room.add_microphone_array? I am using pyroomacoustics 0.7.3. Thank you!

fakufaku commented 1 month ago

Yes, it should be the same.