Skip to content

ATK: FOA speed of sound #317

@joslloand

Description

@joslloand

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];

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions