zynaddsubfx

ZynAddSubFX open source synthesizer
Log | Files | Refs | Submodules | LICENSE

commit 75ae70c20ee265a4c35325f6b6c0bb440a38dd77
parent 8d86210ffd302131a78bb8c00e9090393860f6eb
Author: Christopher A. Oliver <oliver@onion.private>
Date:   Thu, 26 Jun 2014 12:47:47 -0400

Fix unintentional flip about theta = pi/4 in OscilGen::spectrumadjust()

Diffstat:
Msrc/Synth/OscilGen.cpp | 2+-
1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/src/Synth/OscilGen.cpp b/src/Synth/OscilGen.cpp @@ -516,7 +516,7 @@ void OscilGen::spectrumadjust() for(int i = 0; i < synth->oscilsize / 2; ++i) { float mag = abs(oscilFFTfreqs, i); - float phase = arg(oscilFFTfreqs, i); + float phase = M_PI_2 - arg(oscilFFTfreqs, i); switch(Psatype) { case 1: