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.33k stars 417 forks source link

Update music.py (fix plot_individual_spectrum) #322

Open XZWY opened 10 months ago

XZWY commented 10 months ago

fix plot_individual_spectrum for music doa estimation

Thanks for sending a pull request (PR), we really appreciate that! Before hitting the submit button, we'd be really glad if you could make sure all the following points have been cleared.

Please also refer to the doc on contributing for more details. Even if you can't check all the boxes below, do not hesitate to go ahead with the PR and ask for help there.

Happy PR :smiley:

XZWY commented 10 months ago

line 150 in music.py, self.Pssl[k, 0 : len(azimuth)] should be self.Pssl[0 : len(azimuth), k], the index got reverted by the function _compute_spatial_spectrumvec