Skip to content
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

MISO and MIMO- calculation problem in static IR #7

Open
david1412 opened this issue Dec 14, 2017 · 2 comments
Open

MISO and MIMO- calculation problem in static IR #7

david1412 opened this issue Dec 14, 2017 · 2 comments

Comments

@david1412
Copy link
Owner

how can I get the Static impulse response from multiple sources.

#######################Static impulse respones########################
waveform, shift, _ = fractional_delay(delay, Lf, fs=fs, type='lagrange')
h, , = construct_ir_matrix(waveform * weight[:, np.newaxis], shift, N)
h = h.T

denom = denominator(h, Phi)# denominator of formula

#######################End of Static response######################

this is the code to calculate Static impulse response.

if mic num is two, distance is also two.

then can not calculate the waveform and shift and so on.

@narahahn
Copy link
Contributor

Please take a loot at #1.

For multiple source-receiver combinations (in this case, multiple-source and single-receiver), you need the same number (let's say M) of impulse responses. Those have to be computed individually, which mean you will have 'M' set of impulse responses (waveforms and shifts).

Now we have the all impulse responses we need for the simulation. The next step is simulating the microphone signal which captures the sound waves emitted by all sources. The microphone signal is the superposition of the contributions from the individual sources. First, you have to simulate M signals corresponding to the sources using the impulse responses (or the waveform and shift from above). Then, add them up, which is now the captured signal. Keep in mind that the excitation signal differs for each source.

@david1412
Copy link
Owner Author

This information helped to modify the code. Please see the implementation in the code.

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

No branches or pull requests

2 participants