-
-
Notifications
You must be signed in to change notification settings - Fork 2
/
index.html
161 lines (155 loc) Β· 4.88 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
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
<!DOCTYPE html>
<html lang="en">
<head>
<title>oscilloscope.js π</title>
<meta charset="utf-8" />
<meta name="viewport" content="width=device-width, minimum-scale=1.0, maximum-scale=1.0, user-scalable=no">
<!-- CSS -->
<link rel="stylesheet" href="css/oscilloscope.css" />
</head>
<body>
<header>
<div hidden>
<div class="button" href="https://github.com/instrumentbible/oscilloscope.js/#readme">GitHub</div>
<div class="button" href="https://github.com/instrumentbible/oscilloscope.js/wiki/#wiki-body">Docs</div>
</div>
</header>
<a href="https://github.com/instrumentbible/oscilloscope.js#readme"><h1>oscilloscope.js</h1></a>
<hr>
<div id="container">
<a class="button" id="initalize"><p><span style="font-size:100px">⏻</span><br><span>click to start</span> </p></a>
</div>
<div id="controls">
<hr> <table style="table-layout:fixed">
<tr>
<td colspan=2>
<select id="type">
<option value="oscilloscope">oscilloscope</option>
<option value="bars" >bars </option>
<option value="spectrogram" >spectrogram </option>
<option value="XY" >XY </option>
</select>
</td>
<td>
<select id="fftSize">
<option value="32">32</option>
<option value="64">64</option>
<option value="128">128</option>
<option value="256">256</option>
<option value="512">512</option>
<option value="1024">1024</option>
<option value="2048" selected>2048</option>
<option value="4096">4096</option>
<option value="8192">8192</option>
<option value="16384">16384</option>
<option value="32768">32768</option>
</select>
</td>
<td>
<button class="button" id="freeze" >freeze</button>
</td>
<td>
<button class="button" id="resume" >resume</button>
</td>
</tr>
</table>
<table>
<tr>
<td colspan="3" >
<audio id="playerAudio" controls src="http://api.soundcloud.com/tracks/148976759/stream?client_id=201b55a1a16e7c0a122d112590b32e4a" crossorgin="anonymous"></audio>
</td>
<td >
<input type="file" id="audiofile" accept="audio/mp3,audio/mpeg,audio/x-aiff,audio/x-m4a,audio/m4a-latm, audio/x-aiff,audio/x-wav, audio/basic, audio/m4a;capture=microphone" title="upload file π" />
</td>
<td >
<label for="framerate">bars</label><br>
<input type="number" id="bars" value="5" min="1" max="12" step="1" />
</td>
</tr>
</table>
<hr>
<table>
<tr>
<td>
<button class="button" id="back" >rewind</button>
</td>
<td>
<button class="button" id="play" >play</button>
</td>
<td>
<button class="button" id="loop" >loop off</button>
<input type="checkbox" id="loopToggle" hidden></input>
</td>
<td>
<a class="button" id="linkToDownld" download>save</a>
</td>
</tr>
</table>
<hr>
<table>
<tr>
<td>
<label for="framerate">frame rate</label><br>
<input type="number" id="framerate" value="24" min="1" max="120" inputmode="decimal" />
</td>
<td>
<label for="thickness">thickness</label><br>
<input type="number" id="thickness" value="5" min="0.1" max="20" step="0.1" inputmode="decimal" />
</td>
<td>
<label for="window">window</label><br>
<input type="number" id="window" value="2.0" min="1" max="10" step="0.1" inputmode="decimal" />
</td>
<td>
<label for="rate">rate</label><br>
<input type="number" id="rate" value="1.0" min="-2" max="5" step="0.01" inputmode="decimal" />
</td>
</tr>
<tr>
<td>
<label for="minDecibels">minDecibels</label><br>
<input type="number" id="minDecibels" value="-100.0" min="-100.0" max="0.0" step="0.1" inputmode="decimal" pattern="[0-9]+([\.,][0-9]+)?"/>
</td>
<td>
<label for="maxDecibels">maxDecibels</label><br>
<input type="number" id="maxDecibels" value="-30.0" min="-100.0" max="0.0" step="0.1" inputmode="decimal" pattern="[0-9]+([\.,][0-9]+)?"/>
</td>
<td>
<label for="smoothing">smoothing</label><br>
<input type="number" id="smoothing" value="0.8" min="0" max="0.99" step="0.01" inputmode="decimal"/>
</td>
<td>
<label for="fade">fade</label><br>
<input type="number" id="fade" value="1.0" min="0.01" max="1.0" step="0.01" inputmode="decimal" />
</td>
</tr>
</table>
<hr>
<table>
<tr>
<td>
<label for="color">color</label><br>
<input type="color" id="color" value="#39FF14"/>
</td>
<td>
<label for="background">background</label><br>
<input type="color" id="background" value="#303030"/>
</td>
<td>
<label for="border">border</label><br>
<input type="color" id="border" value="#303030"/>
</td>
</tr>
</table>
<hr>
</div>
<div class="cornerButtons">
<button class="button" id="" style="display:none">βοΈ</button>
<button class="button" id="fullscreen" >βοΈ</button>
<button class="button" id="windowed" hidden >βοΈ</button>
</div>
<!-- JavaScript -->
<script src="js/oscilloscope.js"></script>
<script src="js/example.js"></script>
</body>
</html>