summaryrefslogtreecommitdiff
path: root/web/index.html
blob: ecd3961adc58eae9b20730778fc0fa338b97743f (plain)
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
38
39
40
41
42
43
44
<!DOCTYPE html>
<html>
  <head>
    <meta charset="utf-8" />
    <link rel="stylesheet" href="style.css">
  </head>
  <body>
    <h1>Rusty Microphone</h1>
    <div id="loading">
      Loading...
    </div>
    <div id="browser-support-error" class="error" style="display:none;">
      <p>
        This app relies on your browser supporting WebAssembly, which is
        a relatively new technology, and so will only work on up to date
        web browsers. Please try with the latest version of Firefox,
        Chrome, Safari, Edge or Opera.
      </p>
    </div>
    <div id="unexpected-error" class="error" style="display:none;">
      <p>
        An unexpected error has occurred. Please try again later.
      </p>
    </div>
    <div id="rusty-microphone" style="display:none;">
      <button type="button" id="start-button">Start Listening</button>

      <p>The current note being played is <span id="pitch-label">...</span></p>
      <div id="pitch-indicator-bar-container">
        <div id="pitch-indicator-bar"></div>
      </div>
      <div id="pitch-indicator-colours">
        <div id="flat-indicator"></div>
        <div id="sharp-indicator"></div>
      </div>

      <canvas id="oscilloscope" width="320" height="300"></canvas>

      <p>The current framerate is <span id="frame-rate">0</span>FPS</p>
    </div>

    <script src="main.js"></script>
  </body>
</html>