From 094fb570499ea818ad07f44b8d7404dae7d0456d Mon Sep 17 00:00:00 2001 From: Raphael Forment Date: Sun, 22 Oct 2023 15:56:42 +0200 Subject: [PATCH] adding new canvas for feedback --- index.html | 14 ++++++++++++++ src/AudioVisualisation.ts | 2 ++ src/DomElements.ts | 1 + 3 files changed, 17 insertions(+) create mode 100644 src/AudioVisualisation.ts diff --git a/index.html b/index.html index 2d3c60c..2b115d8 100644 --- a/index.html +++ b/index.html @@ -34,6 +34,19 @@ display: block; } + #feedback { + position: fixed; /* ignore margins */ + top: 0px; + left: 0px; + width: 100%; /* fill screen */ + height: 100%; + background-size: cover; + overflow-y: hidden; + z-index: -1; /* place behind everything else */ + display: block; + } + + details br { display: none; @@ -447,6 +460,7 @@
+
diff --git a/src/AudioVisualisation.ts b/src/AudioVisualisation.ts new file mode 100644 index 0000000..423fb51 --- /dev/null +++ b/src/AudioVisualisation.ts @@ -0,0 +1,2 @@ +// @ts-ignore +import { analyser, getAnalyzerData } from "superdough"; diff --git a/src/DomElements.ts b/src/DomElements.ts index c592c35..f5d8c57 100644 --- a/src/DomElements.ts +++ b/src/DomElements.ts @@ -47,6 +47,7 @@ export const singleElements = { dough_nudge_range: "dough_nudge", error_line: "error_line", hydra_canvas: "hydra-bg", + feedback: "feedback", }; export const buttonGroups = {