idk assets revert this if I busted shit here lol

This commit is contained in:
Cameron Taylor 2024-03-19 13:04:58 -07:00
parent 6edc274748
commit 4eea9b76e7
2 changed files with 7 additions and 5 deletions
hmm.json
source/funkin/audio/visualize

View file

@ -49,7 +49,7 @@
"name": "funkVis",
"type": "git",
"dir": null,
"ref": "7ed1f8fa6d8ca580f2359254482578a128be7ab8",
"ref": "0ac2fffa67fd30563df97c66718551efa92d283e",
"url": "https://github.com/FunkinCrew/funkVis"
},
{

View file

@ -57,8 +57,9 @@ class ABotVis extends FlxTypedSpriteGroup<FlxSprite>
public function initAnalyzer()
{
@:privateAccess
analyzer = new SpectralAnalyzer(7, new AudioClip(cast snd._channel.__source), 0.06, 30);
analyzer.fftN = 2048;
analyzer = new SpectralAnalyzer(7, new AudioClip(cast snd._channel.__source), 0.01, 30);
analyzer.maxDb = -35;
// analyzer.fftN = 2048;
}
var visTimer:Float = -1;
@ -70,8 +71,7 @@ class ABotVis extends FlxTypedSpriteGroup<FlxSprite>
// updateFFT(elapsed);
if (analyzer != null) drawFFT();
//
super.update(elapsed);
}
@ -82,6 +82,8 @@ class ABotVis extends FlxTypedSpriteGroup<FlxSprite>
override function draw()
{
if (analyzer != null) drawFFT();
super.draw();
}