a-bot in progress

This commit is contained in:
Cameron Taylor 2024-03-07 14:19:26 -05:00
parent be348d0f13
commit d6608fe435
4 changed files with 33 additions and 30 deletions
hmm.json
source/funkin
audio/visualize
play
util/logging

View file

@ -4,21 +4,21 @@
"name": "discord_rpc",
"type": "git",
"dir": null,
"ref": "2d83fa863ef0c1eace5f1cf67c3ac315d1a3a8a5",
"ref": "2d83fa8",
"url": "https://github.com/Aidan63/linc_discord-rpc"
},
{
"name": "flixel",
"type": "git",
"dir": null,
"ref": "4d054bd10b05bb1309a0ba3427ffa5378e0b4b99",
"ref": "4d054bd1",
"url": "https://github.com/FunkinCrew/flixel"
},
{
"name": "flixel-addons",
"type": "git",
"dir": null,
"ref": "a523c3b56622f0640933944171efed46929e360e",
"ref": "a523c3b",
"url": "https://github.com/FunkinCrew/flixel-addons"
},
{
@ -30,14 +30,14 @@
"name": "flixel-ui",
"type": "git",
"dir": null,
"ref": "719b4f10d94186ed55f6fef1b6618d32abec8c15",
"ref": "719b4f1",
"url": "https://github.com/HaxeFlixel/flixel-ui"
},
{
"name": "flxanimate",
"type": "git",
"dir": null,
"ref": "9bacdd6ea39f5e3a33b0f5dfb7bc583fe76060d4",
"ref": "9bacdd6",
"url": "https://github.com/FunkinCrew/flxanimate"
},
{
@ -49,7 +49,7 @@
"name": "funkVis",
"type": "git",
"dir": null,
"ref": "separateDSP",
"ref": "7ed1f8fa6d8ca580f2359254482578a128be7ab8",
"url": "https://github.com/FunkinCrew/funkVis"
},
{
@ -61,14 +61,14 @@
"name": "haxeui-core",
"type": "git",
"dir": null,
"ref": "0212d8fdfcafeb5f0d5a41e1ddba8ff21d0e183b",
"ref": "0212d8fd",
"url": "https://github.com/haxeui/haxeui-core"
},
{
"name": "haxeui-flixel",
"type": "git",
"dir": null,
"ref": "63a906a6148958dbfde8c7b48d90b0693767fd95",
"ref": "63a906a",
"url": "https://github.com/haxeui/haxeui-flixel"
},
{
@ -80,7 +80,7 @@
"name": "hxCodec",
"type": "git",
"dir": null,
"ref": "387e1665d6feb5762358134f168e6ebfe46acec8",
"ref": "387e166",
"url": "https://github.com/FunkinCrew/hxCodec"
},
{
@ -92,7 +92,7 @@
"name": "hxcpp-debug-server",
"type": "git",
"dir": "hxcpp-debug-server",
"ref": "147294123f983e35f50a966741474438069a7a8f",
"ref": "1472941",
"url": "https://github.com/FunkinCrew/hxcpp-debugger"
},
{
@ -104,56 +104,56 @@
"name": "json2object",
"type": "git",
"dir": null,
"ref": "a8c26f18463c98da32f744c214fe02273e1823fa",
"ref": "a8c26f1",
"url": "https://github.com/FunkinCrew/json2object"
},
{
"name": "lime",
"type": "git",
"dir": null,
"ref": "1359fe6ad52e91175dc636a516d460bd54ea22ed",
"ref": "1359fe6a",
"url": "https://github.com/FunkinCrew/lime"
},
{
"name": "mconsole",
"type": "git",
"dir": null,
"ref": "master",
"ref": "06c0499",
"url": "https://github.com/massive-oss/mconsole"
},
{
"name": "mcover",
"type": "git",
"dir": "src",
"ref": "master",
"ref": "c3c47cd",
"url": "https://github.com/massive-oss/mcover"
},
{
"name": "mockatoo",
"type": "git",
"dir": "src",
"ref": "master",
"ref": "13d77a0",
"url": "https://github.com/FunkinCrew/mockatoo"
},
{
"name": "munit",
"type": "git",
"dir": "src",
"ref": "master",
"ref": "f61be7f",
"url": "https://github.com/FunkinCrew/MassiveUnit"
},
{
"name": "openfl",
"type": "git",
"dir": null,
"ref": "f229d76361c7e31025a048fe7909847f75bb5d5e",
"ref": "f229d763",
"url": "https://github.com/FunkinCrew/openfl"
},
{
"name": "polymod",
"type": "git",
"dir": null,
"ref": "d5a3b8995f64d20b95f844454e8c3b38c3d3a9fa",
"ref": "d5a3b89",
"url": "https://github.com/larsiusprime/polymod"
},
{
@ -171,4 +171,4 @@
"url": "https://github.com/FunkinCrew/thx.semver"
}
]
}
}

View file

@ -57,15 +57,21 @@ class ABotVis extends FlxTypedSpriteGroup<FlxSprite>
public function initAnalyzer()
{
@:privateAccess
analyzer = new SpectralAnalyzer(7, new AudioClip(cast snd._channel.__source), 0.005, 30);
analyzer = new SpectralAnalyzer(7, new AudioClip(cast snd._channel.__source), 0.06, 30);
analyzer.fftN = 2048;
}
var visTimer:Float = -1;
var visTimeMax:Float = 1 / 30;
override function update(elapsed:Float)
{
// updateViz();
// updateFFT(elapsed);
if (analyzer != null) drawFFT();
super.update(elapsed);
}
@ -76,14 +82,6 @@ class ABotVis extends FlxTypedSpriteGroup<FlxSprite>
override function draw()
{
if (analyzer == null)
{
super.draw();
return;
}
// drawFFT();
super.draw();
}

View file

@ -1784,7 +1784,7 @@ class PlayState extends MusicBeatSubState
// I am going insane.
FlxG.sound.music.volume = 1.0;
FlxG.sound.music.fadeTween.cancel();
FlxG.sound.music.fadeTween?.cancel();
trace('Playing vocals...');
add(vocals);

View file

@ -52,7 +52,12 @@ class AnsiTrace
public static function traceBF()
{
#if sys
if (colorSupported) Sys.println(ansiBF.join("\n"));
if (colorSupported)
{
for (line in ansiBF)
Sys.stdout().writeString(line + "\n");
Sys.stdout().flush();
}
#end
}