diff --git a/source/ATK/AtkUGens.cpp b/source/ATK/AtkUGens.cpp index bc7156ae47..8e5b7fc746 100644 --- a/source/ATK/AtkUGens.cpp +++ b/source/ATK/AtkUGens.cpp @@ -1944,9 +1944,10 @@ void FoaNFC_next_k(FoaNFC *unit, int inNumSamples) float y1x = unit->m_y1x; float y1y = unit->m_y1y; float y1z = unit->m_y1z; - + for(int i = 0; i < inNumSamples; i++){ - float freq = 53.0 / distanceStart; + // AtkFoa.speedOfSound = 343.0 --> 343.0 / 2pi --> 54.59014548052 + float freq = 54.59014548052 / distanceStart; float wc = (twopi * freq) * SAMPLEDUR; // a0 = (1 + (wc.cos.neg * 2 + 2).sqrt).reciprocal; @@ -1994,9 +1995,10 @@ void FoaNFC_next_a(FoaNFC *unit, int inNumSamples) float y1x = unit->m_y1x; float y1y = unit->m_y1y; float y1z = unit->m_y1z; - + for(int i = 0; i < inNumSamples; i++){ - float freq = 53.0 / distance[i]; + // AtkFoa.speedOfSound = 343.0 --> 343.0 / 2pi --> 54.59014548052 + float freq = 54.59014548052 / distance[i]; float wc = (twopi * freq) * SAMPLEDUR; float a0 = 1 / (sqrt((cos(wc) * -2) + 2) + 1); @@ -2058,9 +2060,10 @@ void FoaProximity_next_k(FoaProximity *unit, int inNumSamples) float y1x = unit->m_y1x; float y1y = unit->m_y1y; float y1z = unit->m_y1z; - - for(int i=0; i 343.0 / 2pi --> 54.59014548052 + float freq = 54.59014548052 / distance[i]; float wc = (twopi * freq) * SAMPLEDUR; // a0 = 1 + (wc.cos.neg * 2 + 2).sqrt; @@ -2108,9 +2111,10 @@ void FoaProximity_next_a(FoaProximity *unit, int inNumSamples) float y1x = unit->m_y1x; float y1y = unit->m_y1y; float y1z = unit->m_y1z; - - for(int i = 0; i 343.0 / 2pi --> 54.59014548052 + float freq = 54.59014548052 / distance[i]; float wc = (twopi * freq) * SAMPLEDUR; float a0 = 1 + sqrt((cos(wc) * -2) + 2); diff --git a/source/ATK/sc/README.md b/source/ATK/sc/README.md index 0cd7910b04..c8b04ed530 100644 --- a/source/ATK/sc/README.md +++ b/source/ATK/sc/README.md @@ -173,7 +173,12 @@ Ambisonic Toolkit. List of Changes --------------- -Unreleased 3.9.0 +Version 3.12.0 + +* Refactoring: + * Update AtkFoa.speedOfSound == AtkHoa.speedOfSound == 343.0 m/s + +Version 3.9.0 * Refactoring: * Quark-ify: classes, extension methods & documentation moved to