2024-03-14 06:49:35 +01:00
|
|
|
export default {
|
|
|
|
main: document.getElementsByTagName("main")[0],
|
|
|
|
error: document.getElementById("error")!,
|
2024-04-23 23:16:19 +02:00
|
|
|
canvas: document.getElementById("canvas-main") as HTMLCanvasElement, // this is the only shared element
|
2024-03-14 06:49:35 +01:00
|
|
|
timeCursor: document.getElementById("canvas-timecursor")!,
|
2023-12-28 21:34:32 +01:00
|
|
|
|
2024-03-14 06:49:35 +01:00
|
|
|
timeUnit: document.getElementById("control-time-unit")!,
|
|
|
|
timeUnitLabel: document.getElementById("control-time-unit-label")!,
|
2024-04-23 23:16:19 +02:00
|
|
|
timeValue: document.getElementById("control-time-value") as HTMLInputElement,
|
2023-12-28 21:34:32 +01:00
|
|
|
|
2024-04-23 23:16:19 +02:00
|
|
|
scaleUp: document.getElementById("control-scaleup") as HTMLButtonElement,
|
|
|
|
scaleDown: document.getElementById("control-scaledown") as HTMLButtonElement,
|
2023-12-28 21:34:32 +01:00
|
|
|
|
2024-04-23 23:16:19 +02:00
|
|
|
playbackMode: document.getElementById("control-song-mode") as HTMLSelectElement,
|
|
|
|
sampleRate: document.getElementById("control-sample-rate") as HTMLInputElement,
|
|
|
|
volume: document.getElementById("control-volume") as HTMLInputElement,
|
2023-12-28 21:34:32 +01:00
|
|
|
|
2024-03-14 06:49:35 +01:00
|
|
|
canvasTogglePlay: document.getElementById("canvas-toggleplay")!,
|
2023-12-28 21:34:32 +01:00
|
|
|
|
2024-03-14 06:49:35 +01:00
|
|
|
controls: document.getElementById("controls")!,
|
|
|
|
canvasContainer: document.getElementById("canvas-container")!,
|
|
|
|
};
|