8000 new mono drivingfunction handling by fs446 · Pull Request #125 · sfstoolbox/sfs-python · GitHub
[go: up one dir, main page]

Skip to content

new mono drivingfunction handling #125

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 15 commits into from
Mar 13, 2019
Prev Previous commit
Next Next commit
soundfigure_3d update
  • Loading branch information
fs446 committed Mar 13, 2019
commit 74687a7fefdcbaae4edbfb3f6b751be808730444
2 changes: 1 addition & 1 deletion doc/examples/soundfigures.py
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@
# driving function for sound figure
figure = np.array(Image.open('figures/tree.png')) # read image from file
figure = np.rot90(figure) # turn 0deg to the top
d, selection, secondary_source = sfs.mono.soundfigure.wfs_3d_pw(
d, selection, secondary_source = sfs.mono.wfs.soundfigure_3d(
omega, array.x, array.n, figure, npw=npw)

# compute synthesized sound field
Expand Down
2 changes: 1 addition & 1 deletion sfs/mono/wfs.py
Original file line number Diff line number Diff line change
Expand Up @@ -563,7 +563,7 @@ def plane_3d_delay(omega, x0, n0, n=[0, 1, 0], c=None):
return d, selection, secondary_source_point(omega, c)


def soundfigure_2d(omega, x0, n0, figure, npw=[0, 0, 1], c=None):
def soundfigure_3d(omega, x0, n0, figure, npw=[0, 0, 1], c=None):
"""Compute driving function for a 2D sound figure.

Based on
Expand Down
0