-
Notifications
You must be signed in to change notification settings - Fork 40
/
index.html
executable file
·37 lines (37 loc) · 1.68 KB
/
index.html
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
<!DOCTYPE html>
<!--
Audiovisualization using the html canvas element.
©2017, Dominik Hofacker
https://www.behance.net/dominikhofacker
Please consider supporting this project on behance:
https://www.behance.net/gallery/49260123/Web-Audio-Visualization
-->
<head>
<meta charset="utf-8">
<meta content='IE=8' http-equiv='X-UA-Compatible'>
<title>Frequcency analysis using HTML5 Audio and Web Audio API</title>
<meta name="viewport" content="width=device-width">
<!-- Das favicon.ico und das apple-touch-icon.png in das root Verzeichnis -->
<link rel="stylesheet" href="css/style.css">
<link href='https://fonts.googleapis.com/css?family=Roboto:400,100,300,700' rel='stylesheet' type='text/css' />
<!--[if lt IE 9]>
<script src="http://html5shiv.googlecode.com/svn/trunk/html5.js"></script>
<![endif]-->
<script src="https://ajax.googleapis.com/ajax/libs/jquery/3.2.1/jquery.min.js"></script>
<script src="src/bufferloader.js"></script>
<script src="src/id3-minimized.js"></script>
<script src="src/audiovisualisierung.js"></script>
</head>
<body>
<input type="file" id="input" onchange="handleFiles(this.files)"/>
<button id="playSampleButton" type="button" onClick="playSample()">Play Sample File</button>
<button id="useMicButton" type="button" onClick="useMic()">Use Microphone</button>
<span id="loading"></span>
<div id="song_info_wrapper">
<div id="artist">Unknown Artist</div>
<div id="title">Unknown Titel</div>
<div id="album">Unknown Album</div>
</div>
<canvas id="freq" width="1024" height="525"></canvas>
</body>
</html>