Skip to content

Conversation

@je-fleischhauer
Copy link
Contributor

This merge request builds upon #422 .

  • My previous comments were a bit sloppy. I have revised the comments on the module. (But there is still room for improvement!)
  • I adapted the unit test to increase the code coverage.
  • I corrected a slip between order and degree of spherical harmonics.
  • I added some checks to make the code more robust.

Copy link
Collaborator

@fakufaku fakufaku left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks, this is great! I just found a couple typos in the docstrings. It would be great if you can fix them, and then I can merge it.

mask = m != 0
if np.any(mask):
y_real[mask] *= np.sqrt(2) * np.array([-1.0]) ** m[mask]
# In the formular, for m<0, |m| is used. We consider this by the use of the constraint.
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Small typo: formular -> formula


Real Spherical Harmonics are used in the `Ambisonic file format
<https://en.wikipedia.org/wiki/Ambisonic_data_exchange_formats>`_,
which can be uses to represents and restore a sound field at a given point.
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Typo:
uses -> used
represents -> represent

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants