change default visualizer

This commit is contained in:
Ashley Graves 2024-09-18 22:13:02 +02:00
parent c59abd4da2
commit 27c5ea121b

View file

@ -53,19 +53,19 @@ libopenmpt.onRuntimeInitialized = function() {
Object.assign(presets, butterchurnPresets.getPresets());
Object.assign(presets, butterchurnPresetsExtra.getPresets());
Object.assign(presets, butterchurnPresetsExtra2.getPresets());
visualizer.loadPreset(presets["444"], 0.0);
var select = document.getElementById("preset");
for (const preset of Object.keys(presets)) {
var option = document.createElement("option");
option.value = option.innerText = preset;
if (preset == "444")
if (preset == ""fiShbRaiN + geiss - witchcraft (Grow Mix 3)"")
option.selected = true;
select.appendChild(option);
}
select.addEventListener("change", function() {
visualizer.loadPreset(presets[select.value], 0.0);
})
visualizer.loadPreset(presets[select.value], 0.0);
function animate() {
visualizer.render();