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, butterchurnPresets.getPresets());
|
||||||
Object.assign(presets, butterchurnPresetsExtra.getPresets());
|
Object.assign(presets, butterchurnPresetsExtra.getPresets());
|
||||||
Object.assign(presets, butterchurnPresetsExtra2.getPresets());
|
Object.assign(presets, butterchurnPresetsExtra2.getPresets());
|
||||||
visualizer.loadPreset(presets["444"], 0.0);
|
|
||||||
|
|
||||||
var select = document.getElementById("preset");
|
var select = document.getElementById("preset");
|
||||||
for (const preset of Object.keys(presets)) {
|
for (const preset of Object.keys(presets)) {
|
||||||
var option = document.createElement("option");
|
var option = document.createElement("option");
|
||||||
option.value = option.innerText = preset;
|
option.value = option.innerText = preset;
|
||||||
if (preset == "444")
|
if (preset == ""fiShbRaiN + geiss - witchcraft (Grow Mix 3)"")
|
||||||
option.selected = true;
|
option.selected = true;
|
||||||
select.appendChild(option);
|
select.appendChild(option);
|
||||||
}
|
}
|
||||||
select.addEventListener("change", function() {
|
select.addEventListener("change", function() {
|
||||||
visualizer.loadPreset(presets[select.value], 0.0);
|
visualizer.loadPreset(presets[select.value], 0.0);
|
||||||
})
|
})
|
||||||
|
visualizer.loadPreset(presets[select.value], 0.0);
|
||||||
|
|
||||||
function animate() {
|
function animate() {
|
||||||
visualizer.render();
|
visualizer.render();
|
||||||
|
|
Loading…
Reference in a new issue