diff --git a/tests/Elektronomia - Collide.mp3 b/tests/Elektronomia - Collide.mp3 deleted file mode 100644 index 012819e..0000000 Binary files a/tests/Elektronomia - Collide.mp3 and /dev/null differ diff --git a/tests/examples.html b/tests/examples.html deleted file mode 100644 index e5dd677..0000000 --- a/tests/examples.html +++ /dev/null @@ -1,33 +0,0 @@ - - - -
- - -Below is a canvas that has all bin values being drawn live using the built-in horizontal bar pattern.
- - -Has never been this easy! Here we bind the width of a div to a frequency bin.
- - -Here we bind a frequency to the colour of a div.
- - - - \ No newline at end of file diff --git a/tests/examples.js b/tests/examples.js deleted file mode 100644 index 9a88231..0000000 --- a/tests/examples.js +++ /dev/null @@ -1,32 +0,0 @@ -"use strict"; - -// We will see if the visualizers core and event systems are working correctly. -let startBtn = document.getElementById("startbtn"); -startBtn.addEventListener("click", async (ev) => { - let mediaStream = new Audio("../tests/Elektronomia - Collide.mp3"); - mediaStream.addEventListener("canplaythrough", (ev) => { - let visCore = new VisualizerCore(mediaStream, 128); - let coreAndEventCanvas = document.getElementById("horizontal"); - coreAndEventCanvas.width = 640; - coreAndEventCanvas.height = 200; - - mediaStream.play(); - visCore.analyze(); - - bindHorizontalBar(coreAndEventCanvas, visCore); // Pre-made simple horizontal bar visualizer. - - let widthDiv = document.getElementById("widthDiv"); - widthDiv.style.height = "20px"; - widthDiv.style.backgroundColor = "orange"; - visCore.addUpdateListener((delta, bins) => { - widthDiv.style.width = bins[3] + "px"; - }) - - let colourDiv = document.getElementById("colourDiv"); - colourDiv.style.height = "20px"; - visCore.addUpdateListener((delta, bins) => { - colourDiv.style.backgroundColor = "rgb(" + bins[0] + "," + bins[1] + ", " + bins[4] + ")"; - }) - }); - -}); \ No newline at end of file diff --git a/tests/main.css b/tests/main.css deleted file mode 100644 index e69de29..0000000