2022-03-21 00:00:14 +00:00
|
|
|
<!DOCTYPE html>
|
|
|
|
<html>
|
|
|
|
|
|
|
|
<head>
|
|
|
|
<meta charset='utf-8'>
|
|
|
|
<meta http-equiv='X-UA-Compatible' content='IE=edge'>
|
|
|
|
<title>AudioShowKit visual test</title>
|
|
|
|
<meta name='viewport' content='width=device-width, initial-scale=1'>
|
|
|
|
<link rel='stylesheet' type='text/css' media='screen' href='main.css'>
|
2022-03-21 00:57:48 +00:00
|
|
|
|
|
|
|
<script defer src="../src/VisualizerCore.js"></script>
|
|
|
|
<script defer src="../src/patterns/HorizontalBar.js"></script>
|
|
|
|
<script defer src='script.js'></script>
|
|
|
|
|
2022-03-21 00:00:14 +00:00
|
|
|
</head>
|
|
|
|
|
|
|
|
<body>
|
2022-03-21 00:24:22 +00:00
|
|
|
<h1>Hit start to see demo!</h1>
|
2022-03-21 00:00:14 +00:00
|
|
|
<button id="startbtn">Start.</button>
|
2022-03-21 00:24:22 +00:00
|
|
|
|
|
|
|
<h2>Horizontal Bar Pattern</h2>
|
|
|
|
<p>Below is a canvas that has all bin values being drawn live using the built-in horizontal bar pattern.</p>
|
|
|
|
<canvas id="horizontal">Canvases don't seem to be supported! Please try a different browser.</canvas>
|
|
|
|
|
|
|
|
<h2>Binding frequency bin values to element styles</h2>
|
|
|
|
<p>Has never been this easy! Here we bind the width of a div to a frequency bin.</p>
|
|
|
|
<div id="widthDiv"></div>
|
|
|
|
|
|
|
|
<p>Here we bind a frequency to the colour of a div.</p>
|
|
|
|
<div id="colourDiv"></div>
|
2022-03-21 00:00:14 +00:00
|
|
|
</body>
|
|
|
|
|
|
|
|
</html>
|