From 8f94fa99ef7b9b82122b95ed219654afdd68267e Mon Sep 17 00:00:00 2001 From: Louis Dalibard Date: Thu, 16 Jan 2025 22:09:17 +0100 Subject: [PATCH] yes --- main.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/main.go b/main.go index e326094..e7f5734 100644 --- a/main.go +++ b/main.go @@ -112,7 +112,7 @@ func (g *Game) Draw(screen *ebiten.Image) { maxi = i + 1 } } - offset := uint32((maxθ/(2*math.Pi) + 0.5) * (float64(numSamples) / float64(maxi))) + offset := uint32((maxθ / (2 * math.Pi)) * (float64(numSamples) / float64(maxi))) for i := uint32(0); i < numSamples-1; i++ { fAX := float32(FFTBuffer[(i+offset)%numSamples]) * config.Config.Gain * float32(scale) fBX := float32(FFTBuffer[(i+1+offset)%numSamples]) * config.Config.Gain * float32(scale)