mirror of
https://github.com/FunkinCrew/Funkin.git
synced 2025-03-25 22:29:42 -04:00
idk assets revert this if I busted shit here lol
This commit is contained in:
parent
6edc274748
commit
4eea9b76e7
2 changed files with 7 additions and 5 deletions
2
hmm.json
2
hmm.json
|
@ -49,7 +49,7 @@
|
|||
"name": "funkVis",
|
||||
"type": "git",
|
||||
"dir": null,
|
||||
"ref": "7ed1f8fa6d8ca580f2359254482578a128be7ab8",
|
||||
"ref": "0ac2fffa67fd30563df97c66718551efa92d283e",
|
||||
"url": "https://github.com/FunkinCrew/funkVis"
|
||||
},
|
||||
{
|
||||
|
|
|
@ -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();
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue