mirror of
https://github.com/ninjamuffin99/Funkin.git
synced 2024-11-25 00:06:40 +00:00
spectogram placeholder
This commit is contained in:
parent
b5d85c3fd6
commit
9cf2598951
|
@ -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);
|
||||
|
||||
|
|
Loading…
Reference in a new issue