change default visualizer
This commit is contained in:
parent
c59abd4da2
commit
27c5ea121b
1 changed files with 3 additions and 3 deletions
|
@ -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();
|
||||
|
@ -95,4 +95,4 @@ function keygen() {
|
|||
fetch(`https://sponsor.ajay.app/api/generateToken/free?key=${Date.now()}`).then(r => r.json()).then(d => {
|
||||
document.getElementById("key").value = d.licenseKey;
|
||||
});
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue