-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.html
105 lines (105 loc) · 4.74 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
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Simple Synth</title>
<link rel="stylesheet" href="style.css">
<script src="node_modules/tone/build/Tone.js"></script>
<script src="node_modules/midi-note/index.js"></script>
<script src="https://cdn.jsdelivr.net/npm/nexusui@latest/dist/NexusUI.js"></script>
</head>
<body>
<div id="application">
<div class="application-wrapper centered">
<div id="synth-container">
<div id="title-container">
<h1>Simple Synth</h1>
</div>
<div id="top-row">
<div id="wtb-container">
<h3>Wave Type</h3>
<div id="wt-container">
<h3>Sine</h3><h3>Square</h3><h3>Triangle</h3><h3>Sawtooth</h3>
</div>
<div id="waveTypeButton"></div>
</div>
<div id="fd-container">
<h3>Filter</h3>
<div id="filterDial"></div>
</div>
<div id="adsr-container">
<div class="tooltip">Envelope
<div class="tooltip-target">[?]
<span class="tooltiptext"><h4>Envelope describes how a sound changes over time.</h4>
<ul>
<li>Attack: Time taken for initial run-up of level from nil to peak, beginning when the key is pressed.</li>
<li>Decay: Time taken for the subsequent run down from the attack level to the designated sustain level.</li>
<li>Sustain: Level during the main sequence of the sound's duration, until the key is released.</li>
<li>Release: Time taken for the level to decay from the sustain level to zero after the key is released.</li>
</ul>
</span>
</div>
</div>
<div class="adsr-row">
<h3>Attack</h3><div id="attack"></div>
</div>
<div class="adsr-row">
<h3>Decay</h3><div id="decay"></div>
</div>
<div class="adsr-row">
<h3>Sustain</h3><div id="sustain"></div>
</div>
<div class="adsr-row">
<h3>Release</h3><div id="release"></div>
</div>
</div>
</div>
<div id="middle-row">
<div id="reverb-container">
<h3>Reverb</h3>
<div id="reverbDial"></div>
</div>
<div id="delay-container">
<h3>Delay</h3>
<div id="delayDial"></div>
</div>
<div id="effects-container">
<div id="tremolo-container">
<h3>Tremolo</h3><div id="tremSwitch"></div>
<div id="tremFreq"></div>
</div>
<div id="chorus-container">
<h3>Chorus</h3>
<div id="chorSwitch"></div>
</div>
</div>
</div>
<div id="oscilloscope"></div>
<div id="keyboard-container">
<div id="keyboard"></div>
</div>
</div>
<div id="preset-container">
<div id="preset-load-container">
<form id="preset-load-form">
<select id="preset-selector">
<option value="" selected disabled>Select Preset</option>
</select>
<input type="submit" value="Load">
</form>
</div>
<div id="preset-save-container">
<form id="preset-save-form">
<input id="preset-name" type="text" placeholder="Enter Preset Name" required>
<input type="submit" value="Save">
</form>
</div>
</div>
</div>
</div>
<script src="src/simpleSynth.js"></script>
<script src="src/preset.js"></script>
<script src="index.js"></script>
</body>
</html>