Adding one other bar...

This commit is contained in:
2023-10-08 01:21:55 +02:00
parent 1a0d689441
commit 0e7575f562
3 changed files with 38 additions and 9 deletions

View File

@ -110,6 +110,7 @@ export class Editor {
// Audio stuff
audioContext: AudioContext;
dough_nudge: number = 0.25;
view: EditorView;
clock: Clock;
manualPlay: boolean = false;
@ -267,6 +268,12 @@ export class Editor {
"audio_nudge"
) as HTMLInputElement;
// Dough nudge range
dough_nudge_range: HTMLInputElement = document.getElementById(
"dough_nudge"
) as HTMLInputElement;
// Error line
error_line: HTMLElement = document.getElementById(
"error_line"
@ -602,6 +609,11 @@ export class Editor {
this.clock.nudge = parseInt(this.audio_nudge_range.value);
})
this.dough_nudge_range.addEventListener("input", () => {
this.dough_nudge = parseInt(this.dough_nudge_range.value);
})
this.upload_universe_button.addEventListener("click", () => {
const fileInput = document.createElement("input");
fileInput.type = "file";