Web Interface Modification plus

A piece is no longer cleared in the meta file when its presets are loaded.
This commit is contained in:
computermusik 2025-02-26 07:31:28 +02:00
parent f7f61adbaa
commit 76d47ac4b2
2 changed files with 16 additions and 16 deletions

View File

@ -201,11 +201,12 @@ svg.push({
addMenu(-1, "basicDIV", "Piece", "piece", 36, 0, pieces, "wide");
addMenu(-1, "basicDIV", "Playing Mode", "mode", 66, 0, modes, "wide");
addCheckbox(-1, "basicDIV", "Play", "play", 96, 0, "left");
addSlider(-1, "basicDIV", "Tempo", "tempo", 0, [1, 200], 0.1, 60, "this.value", "this.value");
addSlider(-1, "basicDIV", "Duration", "duration", 1, [60, 600], 1, 300, "this.value", "this.value");
addSlider(-1, "basicDIV", "Silence", "silence", 2, [10, 60], 1, 10, "this.value", "this.value");
addMenu(-1, "basicDIV", "Playing Mode", "mode", 76, 0, modes, "wide");
addCheckbox(-1, "basicDIV", "Play", "play", 116, 0, "left");
addSlider(-1, "basicDIV", "Tempo", "tempo", 1, [1, 200], 0.1, 60, "this.value", "this.value");
addSlider(-1, "basicDIV", "Duration", "duration", 2, [60, 600], 1, 300, "this.value", "this.value");
addSlider(-1, "basicDIV", "Silence", "silence", 3, [10, 60], 1, 10, "this.value", "this.value");
addSlider(-1, "basicDIV", "Gain (dB)", "gain", 4, [-70, 6], 1, -10, "this.value", "this.value");
for (var i = 0; i < 4; i++) {
@ -236,15 +237,14 @@ svg.push({
addSlider(-1, "roomDIV", "Level 2 (dB)", "level_2", 3, [-70, 6], 1, -10, "this.value", "this.value");
addSlider(-1, "roomDIV", "Level 3 (dB)", "level_3", 4, [-70, 6], 1, -10, "this.value", "this.value");
addSlider(-1, "roomDIV", "Level 4 (dB)", "level_4", 5, [-70, 6], 1, -10, "this.value", "this.value");
addSlider(-1, "roomDIV", "Gain (dB)", "gain", 6, [-70, 6], 1, -10, "this.value", "this.value");
addSlider(-1, "roomDIV", "Room Size", "roomsize", 7, [1, 300], 1, 75, "this.value", "this.value");//
addSlider(-1, "roomDIV", "Rev. Time (ms)", "amount", 8, [0.5, 15], 0.1, 11, "this.value", "this.value");//
addSlider(-1, "roomDIV", "Spread", "spread", 9, [0, 100], 1, 23, "this.value", "this.value");//
addSlider(-1, "roomDIV", "Bandwidth", "bandwidth", 10, [0, 100], 1, 50, "this.value", "this.value"); //50
addSlider(-1, "roomDIV", "Damping", "damping", 11, [0, 100], 1, 70, "this.value", "this.value");//
addSlider(-1, "roomDIV", "Early", "early", 12, [0, 100], 1, 25, "this.value", "this.value");//
addSlider(-1, "roomDIV", "Tail", "tail", 13, [0, 100], 1, 25, "this.value", "this.value");//
addSlider(-1, "roomDIV", "Dry", "dry", 14, [0, 100], 1, 100, "this.value", "this.value");//
addSlider(-1, "roomDIV", "Room Size", "roomsize", 6, [1, 300], 1, 75, "this.value", "this.value");//
addSlider(-1, "roomDIV", "Rev. Time (ms)", "amount", 7, [0.5, 15], 0.1, 11, "this.value", "this.value");//
addSlider(-1, "roomDIV", "Spread", "spread", 8, [0, 100], 1, 23, "this.value", "this.value");//
addSlider(-1, "roomDIV", "Bandwidth", "bandwidth", 9, [0, 100], 1, 50, "this.value", "this.value"); //50
addSlider(-1, "roomDIV", "Damping", "damping", 10, [0, 100], 1, 70, "this.value", "this.value");//
addSlider(-1, "roomDIV", "Early", "early", 11, [0, 100], 1, 25, "this.value", "this.value");//
addSlider(-1, "roomDIV", "Tail", "tail", 12, [0, 100], 1, 25, "this.value", "this.value");//
addSlider(-1, "roomDIV", "Dry", "dry", 13, [0, 100], 1, 100, "this.value", "this.value");//
elements.push(

View File

@ -73,7 +73,7 @@ function setPresetFile(f)
{
filename = f;
currentPiece = filename.slice(filename.lastIndexOf("/") + 1, filename.lastIndexOf("."));
hsspiece[currentPiece] = {};
if (!hsshsspiece.hasOwnProperty(currentPiece)) hsspiece[currentPiece] = {};
outdict.parse(JSON.stringify(hsspiece));
setMenu();
}
@ -150,7 +150,7 @@ function anything()
var val = data["Djster.µbus[" + p + "]::" + param];
switch (DJsterParams[param][2]) {
case "linear" :
trainingData.push(scale(val, DJsterParams[param][0], DJsterParams[param][1], 0., 1.));
trainingData.push(scale(val, DJsterParams[param][0], [param][1], 0., 1.));
break;
case "log" :
trainingData.push(scale(val, DJsterParams[param][0], DJsterParams[param][1], 0., 1.));