-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.html
47 lines (47 loc) · 1.75 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
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
<title>Fourier Synth</title>
<meta name="description" content="Additive synth using the Fourier series.">
<meta name="keywords" content="Fourier, Synthesizer, Synth">
<meta property="og:title" content="Fourier Synth">
<meta property="og:type" content="website">
<meta property="og:url" content="https://mysterypancake.github.io/Fourier-Synth">
<meta property="og:site_name" content="Fourier Synth">
<meta property="og:description" content="Additive synth using the Fourier series.">
<meta name="viewport" content="width=device-width, initial-scale=1">
<link rel="stylesheet" type="text/css" href="style.css">
<script src="script.js"></script>
</head>
<body onload="setup();">
<h1>Fourier Synth</h1>
<div id="left">
<div>
<label for="frequency">Fundamental Frequency (Hz)</label>
<input id="frequency" type="number" value="440" oninput="changeFundamental(this);">
</div>
<canvas id="canvas" width="400" height="400"></canvas>
<div>
<label for="zoom">Zoom</label>
<input id="zoom" type="range" min="1" max="2000" value="400" oninput="changeZoom(this);">
<input id="lockX" type="checkbox" onchange="lockX(this);">
<label for="lockX">Lock X axis</label>
</div>
</div>
<div>
<div>
<input type="button" value="Add Circle" onclick="addCircle();">
<input type="button" value="Add 2 Circles (1 Harmonic)" onclick="addHarmonic();">
<label for="volume">Volume</label>
<input id="volume" type="range" min="0" max="1" value="0.5" step="0.0001" oninput="changeVolume(this);">
</div>
<table id="circleTable">
<tr>
<th>Circle Radius (Volume)</th>
<th>Relative Circle Speed (Frequency)</th>
</tr>
</table>
</div>
</body>
</html>