-
Notifications
You must be signed in to change notification settings - Fork 124
Description
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 & FoaNFCfreq = speedOfSound / 2pi // wavenumber = 1
speedOfSound = 53 * 2pi // 333.0this value is the speed of sound @ 3C
https://www.weather.gov/epz/wxcalc_speedofsoundTODO: 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:
sc3-plugins/source/ATK/AtkUGens.cpp
Line 1949 in fa550fb
| float freq = 53.0 / distanceStart; |
sc3-plugins/source/ATK/AtkUGens.cpp
Line 1999 in fa550fb
| float freq = 53.0 / distance[i]; |
sc3-plugins/source/ATK/AtkUGens.cpp
Line 2063 in fa550fb
| float freq = 53.0 / distanceStart; |
sc3-plugins/source/ATK/AtkUGens.cpp
Line 2113 in fa550fb
| float freq = 53.0 / distance[i]; |