mirror of
https://github.com/make-42/xyosc
synced 2025-01-18 18:57:10 +01:00
yes
This commit is contained in:
parent
75a319f204
commit
812323bc09
2
main.go
2
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, &AX)
|
||||||
binary.Read(audio.SampleRingBuffer, binary.NativeEndian, &AY)
|
binary.Read(audio.SampleRingBuffer, binary.NativeEndian, &AY)
|
||||||
}
|
}
|
||||||
FFTBuffer = window.Apply(FFTBuffer, signalprocessing.CachedWindowFunction)
|
window.Apply(FFTBuffer, signalprocessing.CachedWindowFunction)
|
||||||
X := fft.FFTReal(FFTBuffer)
|
X := fft.FFTReal(FFTBuffer)
|
||||||
r, θ := cmplx.Polar(X[1])
|
r, θ := cmplx.Polar(X[1])
|
||||||
maxR := r
|
maxR := r
|
||||||
|
Loading…
Reference in New Issue
Block a user