From 812323bc09de6dcbcb715bd5dba61a3bc469dd68 Mon Sep 17 00:00:00 2001 From: Louis Dalibard Date: Thu, 16 Jan 2025 22:30:35 +0100 Subject: [PATCH] yes --- main.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/main.go b/main.go index e5d07c4..8bb82a9 100644 --- a/main.go +++ b/main.go @@ -101,7 +101,7 @@ func (g *Game) Draw(screen *ebiten.Image) { binary.Read(audio.SampleRingBuffer, binary.NativeEndian, &AX) binary.Read(audio.SampleRingBuffer, binary.NativeEndian, &AY) } - FFTBuffer = window.Apply(FFTBuffer, signalprocessing.CachedWindowFunction) + window.Apply(FFTBuffer, signalprocessing.CachedWindowFunction) X := fft.FFTReal(FFTBuffer) r, θ := cmplx.Polar(X[1]) maxR := r