Adding one other bar...
This commit is contained in:
12
src/main.ts
12
src/main.ts
@ -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";
|
||||
|
||||
Reference in New Issue
Block a user