1
0
Fork 0
mirror of https://github.com/ninjamuffin99/Funkin.git synced 2024-11-25 00:06:40 +00:00

spectogram placeholder

This commit is contained in:
Cameron Taylor 2022-07-05 14:34:08 -04:00
parent b5d85c3fd6
commit 9cf2598951

View file

@ -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<Note>();
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);