diff --git a/source/funkin/LatencyState.hx b/source/funkin/LatencyState.hx index b7e559beb..c5a91c9c7 100644 --- a/source/funkin/LatencyState.hx +++ b/source/funkin/LatencyState.hx @@ -4,6 +4,8 @@ import flixel.FlxSprite; import flixel.FlxSubState; import flixel.group.FlxGroup.FlxTypedGroup; import flixel.text.FlxText; +import flixel.util.FlxColor; +import funkin.audiovis.PolygonSpectogram; class LatencyState extends MusicBeatSubstate { @@ -20,6 +22,14 @@ class LatencyState extends MusicBeatSubstate noteGrp = new FlxTypedGroup(); add(noteGrp); + var musSpec:PolygonSpectogram = new PolygonSpectogram(FlxG.sound.music, FlxColor.RED, FlxG.height, Math.floor(FlxG.height / 2)); + musSpec.x += 170; + musSpec.scrollFactor.set(); + musSpec.waveAmplitude = 50; + musSpec.realtimeVisLenght = 0.6; + // musSpec.visType = FREQUENCIES; + add(musSpec); + block = new FlxSprite().makeGraphic(100, 100); add(block);