mirror of
https://github.com/make-42/xyosc
synced 2025-01-18 10:47:10 +01:00
yes
This commit is contained in:
parent
2ba14583cf
commit
8f94fa99ef
2
main.go
2
main.go
@ -112,7 +112,7 @@ func (g *Game) Draw(screen *ebiten.Image) {
|
|||||||
maxi = i + 1
|
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++ {
|
for i := uint32(0); i < numSamples-1; i++ {
|
||||||
fAX := float32(FFTBuffer[(i+offset)%numSamples]) * config.Config.Gain * float32(scale)
|
fAX := float32(FFTBuffer[(i+offset)%numSamples]) * config.Config.Gain * float32(scale)
|
||||||
fBX := float32(FFTBuffer[(i+1+offset)%numSamples]) * config.Config.Gain * float32(scale)
|
fBX := float32(FFTBuffer[(i+1+offset)%numSamples]) * config.Config.Gain * float32(scale)
|
||||||
|
Loading…
Reference in New Issue
Block a user