From 9cf2598951aa5f509c1d5a6de93e33744f3bd28e Mon Sep 17 00:00:00 2001 From: Cameron Taylor Date: Tue, 5 Jul 2022 14:34:08 -0400 Subject: [PATCH] spectogram placeholder --- source/funkin/LatencyState.hx | 10 ++++++++++ 1 file changed, 10 insertions(+) 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);