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

ATK: FOA speed of sound #317

Closed
joslloand opened this issue Jul 23, 2021 · 6 comments
Closed

ATK: FOA speed of sound #317

joslloand opened this issue Jul 23, 2021 · 6 comments

Comments

@joslloand
Copy link
Contributor

ATK issue: ambisonictoolkit/atk-sc3#104

AtkFoa.speedOfSound = 333.0; // (m/s)

NOTE: this value is implied by the current setting of the cutoff
frequency (53 Hz) found in the sc3-plugins code for FoaProximity & FoaNFC

freq = speedOfSound / 2pi // wavenumber = 1
speedOfSound = 53 * 2pi // 333.0

this value is the speed of sound @ 3C
https://www.weather.gov/epz/wxcalc_speedofsound

TODO: consider updating sc3-plugins to align with
AtkHoa.speedOfSound = 343.0

The fix for this is simple. For FoaProximity and FoaNFC, replace the frequency setting of 53.0 Hz with 343.0 / 2pi -> 54.59014548052

There are four lines to be updated:

float freq = 53.0 / distanceStart;

float freq = 53.0 / distance[i];

float freq = 53.0 / distanceStart;

float freq = 53.0 / distance[i];

@joslloand
Copy link
Contributor Author

Don't forget to update the README!

@joslloand
Copy link
Contributor Author

@mossheim, @telephon, @joshpar

The question is one of etiquette. Is it preferred for me to directly make the above listed changes to the ATK's plugins, or would it be preferable for me to make a PR?

Do let me know, as I'd like to be sure play nicely!

@dyfer
Copy link
Member

dyfer commented Jul 27, 2021

Hi @joslloand
I think anything that gets into the main branch needs to go through a PR anyway, so making one is probably the best way forward.

@joslloand
Copy link
Contributor Author

Thanks @dyfer, I'll go ahead and prepare a PR.

It would be great to be able to have the update in to coincide with the upcoming SC 3.12 release.

@dyfer
Copy link
Member

dyfer commented Jul 27, 2021

It would be great to be able to have the update in to coincide with the upcoming SC 3.12 release.

Noted.
I have a feeling the 3.12 release of sc3-plugins will be a bit behind the SC release, FYI.

@joslloand
Copy link
Contributor Author

@dyfer, yes, I would expect so... but was hoping to be ready for it....

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

No branches or pull requests

2 participants