Skip to content
This repository was archived by the owner on Feb 7, 2024. It is now read-only.
This repository was archived by the owner on Feb 7, 2024. It is now read-only.

How to use the reflection module? #249

@dizcza

Description

@dizcza

atmosphere.py has an impulse response function that I can convolve with the signal to obtain an attenuated signal.

How to use the reflection.py module?

from acoustics.reflection import Boundary

signal = ...  # a numpy array in time domain representing sound pressure in Pa

b = Boundary(frequency=np.linspace(1, 1000, 1000), flow_resistivity=1e3, angle=np.deg2rad(120), reflection_model='spherical', distance=1)
rf = b.reflection_factor
ir = impulse_response(rf) ???

Thank you.

Best,
Danylo

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions